update client-go

This commit is contained in:
deads2k 2017-01-27 10:11:55 -05:00
parent 2cb17cc677
commit 2667556257
15 changed files with 275 additions and 256 deletions

View File

@ -324,151 +324,163 @@
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apimachinery",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apimachinery/announced",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apimachinery/registered",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/fields",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/labels",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/openapi",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/selection",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/types",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/rand",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/version",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/watch",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
"Rev": "02fccf9462f0fb0287e82cb8a0f1d03b05f8d704"
"Rev": "e0f5fdb097647ab1d282af70228f0a742cf61c65"
}
]
}

View File

@ -375,6 +375,21 @@ func (m *APIResource) MarshalTo(data []byte) (int, error) {
}
i += n2
}
if len(m.ShortNames) > 0 {
for _, s := range m.ShortNames {
data[i] = 0x2a
i++
l = len(s)
for l >= 1<<7 {
data[i] = uint8(uint64(l)&0x7f | 0x80)
l >>= 7
i++
}
data[i] = uint8(l)
i++
i += copy(data[i:], s)
}
}
return i, nil
}
@ -1470,6 +1485,12 @@ func (m *APIResource) Size() (n int) {
l = m.Verbs.Size()
n += 1 + l + sovGenerated(uint64(l))
}
if len(m.ShortNames) > 0 {
for _, s := range m.ShortNames {
l = len(s)
n += 1 + l + sovGenerated(uint64(l))
}
}
return n
}
@ -1912,6 +1933,7 @@ func (this *APIResource) String() string {
`Namespaced:` + fmt.Sprintf("%v", this.Namespaced) + `,`,
`Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
`Verbs:` + strings.Replace(fmt.Sprintf("%v", this.Verbs), "Verbs", "Verbs", 1) + `,`,
`ShortNames:` + fmt.Sprintf("%v", this.ShortNames) + `,`,
`}`,
}, "")
return s
@ -2602,6 +2624,35 @@ func (m *APIResource) Unmarshal(data []byte) error {
return err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ShortNames", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ShortNames = append(m.ShortNames, string(data[iNdEx:postIndex]))
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGenerated(data[iNdEx:])
@ -6649,136 +6700,137 @@ var (
)
var fileDescriptorGenerated = []byte{
// 2089 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xcc, 0x19, 0x4d, 0x6f, 0x23, 0x49,
0x35, 0xed, 0xc4, 0x1e, 0xfb, 0x39, 0xce, 0x47, 0x91, 0x01, 0x6f, 0x24, 0xec, 0x6c, 0xef, 0x0a,
0xcd, 0xc2, 0xac, 0x4d, 0x02, 0xac, 0x86, 0x01, 0x06, 0xe2, 0x38, 0x13, 0x45, 0x3b, 0x99, 0x44,
0x95, 0x9d, 0x41, 0x2c, 0x23, 0x44, 0xc7, 0x5d, 0x71, 0x9a, 0xb4, 0xbb, 0x9b, 0xaa, 0xb2, 0x27,
0x61, 0x0f, 0xac, 0x04, 0x08, 0x0e, 0x08, 0xcd, 0x91, 0x03, 0x42, 0x3b, 0x82, 0x1b, 0x37, 0xfe,
0x04, 0x73, 0x5c, 0x69, 0x2f, 0x1c, 0x90, 0xc5, 0x84, 0x03, 0x47, 0xee, 0x11, 0x07, 0x54, 0xd5,
0x55, 0xfd, 0x61, 0xc7, 0x9b, 0x36, 0xbb, 0x87, 0x3d, 0xc5, 0xf5, 0xbe, 0xbf, 0xea, 0xbd, 0x57,
0x1d, 0xd8, 0x3b, 0xbd, 0xc3, 0x1a, 0x8e, 0xdf, 0x3c, 0xed, 0x1f, 0x11, 0xea, 0x11, 0x4e, 0x58,
0x73, 0x40, 0x3c, 0xdb, 0xa7, 0x4d, 0x85, 0xb0, 0x02, 0xa7, 0x67, 0x75, 0x4e, 0x1c, 0x8f, 0xd0,
0xf3, 0x66, 0x70, 0xda, 0x15, 0x00, 0xd6, 0xec, 0x11, 0x6e, 0x35, 0x07, 0xeb,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, 0x06, 0x3d, 0x82, 0x82, 0x2f, 0xd7, 0x0b, 0xf5, 0xf1, 0xef, 0xcd, 0x89, 0x55,
0xa3, 0xfe, 0x69, 0xd3, 0xc0, 0xd6, 0xd3, 0xed, 0x33, 0x4e, 0x3c, 0x61, 0x63, 0x5c, 0x31, 0xe1,
0x8e, 0x82, 0x95, 0xb0, 0xd6, 0xeb, 0x2f, 0x5e, 0xd6, 0x66, 0x3e, 0x7c, 0x59, 0x9b, 0xf9, 0xfb,
0xcb, 0xda, 0xcc, 0xfb, 0x17, 0x35, 0xe3, 0xc5, 0x45, 0xcd, 0xf8, 0xf0, 0xa2, 0x66, 0xfc, 0xf3,
0xa2, 0x66, 0x3c, 0xfb, 0x57, 0x6d, 0xe6, 0xdd, 0xdc, 0x60, 0xfd, 0x7f, 0x01, 0x00, 0x00, 0xff,
0xff, 0x0c, 0x01, 0x08, 0xec, 0xf6, 0x1a, 0x00, 0x00,
// 2109 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xcc, 0x19, 0x4b, 0x6f, 0x23, 0x49,
0x39, 0x6d, 0xc7, 0x1e, 0xfb, 0x73, 0x9c, 0x47, 0x31, 0x03, 0xde, 0x48, 0xd8, 0xd9, 0xde, 0x15,
0x9a, 0x85, 0x59, 0x9b, 0x04, 0x58, 0x0d, 0x03, 0x0c, 0xc4, 0x71, 0x66, 0x14, 0xed, 0x64, 0x12,
0x55, 0x76, 0x06, 0xb1, 0x8c, 0x10, 0x1d, 0x77, 0xc5, 0x69, 0xd2, 0xee, 0x6e, 0xaa, 0xca, 0x9e,
0x84, 0x3d, 0xb0, 0xd2, 0x82, 0xe0, 0x80, 0xd0, 0x1c, 0x39, 0x20, 0xb4, 0x23, 0xb8, 0x71, 0xe3,
0x4f, 0x30, 0xc7, 0x95, 0xb8, 0x70, 0x40, 0x16, 0x13, 0x0e, 0x1c, 0xb9, 0x47, 0x1c, 0x50,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, 0xee, 0x5c, 0x17, 0x0b, 0xe4, 0xaf, 0x9f, 0x37, 0xe6, 0x9e, 0x3d, 0x6f,
0xcc, 0x7d, 0xf8, 0x5c, 0x2d, 0x93, 0x3f, 0x84, 0x72, 0x3c, 0x46, 0x7c, 0xca, 0x2a, 0xcd, 0x1f,
0x43, 0x49, 0x44, 0x92, 0x1e, 0x7f, 0xaf, 0x28, 0xfa, 0xe9, 0x72, 0x9c, 0xcb, 0x52, 0x8e, 0xcd,
0x0d, 0x08, 0xbf, 0xeb, 0x8a, 0x4a, 0xe8, 0x70, 0xd2, 0x4f, 0x55, 0xc2, 0x1d, 0x01, 0xc0, 0x21,
0x3c, 0xb1, 0x3f, 0xff, 0xd2, 0x00, 0x90, 0x7b, 0xc2, 0xf6, 0x50, 0xec, 0x76, 0x6b, 0x30, 0x2f,
0x4a, 0xec, 0xb8, 0x61, 0x32, 0x05, 0x24, 0x06, 0x3d, 0x82, 0xa2, 0x2f, 0xc7, 0x0b, 0xf5, 0xf1,
0xef, 0xcd, 0xa9, 0x51, 0xa3, 0xfe, 0xc9, 0xd3, 0xc4, 0xd6, 0xd3, 0xed, 0x53, 0x4e, 0x3c, 0x61,
0x63, 0x1c, 0x31, 0xe1, 0x8c, 0x82, 0x95, 0xb0, 0xf6, 0xeb, 0x2f, 0x5e, 0xd6, 0xe7, 0x3e, 0x7a,
0x59, 0x9f, 0xfb, 0xfb, 0xcb, 0xfa, 0xdc, 0xfb, 0xe7, 0x75, 0xe3, 0xc5, 0x79, 0xdd, 0xf8, 0xe8,
0xbc, 0x6e, 0xfc, 0xf3, 0xbc, 0x6e, 0x3c, 0xfb, 0x57, 0x7d, 0xee, 0xdd, 0xdc, 0x70, 0xfd, 0x7f,
0x01, 0x00, 0x00, 0xff, 0xff, 0xc3, 0xe1, 0xb9, 0xfd, 0x26, 0x1b, 0x00, 0x00,
}

View File

@ -74,6 +74,9 @@ message APIResource {
// verbs is a list of supported kube verbs (this includes get, list, watch, create,
// update, patch, delete, deletecollection, and proxy)
optional Verbs verbs = 4;
// shortNames is a list of suggested short names of the resource.
repeated string shortNames = 5;
}
// APIResourceList is a list of APIResource, it is used to expose the name of the

View File

@ -42,6 +42,7 @@ func AddToGroupVersion(scheme *runtime.Scheme, groupVersion schema.GroupVersion)
schema.GroupVersion{Group: groupVersion.Group, Version: runtime.APIVersionInternal}.WithKind(WatchEventKind),
&InternalEvent{},
)
// Supports legacy code paths, most callers should use metav1.ParameterCodec for now
scheme.AddKnownTypes(groupVersion,
&ListOptions{},
&ExportOptions{},
@ -65,5 +66,8 @@ var ParameterCodec = runtime.NewParameterCodec(scheme)
func init() {
scheme.AddUnversionedTypes(SchemeGroupVersion,
&ListOptions{},
&ExportOptions{},
&GetOptions{},
&DeleteOptions{},
)
}

View File

@ -648,6 +648,8 @@ type APIResource struct {
// verbs is a list of supported kube verbs (this includes get, list, watch, create,
// update, patch, delete, deletecollection, and proxy)
Verbs Verbs `json:"verbs" protobuf:"bytes,4,opt,name=verbs"`
// shortNames is a list of suggested short names of the resource.
ShortNames []string `json:"shortNames,omitempty" protobuf:"bytes,5,rep,name=shortNames"`
}
// Verbs masks the value so protobuf can generate

View File

@ -54,6 +54,7 @@ var map_APIResource = map[string]string{
"namespaced": "namespaced indicates if a resource is namespaced or not.",
"kind": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')",
"verbs": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)",
"shortNames": "shortNames is a list of suggested short names of the resource.",
}
func (APIResource) SwaggerDoc() map[string]string {

View File

@ -115,6 +115,11 @@ func DeepCopy_v1_APIResource(in interface{}, out interface{}, c *conversion.Clon
*out = make(Verbs, len(*in))
copy(*out, *in)
}
if in.ShortNames != nil {
in, out := &in.ShortNames, &out.ShortNames
*out = make([]string, len(*in))
copy(*out, *in)
}
return nil
}
}

View File

@ -23,7 +23,7 @@ import (
"strings"
"k8s.io/apimachinery/pkg/util/json"
forkedjson "k8s.io/client-go/third_party/forked/golang/json"
forkedjson "k8s.io/apimachinery/third_party/forked/golang/json"
"github.com/davecgh/go-spew/spew"
"github.com/ghodss/yaml"

View File

@ -69,11 +69,10 @@ func (d *YAMLToJSONDecoder) Decode(into interface{}) error {
}
if len(bytes) != 0 {
data, err := yaml.YAMLToJSON(bytes)
err := yaml.Unmarshal(bytes, into)
if err != nil {
return err
return YAMLSyntaxError{err}
}
return json.Unmarshal(data, into)
}
return err
}
@ -184,6 +183,23 @@ type YAMLOrJSONDecoder struct {
rawData []byte
}
type JSONSyntaxError struct {
Line int
Err error
}
func (e JSONSyntaxError) Error() string {
return fmt.Sprintf("json: line %d: %s", e.Line, e.Err.Error())
}
type YAMLSyntaxError struct {
err error
}
func (e YAMLSyntaxError) Error() string {
return e.err.Error()
}
// NewYAMLOrJSONDecoder returns a decoder that will process YAML documents
// or JSON documents from the given reader as a stream. bufferSize determines
// how far into the stream the decoder will look to figure out whether this
@ -226,7 +242,10 @@ func (d *YAMLOrJSONDecoder) Decode(into interface{}) error {
start := strings.LastIndex(js[:syntax.Offset], "\n") + 1
line := strings.Count(js[:start], "\n")
return fmt.Errorf("json: line %d: %s", line, syntax.Error())
return JSONSyntaxError{
Line: line,
Err: fmt.Errorf(syntax.Error()),
}
}
}
return err

View File

@ -30,9 +30,9 @@ import (
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/third_party/forked/golang/netutil"
"k8s.io/client-go/pkg/api"
"k8s.io/client-go/pkg/util/httpstream"
"k8s.io/client-go/third_party/forked/golang/netutil"
)
// SpdyRoundTripper knows how to upgrade an HTTP request to one that supports

View File

@ -1,79 +0,0 @@
/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package util
// A simple trie implementation with Add an HasPrefix methods only.
type Trie struct {
children map[byte]*Trie
wordTail bool
word string
}
// CreateTrie creates a Trie and add all strings in the provided list to it.
func CreateTrie(list []string) Trie {
ret := Trie{
children: make(map[byte]*Trie),
wordTail: false,
}
for _, v := range list {
ret.Add(v)
}
return ret
}
// Add adds a word to this trie
func (t *Trie) Add(v string) {
root := t
for _, b := range []byte(v) {
child, exists := root.children[b]
if !exists {
child = &Trie{
children: make(map[byte]*Trie),
wordTail: false,
}
root.children[b] = child
}
root = child
}
root.wordTail = true
root.word = v
}
// HasPrefix returns true of v has any of the prefixes stored in this trie.
func (t *Trie) HasPrefix(v string) bool {
_, has := t.GetPrefix(v)
return has
}
// GetPrefix is like HasPrefix but return the prefix in case of match or empty string otherwise.
func (t *Trie) GetPrefix(v string) (string, bool) {
root := t
if root.wordTail {
return root.word, true
}
for _, b := range []byte(v) {
child, exists := root.children[b]
if !exists {
return "", false
}
if child.wordTail {
return child.word, true
}
root = child
}
return "", false
}

View File

@ -28,9 +28,9 @@ import (
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
k8sruntime "k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/util/strategicpatch"
_ "k8s.io/client-go/pkg/api/install" // To register api.Pod used in tests below
"k8s.io/client-go/pkg/api/v1"
"k8s.io/client-go/pkg/util/strategicpatch"
restclient "k8s.io/client-go/rest"
"k8s.io/client-go/util/clock"
)

View File

@ -27,8 +27,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/apimachinery/pkg/util/strategicpatch"
"k8s.io/client-go/pkg/api/v1"
"k8s.io/client-go/pkg/util/strategicpatch"
"k8s.io/client-go/util/clock"
)