code
stringlengths
12
335k
docstring
stringlengths
20
20.8k
func_name
stringlengths
1
105
language
stringclasses
1 value
repo
stringclasses
498 values
path
stringlengths
5
172
url
stringlengths
43
235
license
stringclasses
4 values
func (ls Set) String() string { selector := make([]string, 0, len(ls)) for key, value := range ls { selector = append(selector, key+"="+value) } // Sort for determinism. sort.StringSlice(selector).Sort() return strings.Join(selector, ",") }
String returns all fields listed as a human readable string. Conveniently, exactly the format that ParseSelector takes.
String
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/fields/fields.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/fields/fields.go
Apache-2.0
func (ls Set) Has(field string) bool { _, exists := ls[field] return exists }
Has returns whether the provided field exists in the map.
Has
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/fields/fields.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/fields/fields.go
Apache-2.0
func (ls Set) Get(field string) string { return ls[field] }
Get returns the value in the map for the provided field.
Get
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/fields/fields.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/fields/fields.go
Apache-2.0
func (ls Set) AsSelector() Selector { return SelectorFromSet(ls) }
AsSelector converts fields into a selectors.
AsSelector
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/fields/fields.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/fields/fields.go
Apache-2.0
func RegisterDefaults(scheme *runtime.Scheme) error { return nil }
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
RegisterDefaults
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/zz_generated.defaults.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/zz_generated.defaults.go
Apache-2.0
func Convert_Slice_string_To_v1beta1_IncludeObjectPolicy(in *[]string, out *IncludeObjectPolicy, s conversion.Scope) error { if len(*in) > 0 { *out = IncludeObjectPolicy((*in)[0]) } return nil }
Convert_Slice_string_To_v1beta1_IncludeObjectPolicy allows converting a URL query parameter value
Convert_Slice_string_To_v1beta1_IncludeObjectPolicy
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/conversion.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/conversion.go
Apache-2.0
func Convert_v1beta1_PartialObjectMetadataList_To_v1_PartialObjectMetadataList(in *PartialObjectMetadataList, out *v1.PartialObjectMetadataList, s conversion.Scope) error { out.ListMeta = in.ListMeta out.Items = *(*[]v1.PartialObjectMetadata)(unsafe.Pointer(&in.Items)) return nil }
Convert_v1beta1_PartialObjectMetadataList_To_v1_PartialObjectMetadataList allows converting PartialObjectMetadataList between versions
Convert_v1beta1_PartialObjectMetadataList_To_v1_PartialObjectMetadataList
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/conversion.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/conversion.go
Apache-2.0
func Convert_v1_PartialObjectMetadataList_To_v1beta1_PartialObjectMetadataList(in *v1.PartialObjectMetadataList, out *PartialObjectMetadataList, s conversion.Scope) error { out.ListMeta = in.ListMeta out.Items = *(*[]v1.PartialObjectMetadata)(unsafe.Pointer(&in.Items)) return nil }
Convert_v1_PartialObjectMetadataList_To_v1beta1_PartialObjectMetadataList allows converting PartialObjectMetadataList between versions
Convert_v1_PartialObjectMetadataList_To_v1beta1_PartialObjectMetadataList
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/conversion.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/conversion.go
Apache-2.0
func Kind(kind string) schema.GroupKind { return SchemeGroupVersion.WithKind(kind).GroupKind() }
Kind takes an unqualified kind and returns a Group qualified GroupKind
Kind
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/register.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/register.go
Apache-2.0
func AddMetaToScheme(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Table{}, &TableOptions{}, &PartialObjectMetadata{}, &PartialObjectMetadataList{}, ) return nil }
AddMetaToScheme registers base meta types into schemas.
AddMetaToScheme
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/register.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/register.go
Apache-2.0
func RegisterConversions(s *runtime.Scheme) error { if err := s.AddGeneratedConversionFunc((*PartialObjectMetadataList)(nil), (*v1.PartialObjectMetadataList)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1beta1_PartialObjectMetadataList_To_v1_PartialObjectMetadataList(a.(*PartialObjectMetadataList), b.(*v1.PartialObjectMetadataList), scope) }); err != nil { return err } if err := s.AddGeneratedConversionFunc((*v1.PartialObjectMetadataList)(nil), (*PartialObjectMetadataList)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_PartialObjectMetadataList_To_v1beta1_PartialObjectMetadataList(a.(*v1.PartialObjectMetadataList), b.(*PartialObjectMetadataList), scope) }); err != nil { return err } return nil }
RegisterConversions adds conversion functions to the given scheme.
RegisterConversions
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/register.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/register.go
Apache-2.0
func (in *PartialObjectMetadataList) DeepCopyInto(out *PartialObjectMetadataList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]v1.PartialObjectMetadata, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return }
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepCopyInto
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/zz_generated.deepcopy.go
Apache-2.0
func (in *PartialObjectMetadataList) DeepCopy() *PartialObjectMetadataList { if in == nil { return nil } out := new(PartialObjectMetadataList) in.DeepCopyInto(out) return out }
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartialObjectMetadataList.
DeepCopy
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/zz_generated.deepcopy.go
Apache-2.0
func (in *PartialObjectMetadataList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
DeepCopyObject
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/zz_generated.deepcopy.go
Apache-2.0
func (gv GroupVersion) Empty() bool { return len(gv.Group) == 0 && len(gv.Version) == 0 }
Empty returns true if group and version are empty
Empty
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/group_version.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/group_version.go
Apache-2.0
func (gv GroupVersion) String() string { // special case the internal apiVersion for the legacy kube types if gv.Empty() { return "" } // special case of "v1" for backward compatibility if len(gv.Group) == 0 && gv.Version == "v1" { return gv.Version } if len(gv.Group) > 0 { return gv.Group + "/" + gv.Version } return gv.Version }
String puts "group" and "version" into a single "group/version" string. For the legacy v1 it returns "v1".
String
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/group_version.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/group_version.go
Apache-2.0
func (gv GroupVersion) MarshalJSON() ([]byte, error) { s := gv.String() if strings.Count(s, "/") > 1 { return []byte{}, fmt.Errorf("illegal GroupVersion %v: contains more than one /", s) } return json.Marshal(s) }
MarshalJSON implements the json.Marshaller interface.
MarshalJSON
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/group_version.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/group_version.go
Apache-2.0
func (gv *GroupVersion) UnmarshalJSON(value []byte) error { return gv.unmarshal(value) }
UnmarshalJSON implements the json.Unmarshaller interface.
UnmarshalJSON
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/group_version.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/group_version.go
Apache-2.0
func (gv *GroupVersion) UnmarshalText(value []byte) error { return gv.unmarshal(value) }
UnmarshalTEXT implements the Ugorji's encoding.TextUnmarshaler interface.
UnmarshalText
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/group_version.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/group_version.go
Apache-2.0
func (t *Time) DeepCopyInto(out *Time) { *out = *t }
DeepCopyInto creates a deep-copy of the Time value. The underlying time.Time type is effectively immutable in the time API, so it is safe to copy-by-assign, despite the presence of (unexported) Pointer fields.
DeepCopyInto
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
Apache-2.0
func NewTime(time time.Time) Time { return Time{time} }
NewTime returns a wrapped instance of the provided time
NewTime
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
Apache-2.0
func Date(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) Time { return Time{time.Date(year, month, day, hour, min, sec, nsec, loc)} }
Date returns the Time corresponding to the supplied parameters by wrapping time.Date.
Date
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
Apache-2.0
func Now() Time { return Time{time.Now()} }
Now returns the current local time.
Now
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
Apache-2.0
func (t *Time) IsZero() bool { if t == nil { return true } return t.Time.IsZero() }
IsZero returns true if the value is nil or time is zero.
IsZero
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
Apache-2.0
func (t *Time) Before(u *Time) bool { if t != nil && u != nil { return t.Time.Before(u.Time) } return false }
Before reports whether the time instant t is before u.
Before
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
Apache-2.0
func (t *Time) Equal(u *Time) bool { if t == nil && u == nil { return true } if t != nil && u != nil { return t.Time.Equal(u.Time) } return false }
Equal reports whether the time instant t is equal to u.
Equal
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
Apache-2.0
func Unix(sec int64, nsec int64) Time { return Time{time.Unix(sec, nsec)} }
Unix returns the local time corresponding to the given Unix time by wrapping time.Unix.
Unix
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
Apache-2.0
func (t Time) Rfc3339Copy() Time { copied, _ := time.Parse(time.RFC3339, t.Format(time.RFC3339)) return Time{copied} }
Rfc3339Copy returns a copy of the Time at second-level precision.
Rfc3339Copy
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
Apache-2.0
func (t *Time) UnmarshalJSON(b []byte) error { if len(b) == 4 && string(b) == "null" { t.Time = time.Time{} return nil } var str string err := json.Unmarshal(b, &str) if err != nil { return err } pt, err := time.Parse(time.RFC3339, str) if err != nil { return err } t.Time = pt.Local() return nil }
UnmarshalJSON implements the json.Unmarshaller interface.
UnmarshalJSON
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
Apache-2.0
func (t *Time) UnmarshalQueryParameter(str string) error { if len(str) == 0 { t.Time = time.Time{} return nil } // Tolerate requests from older clients that used JSON serialization to build query params if len(str) == 4 && str == "null" { t.Time = time.Time{} return nil } pt, err := time.Parse(time.RFC3339, str) if err != nil { return err } t.Time = pt.Local() return nil }
UnmarshalQueryParameter converts from a URL query parameter value to an object
UnmarshalQueryParameter
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
Apache-2.0
func (t Time) MarshalJSON() ([]byte, error) { if t.IsZero() { // Encode unset/nil objects as JSON's "null". return []byte("null"), nil } buf := make([]byte, 0, len(time.RFC3339)+2) buf = append(buf, '"') // time cannot contain non escapable JSON characters buf = t.UTC().AppendFormat(buf, time.RFC3339) buf = append(buf, '"') return buf, nil }
MarshalJSON implements the json.Marshaler interface.
MarshalJSON
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
Apache-2.0
func (t Time) ToUnstructured() interface{} { if t.IsZero() { return nil } buf := make([]byte, 0, len(time.RFC3339)) buf = t.UTC().AppendFormat(buf, time.RFC3339) return string(buf) }
ToUnstructured implements the value.UnstructuredConverter interface.
ToUnstructured
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
Apache-2.0
func (_ Time) OpenAPISchemaType() []string { return []string{"string"} }
OpenAPISchemaType is used by the kube-openapi generator when constructing the OpenAPI spec of this type. See: https://github.com/kubernetes/kube-openapi/tree/master/pkg/generators
OpenAPISchemaType
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
Apache-2.0
func (_ Time) OpenAPISchemaFormat() string { return "date-time" }
OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
OpenAPISchemaFormat
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
Apache-2.0
func (t Time) MarshalQueryParameter() (string, error) { if t.IsZero() { // Encode unset/nil objects as an empty string return "", nil } return t.UTC().Format(time.RFC3339), nil }
MarshalQueryParameter converts to a URL query parameter value
MarshalQueryParameter
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
Apache-2.0
func (apiVersions APIVersions) String() string { return strings.Join(apiVersions.Versions, ",") }
String returns available api versions as a human-friendly version string.
String
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/types.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/types.go
Apache-2.0
func (m *Time) ProtoTime() *Timestamp { if m == nil { return &Timestamp{} } return &Timestamp{ Seconds: m.Time.Unix(), // leaving this here for the record. our JSON only handled seconds, so this results in writes by // protobuf clients storing values that aren't read by json clients, which results in unexpected // field mutation, which fails various validation and equality code. // Nanos: int32(m.Time.Nanosecond()), } }
Timestamp returns the Time as a new Timestamp value.
ProtoTime
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go
Apache-2.0
func (m *Time) Size() (n int) { if m == nil || m.Time.IsZero() { return 0 } return m.ProtoTime().Size() }
Size implements the protobuf marshalling interface.
Size
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go
Apache-2.0
func (m *Time) Unmarshal(data []byte) error { if len(data) == 0 { m.Time = time.Time{} return nil } p := Timestamp{} if err := p.Unmarshal(data); err != nil { return err } // leaving this here for the record. our JSON only handled seconds, so this results in writes by // protobuf clients storing values that aren't read by json clients, which results in unexpected // field mutation, which fails various validation and equality code. // m.Time = time.Unix(p.Seconds, int64(p.Nanos)).Local() m.Time = time.Unix(p.Seconds, int64(0)).Local() return nil }
Reset implements the protobuf marshalling interface.
Unmarshal
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go
Apache-2.0
func (m *Time) Marshal() (data []byte, err error) { if m == nil || m.Time.IsZero() { return nil, nil } return m.ProtoTime().Marshal() }
Marshal implements the protobuf marshaling interface.
Marshal
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go
Apache-2.0
func (m *Time) MarshalTo(data []byte) (int, error) { if m == nil || m.Time.IsZero() { return 0, nil } return m.ProtoTime().MarshalTo(data) }
MarshalTo implements the protobuf marshaling interface.
MarshalTo
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go
Apache-2.0
func (m *Time) MarshalToSizedBuffer(data []byte) (int, error) { if m == nil || m.Time.IsZero() { return 0, nil } return m.ProtoTime().MarshalToSizedBuffer(data) }
MarshalToSizedBuffer implements the protobuf reverse marshaling interface.
MarshalToSizedBuffer
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go
Apache-2.0
func RegisterDefaults(scheme *runtime.Scheme) error { return nil }
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
RegisterDefaults
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.defaults.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.defaults.go
Apache-2.0
func (t *MicroTime) DeepCopyInto(out *MicroTime) { *out = *t }
DeepCopy returns a deep-copy of the MicroTime value. The underlying time.Time type is effectively immutable in the time API, so it is safe to copy-by-assign, despite the presence of (unexported) Pointer fields.
DeepCopyInto
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
Apache-2.0
func NewMicroTime(time time.Time) MicroTime { return MicroTime{time} }
NewMicroTime returns a wrapped instance of the provided time
NewMicroTime
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
Apache-2.0
func DateMicro(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) MicroTime { return MicroTime{time.Date(year, month, day, hour, min, sec, nsec, loc)} }
DateMicro returns the MicroTime corresponding to the supplied parameters by wrapping time.Date.
DateMicro
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
Apache-2.0
func NowMicro() MicroTime { return MicroTime{time.Now()} }
NowMicro returns the current local time.
NowMicro
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
Apache-2.0
func (t *MicroTime) IsZero() bool { if t == nil { return true } return t.Time.IsZero() }
IsZero returns true if the value is nil or time is zero.
IsZero
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
Apache-2.0
func (t *MicroTime) Before(u *MicroTime) bool { if t != nil && u != nil { return t.Time.Before(u.Time) } return false }
Before reports whether the time instant t is before u.
Before
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
Apache-2.0
func (t *MicroTime) Equal(u *MicroTime) bool { if t == nil && u == nil { return true } if t != nil && u != nil { return t.Time.Equal(u.Time) } return false }
Equal reports whether the time instant t is equal to u.
Equal
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
Apache-2.0
func (t *MicroTime) BeforeTime(u *Time) bool { if t != nil && u != nil { return t.Time.Before(u.Time) } return false }
BeforeTime reports whether the time instant t is before second-lever precision u.
BeforeTime
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
Apache-2.0
func (t *MicroTime) EqualTime(u *Time) bool { if t == nil && u == nil { return true } if t != nil && u != nil { return t.Time.Equal(u.Time) } return false }
EqualTime reports whether the time instant t is equal to second-lever precision u.
EqualTime
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
Apache-2.0
func UnixMicro(sec int64, nsec int64) MicroTime { return MicroTime{time.Unix(sec, nsec)} }
UnixMicro returns the local time corresponding to the given Unix time by wrapping time.Unix.
UnixMicro
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
Apache-2.0
func (t *MicroTime) UnmarshalJSON(b []byte) error { if len(b) == 4 && string(b) == "null" { t.Time = time.Time{} return nil } var str string err := json.Unmarshal(b, &str) if err != nil { return err } pt, err := time.Parse(RFC3339Micro, str) if err != nil { return err } t.Time = pt.Local() return nil }
UnmarshalJSON implements the json.Unmarshaller interface.
UnmarshalJSON
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
Apache-2.0
func (t *MicroTime) UnmarshalQueryParameter(str string) error { if len(str) == 0 { t.Time = time.Time{} return nil } // Tolerate requests from older clients that used JSON serialization to build query params if len(str) == 4 && str == "null" { t.Time = time.Time{} return nil } pt, err := time.Parse(RFC3339Micro, str) if err != nil { return err } t.Time = pt.Local() return nil }
UnmarshalQueryParameter converts from a URL query parameter value to an object
UnmarshalQueryParameter
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
Apache-2.0
func (t MicroTime) MarshalJSON() ([]byte, error) { if t.IsZero() { // Encode unset/nil objects as JSON's "null". return []byte("null"), nil } return json.Marshal(t.UTC().Format(RFC3339Micro)) }
MarshalJSON implements the json.Marshaler interface.
MarshalJSON
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
Apache-2.0
func (_ MicroTime) OpenAPISchemaType() []string { return []string{"string"} }
OpenAPISchemaType is used by the kube-openapi generator when constructing the OpenAPI spec of this type. See: https://github.com/kubernetes/kube-openapi/tree/master/pkg/generators
OpenAPISchemaType
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
Apache-2.0
func (_ MicroTime) OpenAPISchemaFormat() string { return "date-time" }
OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
OpenAPISchemaFormat
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
Apache-2.0
func (t MicroTime) MarshalQueryParameter() (string, error) { if t.IsZero() { // Encode unset/nil objects as an empty string return "", nil } return t.UTC().Format(RFC3339Micro), nil }
MarshalQueryParameter converts to a URL query parameter value
MarshalQueryParameter
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time.go
Apache-2.0
func Convert_v1_TypeMeta_To_v1_TypeMeta(in, out *TypeMeta, s conversion.Scope) error { // These values are explicitly not copied //out.APIVersion = in.APIVersion //out.Kind = in.Kind return nil }
+k8s:conversion-fn=drop
Convert_v1_TypeMeta_To_v1_TypeMeta
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
Apache-2.0
func Convert_v1_ListMeta_To_v1_ListMeta(in, out *ListMeta, s conversion.Scope) error { *out = *in return nil }
+k8s:conversion-fn=copy-only
Convert_v1_ListMeta_To_v1_ListMeta
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
Apache-2.0
func Convert_v1_DeleteOptions_To_v1_DeleteOptions(in, out *DeleteOptions, s conversion.Scope) error { *out = *in return nil }
+k8s:conversion-fn=copy-only
Convert_v1_DeleteOptions_To_v1_DeleteOptions
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
Apache-2.0
func Convert_intstr_IntOrString_To_intstr_IntOrString(in, out *intstr.IntOrString, s conversion.Scope) error { *out = *in return nil }
+k8s:conversion-fn=copy-only
Convert_intstr_IntOrString_To_intstr_IntOrString
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
Apache-2.0
func Convert_v1_Time_To_v1_Time(in *Time, out *Time, s conversion.Scope) error { // Cannot deep copy these, because time.Time has unexported fields. *out = *in return nil }
+k8s:conversion-fn=copy-only
Convert_v1_Time_To_v1_Time
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
Apache-2.0
func Convert_v1_MicroTime_To_v1_MicroTime(in *MicroTime, out *MicroTime, s conversion.Scope) error { // Cannot deep copy these, because time.Time has unexported fields. *out = *in return nil }
+k8s:conversion-fn=copy-only
Convert_v1_MicroTime_To_v1_MicroTime
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
Apache-2.0
func Convert_Slice_string_To_v1_Time(in *[]string, out *Time, s conversion.Scope) error { str := "" if len(*in) > 0 { str = (*in)[0] } return out.UnmarshalQueryParameter(str) }
Convert_Slice_string_To_v1_Time allows converting a URL query parameter value
Convert_Slice_string_To_v1_Time
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
Apache-2.0
func Convert_resource_Quantity_To_resource_Quantity(in *resource.Quantity, out *resource.Quantity, s conversion.Scope) error { *out = *in return nil }
+k8s:conversion-fn=copy-only
Convert_resource_Quantity_To_resource_Quantity
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
Apache-2.0
func Convert_Slice_string_To_Slice_int32(in *[]string, out *[]int32, s conversion.Scope) error { for _, s := range *in { for _, v := range strings.Split(s, ",") { x, err := strconv.ParseUint(v, 10, 16) if err != nil { return fmt.Errorf("cannot convert to []int32: %v", err) } *out = append(*out, int32(x)) } } return nil }
Convert_Slice_string_To_Slice_int32 converts multiple query parameters or a single query parameter with a comma delimited value to multiple int32. This is used for port forwarding which needs the ports as int32.
Convert_Slice_string_To_Slice_int32
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
Apache-2.0
func Convert_Slice_string_To_Pointer_v1_DeletionPropagation(in *[]string, out **DeletionPropagation, s conversion.Scope) error { var str string if len(*in) > 0 { str = (*in)[0] } else { str = "" } temp := DeletionPropagation(str) *out = &temp return nil }
Convert_Slice_string_To_Pointer_v1_DeletionPropagation allows converting a URL query parameter propagationPolicy
Convert_Slice_string_To_Pointer_v1_DeletionPropagation
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
Apache-2.0
func Convert_Slice_string_To_v1_IncludeObjectPolicy(in *[]string, out *IncludeObjectPolicy, s conversion.Scope) error { if len(*in) > 0 { *out = IncludeObjectPolicy((*in)[0]) } return nil }
Convert_Slice_string_To_v1_IncludeObjectPolicy allows converting a URL query parameter value
Convert_Slice_string_To_v1_IncludeObjectPolicy
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
Apache-2.0
func Convert_url_Values_To_v1_DeleteOptions(in *url.Values, out *DeleteOptions, s conversion.Scope) error { if err := autoConvert_url_Values_To_v1_DeleteOptions(in, out, s); err != nil { return err } uid := types.UID("") if values, ok := (*in)["uid"]; ok && len(values) > 0 { uid = types.UID(values[0]) } resourceVersion := "" if values, ok := (*in)["resourceVersion"]; ok && len(values) > 0 { resourceVersion = values[0] } if len(uid) > 0 || len(resourceVersion) > 0 { if out.Preconditions == nil { out.Preconditions = &Preconditions{} } if len(uid) > 0 { out.Preconditions.UID = &uid } if len(resourceVersion) > 0 { out.Preconditions.ResourceVersion = &resourceVersion } } return nil }
Convert_url_Values_To_v1_DeleteOptions allows converting a URL to DeleteOptions.
Convert_url_Values_To_v1_DeleteOptions
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
Apache-2.0
func Convert_Slice_string_To_v1_ResourceVersionMatch(in *[]string, out *ResourceVersionMatch, s conversion.Scope) error { if len(*in) > 0 { *out = ResourceVersionMatch((*in)[0]) } return nil }
Convert_Slice_string_To_v1_ResourceVersionMatch allows converting a URL query parameter to ResourceVersionMatch
Convert_Slice_string_To_v1_ResourceVersionMatch
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/conversion.go
Apache-2.0
func CloneSelectorAndAddLabel(selector *LabelSelector, labelKey, labelValue string) *LabelSelector { if labelKey == "" { // Don't need to add a label. return selector } // Clone. newSelector := selector.DeepCopy() if newSelector.MatchLabels == nil { newSelector.MatchLabels = make(map[string]string) } newSelector.MatchLabels[labelKey] = labelValue return newSelector }
Clones the given selector and returns a new selector with the given key and value added. Returns the given selector, if labelKey is empty.
CloneSelectorAndAddLabel
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/labels.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/labels.go
Apache-2.0
func AddLabelToSelector(selector *LabelSelector, labelKey, labelValue string) *LabelSelector { if labelKey == "" { // Don't need to add a label. return selector } if selector.MatchLabels == nil { selector.MatchLabels = make(map[string]string) } selector.MatchLabels[labelKey] = labelValue return selector }
AddLabelToSelector returns a selector with the given key and value added to the given selector's MatchLabels.
AddLabelToSelector
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/labels.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/labels.go
Apache-2.0
func SelectorHasLabel(selector *LabelSelector, labelKey string) bool { return len(selector.MatchLabels[labelKey]) > 0 }
SelectorHasLabel checks if the given selector contains the given label key in its MatchLabels
SelectorHasLabel
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/labels.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/labels.go
Apache-2.0
func Kind(kind string) schema.GroupKind { return SchemeGroupVersion.WithKind(kind).GroupKind() }
Kind takes an unqualified kind and returns a Group qualified GroupKind
Kind
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/register.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/register.go
Apache-2.0
func AddToGroupVersion(scheme *runtime.Scheme, groupVersion schema.GroupVersion) { scheme.AddKnownTypeWithName(groupVersion.WithKind(WatchEventKind), &WatchEvent{}) scheme.AddKnownTypeWithName( 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, optionsTypes...) // Register Unversioned types under their own special group scheme.AddUnversionedTypes(Unversioned, &Status{}, &APIVersions{}, &APIGroupList{}, &APIGroup{}, &APIResourceList{}, ) // register manually. This usually goes through the SchemeBuilder, which we cannot use here. utilruntime.Must(RegisterConversions(scheme)) utilruntime.Must(RegisterDefaults(scheme)) }
AddToGroupVersion registers common meta types into schemas.
AddToGroupVersion
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/register.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/register.go
Apache-2.0
func AddMetaToScheme(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Table{}, &TableOptions{}, &PartialObjectMetadata{}, &PartialObjectMetadataList{}, ) return nil }
AddMetaToScheme registers base meta types into schemas.
AddMetaToScheme
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/register.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/register.go
Apache-2.0
func (t *MicroTime) Fuzz(c fuzz.Continue) { if t == nil { return } // Allow for about 1000 years of randomness. Accurate to a tenth of // micro second. Leave off nanoseconds because JSON doesn't // represent them so they can't round-trip properly. t.Time = time.Unix(c.Rand.Int63n(1000*365*24*60*60), 1000*c.Rand.Int63n(1000000)) }
Fuzz satisfies fuzz.Interface.
Fuzz
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_fuzz.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_fuzz.go
Apache-2.0
func (t *Time) Fuzz(c fuzz.Continue) { if t == nil { return } // Allow for about 1000 years of randomness. Leave off nanoseconds // because JSON doesn't represent them so they can't round-trip // properly. t.Time = time.Unix(c.Rand.Int63n(1000*365*24*60*60), 0) }
Fuzz satisfies fuzz.Interface.
Fuzz
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time_fuzz.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time_fuzz.go
Apache-2.0
func (in *APIGroup) DeepCopyInto(out *APIGroup) { *out = *in out.TypeMeta = in.TypeMeta if in.Versions != nil { in, out := &in.Versions, &out.Versions *out = make([]GroupVersionForDiscovery, len(*in)) copy(*out, *in) } out.PreferredVersion = in.PreferredVersion if in.ServerAddressByClientCIDRs != nil { in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs *out = make([]ServerAddressByClientCIDR, len(*in)) copy(*out, *in) } return }
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepCopyInto
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *APIGroup) DeepCopy() *APIGroup { if in == nil { return nil } out := new(APIGroup) in.DeepCopyInto(out) return out }
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIGroup.
DeepCopy
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *APIGroup) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
DeepCopyObject
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *APIGroupList) DeepCopyInto(out *APIGroupList) { *out = *in out.TypeMeta = in.TypeMeta if in.Groups != nil { in, out := &in.Groups, &out.Groups *out = make([]APIGroup, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return }
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepCopyInto
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *APIGroupList) DeepCopy() *APIGroupList { if in == nil { return nil } out := new(APIGroupList) in.DeepCopyInto(out) return out }
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIGroupList.
DeepCopy
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *APIGroupList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
DeepCopyObject
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *APIResource) DeepCopyInto(out *APIResource) { *out = *in if in.Verbs != nil { in, out := &in.Verbs, &out.Verbs *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) } if in.Categories != nil { in, out := &in.Categories, &out.Categories *out = make([]string, len(*in)) copy(*out, *in) } return }
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepCopyInto
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *APIResource) DeepCopy() *APIResource { if in == nil { return nil } out := new(APIResource) in.DeepCopyInto(out) return out }
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIResource.
DeepCopy
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *APIResourceList) DeepCopyInto(out *APIResourceList) { *out = *in out.TypeMeta = in.TypeMeta if in.APIResources != nil { in, out := &in.APIResources, &out.APIResources *out = make([]APIResource, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } return }
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepCopyInto
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *APIResourceList) DeepCopy() *APIResourceList { if in == nil { return nil } out := new(APIResourceList) in.DeepCopyInto(out) return out }
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIResourceList.
DeepCopy
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *APIResourceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
DeepCopyObject
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *APIVersions) DeepCopyInto(out *APIVersions) { *out = *in out.TypeMeta = in.TypeMeta if in.Versions != nil { in, out := &in.Versions, &out.Versions *out = make([]string, len(*in)) copy(*out, *in) } if in.ServerAddressByClientCIDRs != nil { in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs *out = make([]ServerAddressByClientCIDR, len(*in)) copy(*out, *in) } return }
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepCopyInto
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *APIVersions) DeepCopy() *APIVersions { if in == nil { return nil } out := new(APIVersions) in.DeepCopyInto(out) return out }
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIVersions.
DeepCopy
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *APIVersions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } return nil }
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
DeepCopyObject
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *ApplyOptions) DeepCopyInto(out *ApplyOptions) { *out = *in out.TypeMeta = in.TypeMeta if in.DryRun != nil { in, out := &in.DryRun, &out.DryRun *out = make([]string, len(*in)) copy(*out, *in) } return }
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepCopyInto
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *ApplyOptions) DeepCopy() *ApplyOptions { if in == nil { return nil } out := new(ApplyOptions) in.DeepCopyInto(out) return out }
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplyOptions.
DeepCopy
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *Condition) DeepCopyInto(out *Condition) { *out = *in in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) return }
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepCopyInto
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *Condition) DeepCopy() *Condition { if in == nil { return nil } out := new(Condition) in.DeepCopyInto(out) return out }
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
DeepCopy
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *CreateOptions) DeepCopyInto(out *CreateOptions) { *out = *in out.TypeMeta = in.TypeMeta if in.DryRun != nil { in, out := &in.DryRun, &out.DryRun *out = make([]string, len(*in)) copy(*out, *in) } return }
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
DeepCopyInto
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0
func (in *CreateOptions) DeepCopy() *CreateOptions { if in == nil { return nil } out := new(CreateOptions) in.DeepCopyInto(out) return out }
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateOptions.
DeepCopy
go
k8snetworkplumbingwg/multus-cni
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.deepcopy.go
Apache-2.0