Update go dependencies and cleanup deprecated packages
This commit is contained in:
parent
03a1e20fde
commit
44fd79d061
1099 changed files with 75691 additions and 31913 deletions
2
vendor/k8s.io/apimachinery/third_party/forked/golang/json/BUILD
generated
vendored
2
vendor/k8s.io/apimachinery/third_party/forked/golang/json/BUILD
generated
vendored
|
|
@ -9,11 +9,13 @@ load(
|
|||
go_library(
|
||||
name = "go_default_library",
|
||||
srcs = ["fields.go"],
|
||||
importpath = "k8s.io/apimachinery/third_party/forked/golang/json",
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = ["fields_test.go"],
|
||||
importpath = "k8s.io/apimachinery/third_party/forked/golang/json",
|
||||
library = ":go_default_library",
|
||||
)
|
||||
|
||||
|
|
|
|||
9
vendor/k8s.io/apimachinery/third_party/forked/golang/json/fields.go
generated
vendored
9
vendor/k8s.io/apimachinery/third_party/forked/golang/json/fields.go
generated
vendored
|
|
@ -26,17 +26,14 @@ const (
|
|||
// struct field given the struct type and the JSON name of the field.
|
||||
// It returns field type, a slice of patch strategies, merge key and error.
|
||||
// TODO: fix the returned errors to be introspectable.
|
||||
func LookupPatchMetadata(t reflect.Type, jsonField string) (
|
||||
func LookupPatchMetadataForStruct(t reflect.Type, jsonField string) (
|
||||
elemType reflect.Type, patchStrategies []string, patchMergeKey string, e error) {
|
||||
if t.Kind() == reflect.Ptr {
|
||||
t = t.Elem()
|
||||
}
|
||||
if t.Kind() == reflect.Map {
|
||||
elemType = t.Elem()
|
||||
return
|
||||
}
|
||||
|
||||
if t.Kind() != reflect.Struct {
|
||||
e = fmt.Errorf("merging an object in json but data type is not map or struct, instead is: %s",
|
||||
e = fmt.Errorf("merging an object in json but data type is not struct, instead is: %s",
|
||||
t.Kind().String())
|
||||
return
|
||||
}
|
||||
|
|
|
|||
2
vendor/k8s.io/apimachinery/third_party/forked/golang/json/fields_test.go
generated
vendored
2
vendor/k8s.io/apimachinery/third_party/forked/golang/json/fields_test.go
generated
vendored
|
|
@ -14,7 +14,7 @@ func TestLookupPtrToStruct(t *testing.T) {
|
|||
Inner []Elem `json:"inner" patchStrategy:"merge" patchMergeKey:"key"`
|
||||
}
|
||||
outer := &Outer{}
|
||||
elemType, patchStrategies, patchMergeKey, err := LookupPatchMetadata(reflect.TypeOf(outer), "inner")
|
||||
elemType, patchStrategies, patchMergeKey, err := LookupPatchMetadataForStruct(reflect.TypeOf(outer), "inner")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
|
|||
1
vendor/k8s.io/apimachinery/third_party/forked/golang/netutil/BUILD
generated
vendored
1
vendor/k8s.io/apimachinery/third_party/forked/golang/netutil/BUILD
generated
vendored
|
|
@ -8,6 +8,7 @@ load(
|
|||
go_library(
|
||||
name = "go_default_library",
|
||||
srcs = ["addr.go"],
|
||||
importpath = "k8s.io/apimachinery/third_party/forked/golang/netutil",
|
||||
)
|
||||
|
||||
filegroup(
|
||||
|
|
|
|||
2
vendor/k8s.io/apimachinery/third_party/forked/golang/reflect/BUILD
generated
vendored
2
vendor/k8s.io/apimachinery/third_party/forked/golang/reflect/BUILD
generated
vendored
|
|
@ -9,12 +9,14 @@ load(
|
|||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = ["deep_equal_test.go"],
|
||||
importpath = "k8s.io/apimachinery/third_party/forked/golang/reflect",
|
||||
library = ":go_default_library",
|
||||
)
|
||||
|
||||
go_library(
|
||||
name = "go_default_library",
|
||||
srcs = ["deep_equal.go"],
|
||||
importpath = "k8s.io/apimachinery/third_party/forked/golang/reflect",
|
||||
)
|
||||
|
||||
filegroup(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue