v1

package
Version: v0.0.0-...-d88c8b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package v1 contains API types that are common to all versions.

The package contains two categories of types: - external (serialized) types that lack their own version (e.g TypeMeta) - internal (never-serialized) types that are needed by several different

api groups, and so live here, to avoid duplication and/or import loops
(e.g. LabelSelector).

In the future, we will probably move these categories of objects into separate packages.

Index

Constants

View Source
const (
	FinalizerOrphanDependents string = "orphan"
	FinalizerDeleteDependents string = "foregroundDeletion"
)

These are internal finalizer values for Kubernetes-like APIs, must be qualified name unless defined here

View Source
const (
	// NamespaceDefault means the object is in the default namespace which is applied when not specified by clients
	NamespaceDefault string = "default"
	// NamespaceAll is the default argument to specify on a context when you want to list or filter resources across all namespaces
	NamespaceAll string = ""
	// NamespaceNone is the argument for a context when there is no namespace.
	NamespaceNone string = ""
	// NamespaceSystem is the system namespace where we place system components.
	NamespaceSystem string = "kube-system"
	// NamespacePublic is the namespace where we place public info (ConfigMaps)
	NamespacePublic string = "kube-public"
)
View Source
const (
	StatusSuccess = "Success"
	StatusFailure = "Failure"
)

Values of Status.Status

View Source
const (
	// DryRunAll means to complete all processing stages, but don't
	// persist changes to storage.
	DryRunAll = "All"
)
View Source
const GroupName = "meta.k8s.io"

GroupName is the group name for this API.

View Source
const RFC3339Micro = "2006-01-02T15:04:05.000000Z07:00"
View Source
const WatchEventKind = "WatchEvent"

WatchEventKind is name reserved for serializing watch events.

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ParameterCodec = runtime.NewParameterCodec(scheme)

ParameterCodec knows about query parameters used with the meta v1 API spec.

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

View Source
var Unversioned = schema.GroupVersion{Group: "", Version: "v1"}

Unversioned is group version for unversioned API objects TODO: this should be v1 probably

Functions

func AddMetaToScheme

func AddMetaToScheme(scheme *runtime.Scheme) error

AddMetaToScheme registers base meta types into schemas.

func AddToGroupVersion

func AddToGroupVersion(scheme *runtime.Scheme, groupVersion schema.GroupVersion)

AddToGroupVersion registers common meta types into schemas.

func Convert_Map_string_To_string_To_v1_LabelSelector

func Convert_Map_string_To_string_To_v1_LabelSelector(in *map[string]string, out *LabelSelector, s conversion.Scope) error

func Convert_Pointer_bool_To_bool

func Convert_Pointer_bool_To_bool(in **bool, out *bool, s conversion.Scope) error

func Convert_Pointer_float64_To_float64

func Convert_Pointer_float64_To_float64(in **float64, out *float64, s conversion.Scope) error

func Convert_Pointer_int32_To_int32

func Convert_Pointer_int32_To_int32(in **int32, out *int32, s conversion.Scope) error

func Convert_Pointer_int64_To_int

func Convert_Pointer_int64_To_int(in **int64, out *int, s conversion.Scope) error

func Convert_Pointer_int64_To_int64

func Convert_Pointer_int64_To_int64(in **int64, out *int64, s conversion.Scope) error

func Convert_Pointer_intstr_IntOrString_To_intstr_IntOrString

func Convert_Pointer_intstr_IntOrString_To_intstr_IntOrString(in **intstr.IntOrString, out *intstr.IntOrString, s conversion.Scope) error

func Convert_Pointer_string_To_string

func Convert_Pointer_string_To_string(in **string, out *string, s conversion.Scope) error

func Convert_Pointer_v1_Duration_To_v1_Duration

func Convert_Pointer_v1_Duration_To_v1_Duration(in **Duration, out *Duration, s conversion.Scope) error

func Convert_Slice_string_To_Pointer_v1_DeletionPropagation

func Convert_Slice_string_To_Pointer_v1_DeletionPropagation(in *[]string, out **DeletionPropagation, s conversion.Scope) error

Convert_Slice_string_To_Pointer_v1_DeletionPropagation allows converting a URL query parameter propagationPolicy

func Convert_Slice_string_To_Pointer_v1_Time

func Convert_Slice_string_To_Pointer_v1_Time(in *[]string, out **Time, s conversion.Scope) error

func Convert_Slice_string_To_Slice_int32

func Convert_Slice_string_To_Slice_int32(in *[]string, out *[]int32, s conversion.Scope) error

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.

func Convert_Slice_string_To_v1_IncludeObjectPolicy

func Convert_Slice_string_To_v1_IncludeObjectPolicy(in *[]string, out *IncludeObjectPolicy, s conversion.Scope) error

Convert_Slice_string_To_v1_IncludeObjectPolicy allows converting a URL query parameter value

func Convert_Slice_string_To_v1_ResourceVersionMatch

func Convert_Slice_string_To_v1_ResourceVersionMatch(in *[]string, out *ResourceVersionMatch, s conversion.Scope) error

Convert_Slice_string_To_v1_ResourceVersionMatch allows converting a URL query parameter to ResourceVersionMatch

func Convert_Slice_string_To_v1_Time

func Convert_Slice_string_To_v1_Time(in *[]string, out *Time, s conversion.Scope) error

Convert_Slice_string_To_v1_Time allows converting a URL query parameter value

func Convert_bool_To_Pointer_bool

func Convert_bool_To_Pointer_bool(in *bool, out **bool, s conversion.Scope) error

func Convert_fields_Selector_To_string

func Convert_fields_Selector_To_string(in *fields.Selector, out *string, s conversion.Scope) error

func Convert_float64_To_Pointer_float64

func Convert_float64_To_Pointer_float64(in *float64, out **float64, s conversion.Scope) error

func Convert_int32_To_Pointer_int32

func Convert_int32_To_Pointer_int32(in *int32, out **int32, s conversion.Scope) error

func Convert_int64_To_Pointer_int64

func Convert_int64_To_Pointer_int64(in *int64, out **int64, s conversion.Scope) error

func Convert_int_To_Pointer_int64

func Convert_int_To_Pointer_int64(in *int, out **int64, s conversion.Scope) error

func Convert_intstr_IntOrString_To_Pointer_intstr_IntOrString

func Convert_intstr_IntOrString_To_Pointer_intstr_IntOrString(in *intstr.IntOrString, out **intstr.IntOrString, s conversion.Scope) error

func Convert_intstr_IntOrString_To_intstr_IntOrString

func Convert_intstr_IntOrString_To_intstr_IntOrString(in, out *intstr.IntOrString, s conversion.Scope) error

+k8s:conversion-fn=copy-only

func Convert_labels_Selector_To_string

func Convert_labels_Selector_To_string(in *labels.Selector, out *string, s conversion.Scope) error

func Convert_resource_Quantity_To_resource_Quantity

func Convert_resource_Quantity_To_resource_Quantity(in *resource.Quantity, out *resource.Quantity, s conversion.Scope) error

+k8s:conversion-fn=copy-only

func Convert_string_To_Pointer_string

func Convert_string_To_Pointer_string(in *string, out **string, s conversion.Scope) error

func Convert_string_To_fields_Selector

func Convert_string_To_fields_Selector(in *string, out *fields.Selector, s conversion.Scope) error

func Convert_string_To_labels_Selector

func Convert_string_To_labels_Selector(in *string, out *labels.Selector, s conversion.Scope) error

func Convert_url_Values_To_v1_CreateOptions

func Convert_url_Values_To_v1_CreateOptions(in *url.Values, out *CreateOptions, s conversion.Scope) error

Convert_url_Values_To_v1_CreateOptions is an autogenerated conversion function.

func Convert_url_Values_To_v1_DeleteOptions

func Convert_url_Values_To_v1_DeleteOptions(in *url.Values, out *DeleteOptions, s conversion.Scope) error

Convert_url_Values_To_v1_DeleteOptions allows converting a URL to DeleteOptions.

func Convert_url_Values_To_v1_ExportOptions

func Convert_url_Values_To_v1_ExportOptions(in *url.Values, out *ExportOptions, s conversion.Scope) error

Convert_url_Values_To_v1_ExportOptions is an autogenerated conversion function.

func Convert_url_Values_To_v1_GetOptions

func Convert_url_Values_To_v1_GetOptions(in *url.Values, out *GetOptions, s conversion.Scope) error

Convert_url_Values_To_v1_GetOptions is an autogenerated conversion function.

func Convert_url_Values_To_v1_ListOptions

func Convert_url_Values_To_v1_ListOptions(in *url.Values, out *ListOptions, s conversion.Scope) error

Convert_url_Values_To_v1_ListOptions is an autogenerated conversion function.

func Convert_url_Values_To_v1_PatchOptions

func Convert_url_Values_To_v1_PatchOptions(in *url.Values, out *PatchOptions, s conversion.Scope) error

Convert_url_Values_To_v1_PatchOptions is an autogenerated conversion function.

func Convert_url_Values_To_v1_TableOptions

func Convert_url_Values_To_v1_TableOptions(in *url.Values, out *TableOptions, s conversion.Scope) error

Convert_url_Values_To_v1_TableOptions is an autogenerated conversion function.

func Convert_url_Values_To_v1_UpdateOptions

func Convert_url_Values_To_v1_UpdateOptions(in *url.Values, out *UpdateOptions, s conversion.Scope) error

Convert_url_Values_To_v1_UpdateOptions is an autogenerated conversion function.

func Convert_v1_DeleteOptions_To_v1_DeleteOptions

func Convert_v1_DeleteOptions_To_v1_DeleteOptions(in, out *DeleteOptions, s conversion.Scope) error

+k8s:conversion-fn=copy-only

func Convert_v1_Duration_To_Pointer_v1_Duration

func Convert_v1_Duration_To_Pointer_v1_Duration(in *Duration, out **Duration, s conversion.Scope) error

func Convert_v1_InternalEvent_To_v1_WatchEvent

func Convert_v1_InternalEvent_To_v1_WatchEvent(in *InternalEvent, out *WatchEvent, s conversion.Scope) error

func Convert_v1_LabelSelector_To_Map_string_To_string

func Convert_v1_LabelSelector_To_Map_string_To_string(in *LabelSelector, out *map[string]string, s conversion.Scope) error

func Convert_v1_ListMeta_To_v1_ListMeta

func Convert_v1_ListMeta_To_v1_ListMeta(in, out *ListMeta, s conversion.Scope) error

+k8s:conversion-fn=copy-only

func Convert_v1_MicroTime_To_v1_MicroTime

func Convert_v1_MicroTime_To_v1_MicroTime(in *MicroTime, out *MicroTime, s conversion.Scope) error

+k8s:conversion-fn=copy-only

func Convert_v1_Time_To_v1_Time

func Convert_v1_Time_To_v1_Time(in *Time, out *Time, s conversion.Scope) error

+k8s:conversion-fn=copy-only

func Convert_v1_TypeMeta_To_v1_TypeMeta

func Convert_v1_TypeMeta_To_v1_TypeMeta(in, out *TypeMeta, s conversion.Scope) error

+k8s:conversion-fn=drop

func Convert_v1_WatchEvent_To_v1_InternalEvent

func Convert_v1_WatchEvent_To_v1_InternalEvent(in *WatchEvent, out *InternalEvent, s conversion.Scope) error

func Convert_v1_WatchEvent_To_watch_Event

func Convert_v1_WatchEvent_To_watch_Event(in *WatchEvent, out *watch.Event, s conversion.Scope) error

func Convert_watch_Event_To_v1_WatchEvent

func Convert_watch_Event_To_v1_WatchEvent(in *watch.Event, out *WatchEvent, s conversion.Scope) error

func ExtractGroupVersions

func ExtractGroupVersions(l *APIGroupList) []string

func FieldSelectorQueryParam

func FieldSelectorQueryParam(version string) string

TODO: remove me when watch is refactored

func FormatLabelSelector

func FormatLabelSelector(labelSelector *LabelSelector) string

FormatLabelSelector convert labelSelector into plain string

func HasAnnotation

func HasAnnotation(obj ObjectMeta, ann string) bool

HasAnnotation returns a bool if passed in annotation exists

func HasLabel

func HasLabel(obj ObjectMeta, label string) bool

HasLabel returns a bool if passed in label exists

func HasObjectMetaSystemFieldValues

func HasObjectMetaSystemFieldValues(meta Object) bool

HasObjectMetaSystemFieldValues returns true if fields that are managed by the system on ObjectMeta have values.

func IsControlledBy

func IsControlledBy(obj Object, owner Object) bool

IsControlledBy checks if the object has a controllerRef set to the given owner

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func LabelSelectorAsMap

func LabelSelectorAsMap(ps *LabelSelector) (map[string]string, error)

LabelSelectorAsMap converts the LabelSelector api type into a map of strings, ie. the original structure of a label selector. Operators that cannot be converted into plain labels (Exists, DoesNotExist, NotIn, and In with more than one value) will result in an error.

func LabelSelectorAsSelector

func LabelSelectorAsSelector(ps *LabelSelector) (labels.Selector, error)

LabelSelectorAsSelector converts the LabelSelector api type into a struct that implements labels.Selector Note: This function should be kept in sync with the selector methods in pkg/labels/selector.go

func LabelSelectorQueryParam

func LabelSelectorQueryParam(version string) string

TODO: remove me when watch is refactored

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func ResetObjectMetaForStatus

func ResetObjectMetaForStatus(meta, existingMeta Object)

ResetObjectMetaForStatus forces the meta fields for a status update to match the meta fields for a pre-existing object. This is opt-in for new objects with Status subresource.

func SelectorHasLabel

func SelectorHasLabel(selector *LabelSelector, labelKey string) bool

SelectorHasLabel checks if the given selector contains the given label key in its MatchLabels

func SetMetaDataAnnotation

func SetMetaDataAnnotation(obj *ObjectMeta, ann string, value string)

SetMetaDataAnnotation sets the annotation and value

func SetMetaDataLabel

func SetMetaDataLabel(obj *ObjectMeta, label string, value string)

SetMetaDataLabel sets the label and value

Types

type APIGroup

type APIGroup struct {
	TypeMeta `json:",inline"`
	// name is the name of the group.
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
	// versions are the versions supported in this group.
	Versions []GroupVersionForDiscovery `json:"versions" protobuf:"bytes,2,rep,name=versions"`
	// preferredVersion is the version preferred by the API server, which
	// probably is the storage version.
	// +optional
	PreferredVersion GroupVersionForDiscovery `json:"preferredVersion,omitempty" protobuf:"bytes,3,opt,name=preferredVersion"`
	// a map of client CIDR to server address that is serving this group.
	// This is to help clients reach servers in the most network-efficient way possible.
	// Clients can use the appropriate server address as per the CIDR that they match.
	// In case of multiple matches, clients should use the longest matching CIDR.
	// The server returns only those CIDRs that it thinks that the client can match.
	// For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
	// Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
	// +optional
	ServerAddressByClientCIDRs []ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs,omitempty" protobuf:"bytes,4,rep,name=serverAddressByClientCIDRs"`
}

APIGroup contains the name, the supported versions, and the preferred version of a group.

func (*APIGroup) DeepCopy

func (in *APIGroup) DeepCopy() *APIGroup

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIGroup.

func (*APIGroup) DeepCopyInto

func (in *APIGroup) DeepCopyInto(out *APIGroup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*APIGroup) DeepCopyObject

func (in *APIGroup) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*APIGroup) Descriptor

func (*APIGroup) Descriptor() ([]byte, []int)

func (*APIGroup) Marshal

func (m *APIGroup) Marshal() (dAtA []byte, err error)

func (*APIGroup) MarshalTo

func (m *APIGroup) MarshalTo(dAtA []byte) (int, error)

func (*APIGroup) MarshalToSizedBuffer

func (m *APIGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*APIGroup) ProtoMessage

func (*APIGroup) ProtoMessage()

func (*APIGroup) Reset

func (m *APIGroup) Reset()

func (*APIGroup) Size

func (m *APIGroup) Size() (n int)

func (*APIGroup) String

func (this *APIGroup) String() string

func (APIGroup) SwaggerDoc

func (APIGroup) SwaggerDoc() map[string]string

func (*APIGroup) Unmarshal

func (m *APIGroup) Unmarshal(dAtA []byte) error

func (*APIGroup) XXX_DiscardUnknown

func (m *APIGroup) XXX_DiscardUnknown()

func (*APIGroup) XXX_Marshal

func (m *APIGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*APIGroup) XXX_Merge

func (m *APIGroup) XXX_Merge(src proto.Message)

func (*APIGroup) XXX_Size

func (m *APIGroup) XXX_Size() int

func (*APIGroup) XXX_Unmarshal

func (m *APIGroup) XXX_Unmarshal(b []byte) error

type APIGroupList

type APIGroupList struct {
	TypeMeta `json:",inline"`
	// groups is a list of APIGroup.
	Groups []APIGroup `json:"groups" protobuf:"bytes,1,rep,name=groups"`
}

APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.

func (*APIGroupList) DeepCopy

func (in *APIGroupList) DeepCopy() *APIGroupList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIGroupList.

func (*APIGroupList) DeepCopyInto

func (in *APIGroupList) DeepCopyInto(out *APIGroupList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*APIGroupList) DeepCopyObject

func (in *APIGroupList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*APIGroupList) Descriptor

func (*APIGroupList) Descriptor() ([]byte, []int)

func (*APIGroupList) Marshal

func (m *APIGroupList) Marshal() (dAtA []byte, err error)

func (*APIGroupList) MarshalTo

func (m *APIGroupList) MarshalTo(dAtA []byte) (int, error)

func (*APIGroupList) MarshalToSizedBuffer

func (m *APIGroupList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*APIGroupList) ProtoMessage

func (*APIGroupList) ProtoMessage()

func (*APIGroupList) Reset

func (m *APIGroupList) Reset()

func (*APIGroupList) Size

func (m *APIGroupList) Size() (n int)

func (*APIGroupList) String

func (this *APIGroupList) String() string

func (APIGroupList) SwaggerDoc

func (APIGroupList) SwaggerDoc() map[string]string

func (*APIGroupList) Unmarshal

func (m *APIGroupList) Unmarshal(dAtA []byte) error

func (*APIGroupList) XXX_DiscardUnknown

func (m *APIGroupList) XXX_DiscardUnknown()

func (*APIGroupList) XXX_Marshal

func (m *APIGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*APIGroupList) XXX_Merge

func (m *APIGroupList) XXX_Merge(src proto.Message)

func (*APIGroupList) XXX_Size

func (m *APIGroupList) XXX_Size() int

func (*APIGroupList) XXX_Unmarshal

func (m *APIGroupList) XXX_Unmarshal(b []byte) error

type APIResource

type APIResource struct {
	// name is the plural name of the resource.
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
	// singularName is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
	// The singularName is more correct for reporting status on a single item and both singular and plural are allowed
	// from the kubectl CLI interface.
	SingularName string `json:"singularName" protobuf:"bytes,6,opt,name=singularName"`
	// namespaced indicates if a resource is namespaced or not.
	Namespaced bool `json:"namespaced" protobuf:"varint,2,opt,name=namespaced"`
	// group is the preferred group of the resource.  Empty implies the group of the containing resource list.
	// For subresources, this may have a different value, for example: Scale".
	Group string `json:"group,omitempty" protobuf:"bytes,8,opt,name=group"`
	// version is the preferred version of the resource.  Empty implies the version of the containing resource list
	// For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
	Version string `json:"version,omitempty" protobuf:"bytes,9,opt,name=version"`
	// kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
	Kind string `json:"kind" protobuf:"bytes,3,opt,name=kind"`
	// 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"`
	// categories is a list of the grouped resources this resource belongs to (e.g. 'all')
	Categories []string `json:"categories,omitempty" protobuf:"bytes,7,rep,name=categories"`
	// The hash value of the storage version, the version this resource is
	// converted to when written to the data store. Value must be treated
	// as opaque by clients. Only equality comparison on the value is valid.
	// This is an alpha feature and may change or be removed in the future.
	// The field is populated by the apiserver only if the
	// StorageVersionHash feature gate is enabled.
	// This field will remain optional even if it graduates.
	// +optional
	StorageVersionHash string `json:"storageVersionHash,omitempty" protobuf:"bytes,10,opt,name=storageVersionHash"`
}

APIResource specifies the name of a resource and whether it is namespaced.

func (*APIResource) DeepCopy

func (in *APIResource) DeepCopy() *APIResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIResource.

func (*APIResource) DeepCopyInto

func (in *APIResource) DeepCopyInto(out *APIResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*APIResource) Descriptor

func (*APIResource) Descriptor() ([]byte, []int)

func (*APIResource) Marshal

func (m *APIResource) Marshal() (dAtA []byte, err error)

func (*APIResource) MarshalTo

func (m *APIResource) MarshalTo(dAtA []byte) (int, error)

func (*APIResource) MarshalToSizedBuffer

func (m *APIResource) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*APIResource) ProtoMessage

func (*APIResource) ProtoMessage()

func (*APIResource) Reset

func (m *APIResource) Reset()

func (*APIResource) Size

func (m *APIResource) Size() (n int)

func (*APIResource) String

func (this *APIResource) String() string

func (APIResource) SwaggerDoc

func (APIResource) SwaggerDoc() map[string]string

func (*APIResource) Unmarshal

func (m *APIResource) Unmarshal(dAtA []byte) error

func (*APIResource) XXX_DiscardUnknown

func (m *APIResource) XXX_DiscardUnknown()

func (*APIResource) XXX_Marshal

func (m *APIResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*APIResource) XXX_Merge

func (m *APIResource) XXX_Merge(src proto.Message)

func (*APIResource) XXX_Size

func (m *APIResource) XXX_Size() int

func (*APIResource) XXX_Unmarshal

func (m *APIResource) XXX_Unmarshal(b []byte) error

type APIResourceList

type APIResourceList struct {
	TypeMeta `json:",inline"`
	// groupVersion is the group and version this APIResourceList is for.
	GroupVersion string `json:"groupVersion" protobuf:"bytes,1,opt,name=groupVersion"`
	// resources contains the name of the resources and if they are namespaced.
	APIResources []APIResource `json:"resources" protobuf:"bytes,2,rep,name=resources"`
}

APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.

func (*APIResourceList) DeepCopy

func (in *APIResourceList) DeepCopy() *APIResourceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIResourceList.

func (*APIResourceList) DeepCopyInto

func (in *APIResourceList) DeepCopyInto(out *APIResourceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*APIResourceList) DeepCopyObject

func (in *APIResourceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*APIResourceList) Descriptor

func (*APIResourceList) Descriptor() ([]byte, []int)

func (*APIResourceList) Marshal

func (m *APIResourceList) Marshal() (dAtA []byte, err error)

func (*APIResourceList) MarshalTo

func (m *APIResourceList) MarshalTo(dAtA []byte) (int, error)

func (*APIResourceList) MarshalToSizedBuffer

func (m *APIResourceList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*APIResourceList) ProtoMessage

func (*APIResourceList) ProtoMessage()

func (*APIResourceList) Reset

func (m *APIResourceList) Reset()

func (*APIResourceList) Size

func (m *APIResourceList) Size() (n int)

func (*APIResourceList) String

func (this *APIResourceList) String() string

func (APIResourceList) SwaggerDoc

func (APIResourceList) SwaggerDoc() map[string]string

func (*APIResourceList) Unmarshal

func (m *APIResourceList) Unmarshal(dAtA []byte) error

func (*APIResourceList) XXX_DiscardUnknown

func (m *APIResourceList) XXX_DiscardUnknown()

func (*APIResourceList) XXX_Marshal

func (m *APIResourceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*APIResourceList) XXX_Merge

func (m *APIResourceList) XXX_Merge(src proto.Message)

func (*APIResourceList) XXX_Size

func (m *APIResourceList) XXX_Size() int

func (*APIResourceList) XXX_Unmarshal

func (m *APIResourceList) XXX_Unmarshal(b []byte) error

type APIVersions

type APIVersions struct {
	TypeMeta `json:",inline"`
	// versions are the api versions that are available.
	Versions []string `json:"versions" protobuf:"bytes,1,rep,name=versions"`
	// a map of client CIDR to server address that is serving this group.
	// This is to help clients reach servers in the most network-efficient way possible.
	// Clients can use the appropriate server address as per the CIDR that they match.
	// In case of multiple matches, clients should use the longest matching CIDR.
	// The server returns only those CIDRs that it thinks that the client can match.
	// For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
	// Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
	ServerAddressByClientCIDRs []ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs" protobuf:"bytes,2,rep,name=serverAddressByClientCIDRs"`
}

APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.

+protobuf.options.(gogoproto.goproto_stringer)=false +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*APIVersions) DeepCopy

func (in *APIVersions) DeepCopy() *APIVersions

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIVersions.

func (*APIVersions) DeepCopyInto

func (in *APIVersions) DeepCopyInto(out *APIVersions)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*APIVersions) DeepCopyObject

func (in *APIVersions) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*APIVersions) Descriptor

func (*APIVersions) Descriptor() ([]byte, []int)

func (APIVersions) GoString

func (apiVersions APIVersions) GoString() string

func (*APIVersions) Marshal

func (m *APIVersions) Marshal() (dAtA []byte, err error)

func (*APIVersions) MarshalTo

func (m *APIVersions) MarshalTo(dAtA []byte) (int, error)

func (*APIVersions) MarshalToSizedBuffer

func (m *APIVersions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*APIVersions) ProtoMessage

func (*APIVersions) ProtoMessage()

func (*APIVersions) Reset

func (m *APIVersions) Reset()

func (*APIVersions) Size

func (m *APIVersions) Size() (n int)

func (APIVersions) String

func (apiVersions APIVersions) String() string

String returns available api versions as a human-friendly version string.

func (APIVersions) SwaggerDoc

func (APIVersions) SwaggerDoc() map[string]string

func (*APIVersions) Unmarshal

func (m *APIVersions) Unmarshal(dAtA []byte) error

func (*APIVersions) XXX_DiscardUnknown

func (m *APIVersions) XXX_DiscardUnknown()

func (*APIVersions) XXX_Marshal

func (m *APIVersions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*APIVersions) XXX_Merge

func (m *APIVersions) XXX_Merge(src proto.Message)

func (*APIVersions) XXX_Size

func (m *APIVersions) XXX_Size() int

func (*APIVersions) XXX_Unmarshal

func (m *APIVersions) XXX_Unmarshal(b []byte) error

type CauseType

type CauseType string

CauseType is a machine readable value providing more detail about what occurred in a status response. An operation may have multiple causes for a status (whether Failure or Success).

const (
	// CauseTypeFieldValueNotFound is used to report failure to find a requested value
	// (e.g. looking up an ID).
	CauseTypeFieldValueNotFound CauseType = "FieldValueNotFound"
	// CauseTypeFieldValueRequired is used to report required values that are not
	// provided (e.g. empty strings, null values, or empty arrays).
	CauseTypeFieldValueRequired CauseType = "FieldValueRequired"
	// CauseTypeFieldValueDuplicate is used to report collisions of values that must be
	// unique (e.g. unique IDs).
	CauseTypeFieldValueDuplicate CauseType = "FieldValueDuplicate"
	// CauseTypeFieldValueInvalid is used to report malformed values (e.g. failed regex
	// match).
	CauseTypeFieldValueInvalid CauseType = "FieldValueInvalid"
	// CauseTypeFieldValueNotSupported is used to report valid (as per formatting rules)
	// values that can not be handled (e.g. an enumerated string).
	CauseTypeFieldValueNotSupported CauseType = "FieldValueNotSupported"
	// CauseTypeUnexpectedServerResponse is used to report when the server responded to the client
	// without the expected return type. The presence of this cause indicates the error may be
	// due to an intervening proxy or the server software malfunctioning.
	CauseTypeUnexpectedServerResponse CauseType = "UnexpectedServerResponse"
	// FieldManagerConflict is used to report when another client claims to manage this field,
	// It should only be returned for a request using server-side apply.
	CauseTypeFieldManagerConflict CauseType = "FieldManagerConflict"
	// CauseTypeResourceVersionTooLarge is used to report that the requested resource version
	// is newer than the data observed by the API server, so the request cannot be served.
	CauseTypeResourceVersionTooLarge CauseType = "ResourceVersionTooLarge"
)

type Common

type Common interface {
	GetResourceVersion() string
	SetResourceVersion(version string)
	GetSelfLink() string
	SetSelfLink(selfLink string)
}

Common lets you work with core metadata from any of the versioned or internal API objects. Attempting to set or retrieve a field on an object that does not support that field will be a no-op and return a default value. TODO: move this, and TypeMeta and ListMeta, to a different package

type Condition

type Condition struct {
	// type of condition in CamelCase or in foo.example.com/CamelCase.
	// ---
	// Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
	// useful (see .node.status.conditions), the ability to deconflict is important.
	// The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
	// +kubebuilder:validation:MaxLength=316
	Type string `json:"type" protobuf:"bytes,1,opt,name=type"`
	// status of the condition, one of True, False, Unknown.
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=True;False;Unknown
	Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status"`
	// observedGeneration represents the .metadata.generation that the condition was set based upon.
	// For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
	// with respect to the current state of the instance.
	// +optional
	// +kubebuilder:validation:Minimum=0
	ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"`
	// lastTransitionTime is the last time the condition transitioned from one status to another.
	// This should be when the underlying condition changed.  If that is not known, then using the time when the API field changed is acceptable.
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Format=date-time
	LastTransitionTime Time `json:"lastTransitionTime" protobuf:"bytes,4,opt,name=lastTransitionTime"`
	// reason contains a programmatic identifier indicating the reason for the condition's last transition.
	// Producers of specific condition types may define expected values and meanings for this field,
	// and whether the values are considered a guaranteed API.
	// The value should be a CamelCase string.
	// This field may not be empty.
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MaxLength=1024
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
	Reason string `json:"reason" protobuf:"bytes,5,opt,name=reason"`
	// message is a human readable message indicating details about the transition.
	// This may be an empty string.
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MaxLength=32768
	Message string `json:"message" protobuf:"bytes,6,opt,name=message"`
}

Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, type FooStatus struct{

// Represents the observations of a foo's current state.
// Known .status.conditions.type are: "Available", "Progressing", and "Degraded"
// +patchMergeKey=type
// +patchStrategy=merge
// +listType=map
// +listMapKey=type
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`

// other fields

}

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Condition) Descriptor

func (*Condition) Descriptor() ([]byte, []int)

func (*Condition) Marshal

func (m *Condition) Marshal() (dAtA []byte, err error)

func (*Condition) MarshalTo

func (m *Condition) MarshalTo(dAtA []byte) (int, error)

func (*Condition) MarshalToSizedBuffer

func (m *Condition) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Condition) ProtoMessage

func (*Condition) ProtoMessage()

func (*Condition) Reset

func (m *Condition) Reset()

func (*Condition) Size

func (m *Condition) Size() (n int)

func (*Condition) String

func (this *Condition) String() string

func (Condition) SwaggerDoc

func (Condition) SwaggerDoc() map[string]string

func (*Condition) Unmarshal

func (m *Condition) Unmarshal(dAtA []byte) error

func (*Condition) XXX_DiscardUnknown

func (m *Condition) XXX_DiscardUnknown()

func (*Condition) XXX_Marshal

func (m *Condition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Condition) XXX_Merge

func (m *Condition) XXX_Merge(src proto.Message)

func (*Condition) XXX_Size

func (m *Condition) XXX_Size() int

func (*Condition) XXX_Unmarshal

func (m *Condition) XXX_Unmarshal(b []byte) error

type ConditionStatus

type ConditionStatus string
const (
	ConditionTrue    ConditionStatus = "True"
	ConditionFalse   ConditionStatus = "False"
	ConditionUnknown ConditionStatus = "Unknown"
)

These are valid condition statuses. "ConditionTrue" means a resource is in the condition. "ConditionFalse" means a resource is not in the condition. "ConditionUnknown" means kubernetes can't decide if a resource is in the condition or not. In the future, we could add other intermediate conditions, e.g. ConditionDegraded.

type CreateOptions

type CreateOptions struct {
	TypeMeta `json:",inline"`

	// When present, indicates that modifications should not be
	// persisted. An invalid or unrecognized dryRun directive will
	// result in an error response and no further processing of the
	// request. Valid values are:
	// - All: all dry run stages will be processed
	// +optional
	DryRun []string `json:"dryRun,omitempty" protobuf:"bytes,1,rep,name=dryRun"`

	// fieldManager is a name associated with the actor or entity
	// that is making these changes. The value must be less than or
	// 128 characters long, and only contain printable characters,
	// as defined by https://golang.org/pkg/unicode/#IsPrint.
	// +optional
	FieldManager string `json:"fieldManager,omitempty" protobuf:"bytes,3,name=fieldManager"`
}

CreateOptions may be provided when creating an API object.

func (*CreateOptions) DeepCopy

func (in *CreateOptions) DeepCopy() *CreateOptions

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateOptions.

func (*CreateOptions) DeepCopyInto

func (in *CreateOptions) DeepCopyInto(out *CreateOptions)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CreateOptions) DeepCopyObject

func (in *CreateOptions) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*CreateOptions) Descriptor

func (*CreateOptions) Descriptor() ([]byte, []int)

func (*CreateOptions) Marshal

func (m *CreateOptions) Marshal() (dAtA []byte, err error)

func (*CreateOptions) MarshalTo

func (m *CreateOptions) MarshalTo(dAtA []byte) (int, error)

func (*CreateOptions) MarshalToSizedBuffer

func (m *CreateOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreateOptions) ProtoMessage

func (*CreateOptions) ProtoMessage()

func (*CreateOptions) Reset

func (m *CreateOptions) Reset()

func (*CreateOptions) Size

func (m *CreateOptions) Size() (n int)

func (*CreateOptions) String

func (this *CreateOptions) String() string

func (CreateOptions) SwaggerDoc

func (CreateOptions) SwaggerDoc() map[string]string

func (*CreateOptions) Unmarshal

func (m *CreateOptions) Unmarshal(dAtA []byte) error

func (*CreateOptions) XXX_DiscardUnknown

func (m *CreateOptions) XXX_DiscardUnknown()

func (*CreateOptions) XXX_Marshal

func (m *CreateOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateOptions) XXX_Merge

func (m *CreateOptions) XXX_Merge(src proto.Message)

func (*CreateOptions) XXX_Size

func (m *CreateOptions) XXX_Size() int

func (*CreateOptions) XXX_Unmarshal

func (m *CreateOptions) XXX_Unmarshal(b []byte) error

type DeleteOptions

type DeleteOptions struct {
	TypeMeta `json:",inline"`

	// The duration in seconds before the object should be deleted. Value must be non-negative integer.
	// The value zero indicates delete immediately. If this value is nil, the default grace period for the
	// specified type will be used.
	// Defaults to a per object value if not specified. zero means delete immediately.
	// +optional
	GracePeriodSeconds *int64 `json:"gracePeriodSeconds,omitempty" protobuf:"varint,1,opt,name=gracePeriodSeconds"`

	// Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
	// returned.
	// +k8s:conversion-gen=false
	// +optional
	Preconditions *Preconditions `json:"preconditions,omitempty" protobuf:"bytes,2,opt,name=preconditions"`

	// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.
	// Should the dependent objects be orphaned. If true/false, the "orphan"
	// finalizer will be added to/removed from the object's finalizers list.
	// Either this field or PropagationPolicy may be set, but not both.
	// +optional
	OrphanDependents *bool `json:"orphanDependents,omitempty" protobuf:"varint,3,opt,name=orphanDependents"`

	// Whether and how garbage collection will be performed.
	// Either this field or OrphanDependents may be set, but not both.
	// The default policy is decided by the existing finalizer set in the
	// metadata.finalizers and the resource-specific default policy.
	// Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
	// allow the garbage collector to delete the dependents in the background;
	// 'Foreground' - a cascading policy that deletes all dependents in the
	// foreground.
	// +optional
	PropagationPolicy *DeletionPropagation `json:"propagationPolicy,omitempty" protobuf:"varint,4,opt,name=propagationPolicy"`

	// When present, indicates that modifications should not be
	// persisted. An invalid or unrecognized dryRun directive will
	// result in an error response and no further processing of the
	// request. Valid values are:
	// - All: all dry run stages will be processed
	// +optional
	DryRun []string `json:"dryRun,omitempty" protobuf:"bytes,5,rep,name=dryRun"`
}

DeleteOptions may be provided when deleting an API object.

func NewDeleteOptions

func NewDeleteOptions(grace int64) *DeleteOptions

NewDeleteOptions returns a DeleteOptions indicating the resource should be deleted within the specified grace period. Use zero to indicate immediate deletion. If you would prefer to use the default grace period, use &metav1.DeleteOptions{} directly.

func NewPreconditionDeleteOptions

func NewPreconditionDeleteOptions(uid string) *DeleteOptions

NewPreconditionDeleteOptions returns a DeleteOptions with a UID precondition set.

func NewRVDeletionPrecondition

func NewRVDeletionPrecondition(rv string) *DeleteOptions

NewRVDeletionPrecondition returns a DeleteOptions with a ResourceVersion precondition set.

func (*DeleteOptions) DeepCopy

func (in *DeleteOptions) DeepCopy() *DeleteOptions

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeleteOptions.

func (*DeleteOptions) DeepCopyInto

func (in *DeleteOptions) DeepCopyInto(out *DeleteOptions)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DeleteOptions) DeepCopyObject

func (in *DeleteOptions) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*DeleteOptions) Descriptor

func (*DeleteOptions) Descriptor() ([]byte, []int)

func (*DeleteOptions) Marshal

func (m *DeleteOptions) Marshal() (dAtA []byte, err error)

func (*DeleteOptions) MarshalTo

func (m *DeleteOptions) MarshalTo(dAtA []byte) (int, error)

func (*DeleteOptions) MarshalToSizedBuffer

func (m *DeleteOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeleteOptions) ProtoMessage

func (*DeleteOptions) ProtoMessage()

func (*DeleteOptions) Reset

func (m *DeleteOptions) Reset()

func (*DeleteOptions) Size

func (m *DeleteOptions) Size() (n int)

func (*DeleteOptions) String

func (this *DeleteOptions) String() string

func (DeleteOptions) SwaggerDoc

func (DeleteOptions) SwaggerDoc() map[string]string

func (*DeleteOptions) Unmarshal

func (m *DeleteOptions) Unmarshal(dAtA []byte) error

func (*DeleteOptions) XXX_DiscardUnknown

func (m *DeleteOptions) XXX_DiscardUnknown()

func (*DeleteOptions) XXX_Marshal

func (m *DeleteOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteOptions) XXX_Merge

func (m *DeleteOptions) XXX_Merge(src proto.Message)

func (*DeleteOptions) XXX_Size

func (m *DeleteOptions) XXX_Size() int

func (*DeleteOptions) XXX_Unmarshal

func (m *DeleteOptions) XXX_Unmarshal(b []byte) error

type DeletionPropagation

type DeletionPropagation string

DeletionPropagation decides if a deletion will propagate to the dependents of the object, and how the garbage collector will handle the propagation.

const (
	// Orphans the dependents.
	DeletePropagationOrphan DeletionPropagation = "Orphan"
	// Deletes the object from the key-value store, the garbage collector will
	// delete the dependents in the background.
	DeletePropagationBackground DeletionPropagation = "Background"
	// The object exists in the key-value store until the garbage collector
	// deletes all the dependents whose ownerReference.blockOwnerDeletion=true
	// from the key-value store.  API sever will put the "foregroundDeletion"
	// finalizer on the object, and sets its deletionTimestamp.  This policy is
	// cascading, i.e., the dependents will be deleted with Foreground.
	DeletePropagationForeground DeletionPropagation = "Foreground"
)

type Duration

type Duration struct {
	time.Duration `protobuf:"varint,1,opt,name=duration,casttype=time.Duration"`
}

Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json.

func (*Duration) DeepCopy

func (in *Duration) DeepCopy() *Duration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Duration.

func (*Duration) DeepCopyInto

func (in *Duration) DeepCopyInto(out *Duration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Duration) Descriptor

func (*Duration) Descriptor() ([]byte, []int)

func (*Duration) Marshal

func (m *Duration) Marshal() (dAtA []byte, err error)

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*Duration) MarshalTo

func (m *Duration) MarshalTo(dAtA []byte) (int, error)

func (*Duration) MarshalToSizedBuffer

func (m *Duration) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (Duration) OpenAPISchemaFormat

func (_ Duration) OpenAPISchemaFormat() string

OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type.

func (Duration) OpenAPISchemaType

func (_ Duration) OpenAPISchemaType() []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

func (*Duration) ProtoMessage

func (*Duration) ProtoMessage()

func (*Duration) Reset

func (m *Duration) Reset()

func (*Duration) Size

func (m *Duration) Size() (n int)

func (*Duration) String

func (this *Duration) String() string

func (Duration) ToUnstructured

func (d Duration) ToUnstructured() interface{}

ToUnstructured implements the value.UnstructuredConverter interface.

func (*Duration) Unmarshal

func (m *Duration) Unmarshal(dAtA []byte) error

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) error

UnmarshalJSON implements the json.Unmarshaller interface.

func (*Duration) XXX_DiscardUnknown

func (m *Duration) XXX_DiscardUnknown()

func (*Duration) XXX_Marshal

func (m *Duration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Duration) XXX_Merge

func (m *Duration) XXX_Merge(src proto.Message)

func (*Duration) XXX_Size

func (m *Duration) XXX_Size() int

func (*Duration) XXX_Unmarshal

func (m *Duration) XXX_Unmarshal(b []byte) error

type ExportOptions

type ExportOptions struct {
	TypeMeta `json:",inline"`
	// Should this value be exported.  Export strips fields that a user can not specify.
	// Deprecated. Planned for removal in 1.18.
	Export bool `json:"export" protobuf:"varint,1,opt,name=export"`
	// Should the export be exact.  Exact export maintains cluster-specific fields like 'Namespace'.
	// Deprecated. Planned for removal in 1.18.
	Exact bool `json:"exact" protobuf:"varint,2,opt,name=exact"`
}

ExportOptions is the query options to the standard REST get call. Deprecated. Planned for removal in 1.18.

func (*ExportOptions) DeepCopy

func (in *ExportOptions) DeepCopy() *ExportOptions

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExportOptions.

func (*ExportOptions) DeepCopyInto

func (in *ExportOptions) DeepCopyInto(out *ExportOptions)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExportOptions) DeepCopyObject

func (in *ExportOptions) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ExportOptions) Descriptor

func (*ExportOptions) Descriptor() ([]byte, []int)

func (*ExportOptions) Marshal

func (m *ExportOptions) Marshal() (dAtA []byte, err error)

func (*ExportOptions) MarshalTo

func (m *ExportOptions) MarshalTo(dAtA []byte) (int, error)

func (*ExportOptions) MarshalToSizedBuffer

func (m *ExportOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ExportOptions) ProtoMessage

func (*ExportOptions) ProtoMessage()

func (*ExportOptions) Reset

func (m *ExportOptions) Reset()

func (*ExportOptions) Size

func (m *ExportOptions) Size() (n int)

func (*ExportOptions) String

func (this *ExportOptions) String() string

func (ExportOptions) SwaggerDoc

func (ExportOptions) SwaggerDoc() map[string]string

func (*ExportOptions) Unmarshal

func (m *ExportOptions) Unmarshal(dAtA []byte) error

func (*ExportOptions) XXX_DiscardUnknown

func (m *ExportOptions) XXX_DiscardUnknown()

func (*ExportOptions) XXX_Marshal

func (m *ExportOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExportOptions) XXX_Merge

func (m *ExportOptions) XXX_Merge(src proto.Message)

func (*ExportOptions) XXX_Size

func (m *ExportOptions) XXX_Size() int

func (*ExportOptions) XXX_Unmarshal

func (m *ExportOptions) XXX_Unmarshal(b []byte) error

type FieldsV1

type FieldsV1 struct {
	// Raw is the underlying serialization of this object.
	Raw []byte `json:"-" protobuf:"bytes,1,opt,name=Raw"`
}

FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.

Each key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.

The exact format is defined in sigs.k8s.io/structured-merge-diff +protobuf.options.(gogoproto.goproto_stringer)=false

func (*FieldsV1) DeepCopy

func (in *FieldsV1) DeepCopy() *FieldsV1

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FieldsV1.

func (*FieldsV1) DeepCopyInto

func (in *FieldsV1) DeepCopyInto(out *FieldsV1)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*FieldsV1) Descriptor

func (*FieldsV1) Descriptor() ([]byte, []int)

func (*FieldsV1) Marshal

func (m *FieldsV1) Marshal() (dAtA []byte, err error)

func (FieldsV1) MarshalJSON

func (f FieldsV1) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler MarshalJSON may get called on pointers or values, so implement MarshalJSON on value. http://stackoverflow.com/questions/21390979/custom-marshaljson-never-gets-called-in-go

func (*FieldsV1) MarshalTo

func (m *FieldsV1) MarshalTo(dAtA []byte) (int, error)

func (*FieldsV1) MarshalToSizedBuffer

func (m *FieldsV1) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FieldsV1) ProtoMessage

func (*FieldsV1) ProtoMessage()

func (*FieldsV1) Reset

func (m *FieldsV1) Reset()

func (*FieldsV1) Size

func (m *FieldsV1) Size() (n int)

func (FieldsV1) String

func (f FieldsV1) String() string

func (FieldsV1) SwaggerDoc

func (FieldsV1) SwaggerDoc() map[string]string

func (*FieldsV1) Unmarshal

func (m *FieldsV1) Unmarshal(dAtA []byte) error

func (*FieldsV1) UnmarshalJSON

func (f *FieldsV1) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*FieldsV1) XXX_DiscardUnknown

func (m *FieldsV1) XXX_DiscardUnknown()

func (*FieldsV1) XXX_Marshal

func (m *FieldsV1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FieldsV1) XXX_Merge

func (m *FieldsV1) XXX_Merge(src proto.Message)

func (*FieldsV1) XXX_Size

func (m *FieldsV1) XXX_Size() int

func (*FieldsV1) XXX_Unmarshal

func (m *FieldsV1) XXX_Unmarshal(b []byte) error

type GetOptions

type GetOptions struct {
	TypeMeta `json:",inline"`
	// resourceVersion sets a constraint on what resource versions a request may be served from.
	// See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
	// details.
	//
	// Defaults to unset
	// +optional
	ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,1,opt,name=resourceVersion"`
}

GetOptions is the standard query options to the standard REST get call.

func (*GetOptions) DeepCopy

func (in *GetOptions) DeepCopy() *GetOptions

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetOptions.

func (*GetOptions) DeepCopyInto

func (in *GetOptions) DeepCopyInto(out *GetOptions)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GetOptions) DeepCopyObject

func (in *GetOptions) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*GetOptions) Descriptor

func (*GetOptions) Descriptor() ([]byte, []int)

func (*GetOptions) Marshal

func (m *GetOptions) Marshal() (dAtA []byte, err error)

func (*GetOptions) MarshalTo

func (m *GetOptions) MarshalTo(dAtA []byte) (int, error)

func (*GetOptions) MarshalToSizedBuffer

func (m *GetOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetOptions) ProtoMessage

func (*GetOptions) ProtoMessage()

func (*GetOptions) Reset

func (m *GetOptions) Reset()

func (*GetOptions) Size

func (m *GetOptions) Size() (n int)

func (*GetOptions) String

func (this *GetOptions) String() string

func (GetOptions) SwaggerDoc

func (GetOptions) SwaggerDoc() map[string]string

func (*GetOptions) Unmarshal

func (m *GetOptions) Unmarshal(dAtA []byte) error

func (*GetOptions) XXX_DiscardUnknown

func (m *GetOptions) XXX_DiscardUnknown()

func (*GetOptions) XXX_Marshal

func (m *GetOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetOptions) XXX_Merge

func (m *GetOptions) XXX_Merge(src proto.Message)

func (*GetOptions) XXX_Size

func (m *GetOptions) XXX_Size() int

func (*GetOptions) XXX_Unmarshal

func (m *GetOptions) XXX_Unmarshal(b []byte) error

type GroupKind

type GroupKind struct {
	Group string `json:"group" protobuf:"bytes,1,opt,name=group"`
	Kind  string `json:"kind" protobuf:"bytes,2,opt,name=kind"`
}

GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types

+protobuf.options.(gogoproto.goproto_stringer)=false

func (*GroupKind) DeepCopy

func (in *GroupKind) DeepCopy() *GroupKind

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupKind.

func (*GroupKind) DeepCopyInto

func (in *GroupKind) DeepCopyInto(out *GroupKind)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GroupKind) Descriptor

func (*GroupKind) Descriptor() ([]byte, []int)

func (*GroupKind) Marshal

func (m *GroupKind) Marshal() (dAtA []byte, err error)

func (*GroupKind) MarshalTo

func (m *GroupKind) MarshalTo(dAtA []byte) (int, error)

func (*GroupKind) MarshalToSizedBuffer

func (m *GroupKind) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GroupKind) ProtoMessage

func (*GroupKind) ProtoMessage()

func (*GroupKind) Reset

func (m *GroupKind) Reset()

func (*GroupKind) Size

func (m *GroupKind) Size() (n int)

func (*GroupKind) String

func (gk *GroupKind) String() string

func (*GroupKind) Unmarshal

func (m *GroupKind) Unmarshal(dAtA []byte) error

func (*GroupKind) XXX_DiscardUnknown

func (m *GroupKind) XXX_DiscardUnknown()

func (*GroupKind) XXX_Marshal

func (m *GroupKind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupKind) XXX_Merge

func (m *GroupKind) XXX_Merge(src proto.Message)

func (*GroupKind) XXX_Size

func (m *GroupKind) XXX_Size() int

func (*GroupKind) XXX_Unmarshal

func (m *GroupKind) XXX_Unmarshal(b []byte) error

type GroupResource

type GroupResource struct {
	Group    string `json:"group" protobuf:"bytes,1,opt,name=group"`
	Resource string `json:"resource" protobuf:"bytes,2,opt,name=resource"`
}

GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types

+protobuf.options.(gogoproto.goproto_stringer)=false

func (*GroupResource) DeepCopy

func (in *GroupResource) DeepCopy() *GroupResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupResource.

func (*GroupResource) DeepCopyInto

func (in *GroupResource) DeepCopyInto(out *GroupResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GroupResource) Descriptor

func (*GroupResource) Descriptor() ([]byte, []int)

func (*GroupResource) Marshal

func (m *GroupResource) Marshal() (dAtA []byte, err error)

func (*GroupResource) MarshalTo

func (m *GroupResource) MarshalTo(dAtA []byte) (int, error)

func (*GroupResource) MarshalToSizedBuffer

func (m *GroupResource) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GroupResource) ProtoMessage

func (*GroupResource) ProtoMessage()

func (*GroupResource) Reset

func (m *GroupResource) Reset()

func (*GroupResource) Size

func (m *GroupResource) Size() (n int)

func (*GroupResource) String

func (gr *GroupResource) String() string

func (*GroupResource) Unmarshal

func (m *GroupResource) Unmarshal(dAtA []byte) error

func (*GroupResource) XXX_DiscardUnknown

func (m *GroupResource) XXX_DiscardUnknown()

func (*GroupResource) XXX_Marshal

func (m *GroupResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupResource) XXX_Merge

func (m *GroupResource) XXX_Merge(src proto.Message)

func (*GroupResource) XXX_Size

func (m *GroupResource) XXX_Size() int

func (*GroupResource) XXX_Unmarshal

func (m *GroupResource) XXX_Unmarshal(b []byte) error

type GroupVersion

type GroupVersion struct {
	Group   string `json:"group" protobuf:"bytes,1,opt,name=group"`
	Version string `json:"version" protobuf:"bytes,2,opt,name=version"`
}

GroupVersion contains the "group" and the "version", which uniquely identifies the API.

+protobuf.options.(gogoproto.goproto_stringer)=false

func (*GroupVersion) DeepCopy

func (in *GroupVersion) DeepCopy() *GroupVersion

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVersion.

func (*GroupVersion) DeepCopyInto

func (in *GroupVersion) DeepCopyInto(out *GroupVersion)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GroupVersion) Descriptor

func (*GroupVersion) Descriptor() ([]byte, []int)

func (GroupVersion) Empty

func (gv GroupVersion) Empty() bool

Empty returns true if group and version are empty

func (*GroupVersion) Marshal

func (m *GroupVersion) Marshal() (dAtA []byte, err error)

func (GroupVersion) MarshalJSON

func (gv GroupVersion) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface.

func (*GroupVersion) MarshalTo

func (m *GroupVersion) MarshalTo(dAtA []byte) (int, error)

func (*GroupVersion) MarshalToSizedBuffer

func (m *GroupVersion) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GroupVersion) ProtoMessage

func (*GroupVersion) ProtoMessage()

func (*GroupVersion) Reset

func (m *GroupVersion) Reset()

func (*GroupVersion) Size

func (m *GroupVersion) Size() (n int)

func (GroupVersion) String

func (gv GroupVersion) String() string

String puts "group" and "version" into a single "group/version" string. For the legacy v1 it returns "v1".

func (*GroupVersion) Unmarshal

func (m *GroupVersion) Unmarshal(dAtA []byte) error

func (*GroupVersion) UnmarshalJSON

func (gv *GroupVersion) UnmarshalJSON(value []byte) error

UnmarshalJSON implements the json.Unmarshaller interface.

func (*GroupVersion) UnmarshalText

func (gv *GroupVersion) UnmarshalText(value []byte) error

UnmarshalTEXT implements the Ugorji's encoding.TextUnmarshaler interface.

func (*GroupVersion) XXX_DiscardUnknown

func (m *GroupVersion) XXX_DiscardUnknown()

func (*GroupVersion) XXX_Marshal

func (m *GroupVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupVersion) XXX_Merge

func (m *GroupVersion) XXX_Merge(src proto.Message)

func (*GroupVersion) XXX_Size

func (m *GroupVersion) XXX_Size() int

func (*GroupVersion) XXX_Unmarshal

func (m *GroupVersion) XXX_Unmarshal(b []byte) error

type GroupVersionForDiscovery

type GroupVersionForDiscovery struct {
	// groupVersion specifies the API group and version in the form "group/version"
	GroupVersion string `json:"groupVersion" protobuf:"bytes,1,opt,name=groupVersion"`
	// version specifies the version in the form of "version". This is to save
	// the clients the trouble of splitting the GroupVersion.
	Version string `json:"version" protobuf:"bytes,2,opt,name=version"`
}

GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility.

func (*GroupVersionForDiscovery) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVersionForDiscovery.

func (*GroupVersionForDiscovery) DeepCopyInto

func (in *GroupVersionForDiscovery) DeepCopyInto(out *GroupVersionForDiscovery)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GroupVersionForDiscovery) Descriptor

func (*GroupVersionForDiscovery) Descriptor() ([]byte, []int)

func (*GroupVersionForDiscovery) Marshal

func (m *GroupVersionForDiscovery) Marshal() (dAtA []byte, err error)

func (*GroupVersionForDiscovery) MarshalTo

func (m *GroupVersionForDiscovery) MarshalTo(dAtA []byte) (int, error)

func (*GroupVersionForDiscovery) MarshalToSizedBuffer

func (m *GroupVersionForDiscovery) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GroupVersionForDiscovery) ProtoMessage

func (*GroupVersionForDiscovery) ProtoMessage()

func (*GroupVersionForDiscovery) Reset

func (m *GroupVersionForDiscovery) Reset()

func (*GroupVersionForDiscovery) Size

func (m *GroupVersionForDiscovery) Size() (n int)

func (*GroupVersionForDiscovery) String

func (this *GroupVersionForDiscovery) String() string

func (GroupVersionForDiscovery) SwaggerDoc

func (GroupVersionForDiscovery) SwaggerDoc() map[string]string

func (*GroupVersionForDiscovery) Unmarshal

func (m *GroupVersionForDiscovery) Unmarshal(dAtA []byte) error

func (*GroupVersionForDiscovery) XXX_DiscardUnknown

func (m *GroupVersionForDiscovery) XXX_DiscardUnknown()

func (*GroupVersionForDiscovery) XXX_Marshal

func (m *GroupVersionForDiscovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupVersionForDiscovery) XXX_Merge

func (m *GroupVersionForDiscovery) XXX_Merge(src proto.Message)

func (*GroupVersionForDiscovery) XXX_Size

func (m *GroupVersionForDiscovery) XXX_Size() int

func (*GroupVersionForDiscovery) XXX_Unmarshal

func (m *GroupVersionForDiscovery) XXX_Unmarshal(b []byte) error

type GroupVersionKind

type GroupVersionKind struct {
	Group   string `json:"group" protobuf:"bytes,1,opt,name=group"`
	Version string `json:"version" protobuf:"bytes,2,opt,name=version"`
	Kind    string `json:"kind" protobuf:"bytes,3,opt,name=kind"`
}

GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling

+protobuf.options.(gogoproto.goproto_stringer)=false

func (*GroupVersionKind) DeepCopy

func (in *GroupVersionKind) DeepCopy() *GroupVersionKind

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVersionKind.

func (*GroupVersionKind) DeepCopyInto

func (in *GroupVersionKind) DeepCopyInto(out *GroupVersionKind)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GroupVersionKind) Descriptor

func (*GroupVersionKind) Descriptor() ([]byte, []int)

func (*GroupVersionKind) Marshal

func (m *GroupVersionKind) Marshal() (dAtA []byte, err error)

func (*GroupVersionKind) MarshalTo

func (m *GroupVersionKind) MarshalTo(dAtA []byte) (int, error)

func (*GroupVersionKind) MarshalToSizedBuffer

func (m *GroupVersionKind) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GroupVersionKind) ProtoMessage

func (*GroupVersionKind) ProtoMessage()

func (*GroupVersionKind) Reset

func (m *GroupVersionKind) Reset()

func (*GroupVersionKind) Size

func (m *GroupVersionKind) Size() (n int)

func (GroupVersionKind) String

func (gvk GroupVersionKind) String() string

func (*GroupVersionKind) Unmarshal

func (m *GroupVersionKind) Unmarshal(dAtA []byte) error

func (*GroupVersionKind) XXX_DiscardUnknown

func (m *GroupVersionKind) XXX_DiscardUnknown()

func (*GroupVersionKind) XXX_Marshal

func (m *GroupVersionKind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupVersionKind) XXX_Merge

func (m *GroupVersionKind) XXX_Merge(src proto.Message)

func (*GroupVersionKind) XXX_Size

func (m *GroupVersionKind) XXX_Size() int

func (*GroupVersionKind) XXX_Unmarshal

func (m *GroupVersionKind) XXX_Unmarshal(b []byte) error

type GroupVersionResource

type GroupVersionResource struct {
	Group    string `json:"group" protobuf:"bytes,1,opt,name=group"`
	Version  string `json:"version" protobuf:"bytes,2,opt,name=version"`
	Resource string `json:"resource" protobuf:"bytes,3,opt,name=resource"`
}

GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling

+protobuf.options.(gogoproto.goproto_stringer)=false

func (*GroupVersionResource) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVersionResource.

func (*GroupVersionResource) DeepCopyInto

func (in *GroupVersionResource) DeepCopyInto(out *GroupVersionResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GroupVersionResource) Descriptor

func (*GroupVersionResource) Descriptor() ([]byte, []int)

func (*GroupVersionResource) Marshal

func (m *GroupVersionResource) Marshal() (dAtA []byte, err error)

func (*GroupVersionResource) MarshalTo

func (m *GroupVersionResource) MarshalTo(dAtA []byte) (int, error)

func (*GroupVersionResource) MarshalToSizedBuffer

func (m *GroupVersionResource) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GroupVersionResource) ProtoMessage

func (*GroupVersionResource) ProtoMessage()

func (*GroupVersionResource) Reset

func (m *GroupVersionResource) Reset()

func (*GroupVersionResource) Size

func (m *GroupVersionResource) Size() (n int)

func (*GroupVersionResource) String

func (gvr *GroupVersionResource) String() string

func (*GroupVersionResource) Unmarshal

func (m *GroupVersionResource) Unmarshal(dAtA []byte) error

func (*GroupVersionResource) XXX_DiscardUnknown

func (m *GroupVersionResource) XXX_DiscardUnknown()

func (*GroupVersionResource) XXX_Marshal

func (m *GroupVersionResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupVersionResource) XXX_Merge

func (m *GroupVersionResource) XXX_Merge(src proto.Message)

func (*GroupVersionResource) XXX_Size

func (m *GroupVersionResource) XXX_Size() int

func (*GroupVersionResource) XXX_Unmarshal

func (m *GroupVersionResource) XXX_Unmarshal(b []byte) error

type IncludeObjectPolicy

type IncludeObjectPolicy string

IncludeObjectPolicy controls which portion of the object is returned with a Table.

const (
	// IncludeNone returns no object.
	IncludeNone IncludeObjectPolicy = "None"
	// IncludeMetadata serializes the object containing only its metadata field.
	IncludeMetadata IncludeObjectPolicy = "Metadata"
	// IncludeObject contains the full object.
	IncludeObject IncludeObjectPolicy = "Object"
)

type InternalEvent

type InternalEvent watch.Event

InternalEvent makes watch.Event versioned +protobuf=false

func (*InternalEvent) DeepCopy

func (in *InternalEvent) DeepCopy() *InternalEvent

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalEvent.

func (*InternalEvent) DeepCopyInto

func (in *InternalEvent) DeepCopyInto(out *InternalEvent)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*InternalEvent) DeepCopyObject

func (e *InternalEvent) DeepCopyObject() runtime.Object

func (*InternalEvent) GetObjectKind

func (e *InternalEvent) GetObjectKind() schema.ObjectKind

type LabelSelector

type LabelSelector struct {
	// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
	// map is equivalent to an element of matchExpressions, whose key field is "key", the
	// operator is "In", and the values array contains only "value". The requirements are ANDed.
	// +optional
	MatchLabels map[string]string `json:"matchLabels,omitempty" protobuf:"bytes,1,rep,name=matchLabels"`
	// matchExpressions is a list of label selector requirements. The requirements are ANDed.
	// +optional
	MatchExpressions []LabelSelectorRequirement `json:"matchExpressions,omitempty" protobuf:"bytes,2,rep,name=matchExpressions"`
}

A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. +structType=atomic

func AddLabelToSelector

func AddLabelToSelector(selector *LabelSelector, labelKey, labelValue string) *LabelSelector

AddLabelToSelector returns a selector with the given key and value added to the given selector's MatchLabels.

func CloneSelectorAndAddLabel

func CloneSelectorAndAddLabel(selector *LabelSelector, labelKey, labelValue string) *LabelSelector

Clones the given selector and returns a new selector with the given key and value added. Returns the given selector, if labelKey is empty.

func ParseToLabelSelector

func ParseToLabelSelector(selector string) (*LabelSelector, error)

ParseToLabelSelector parses a string representing a selector into a LabelSelector object. Note: This function should be kept in sync with the parser in pkg/labels/selector.go

func SetAsLabelSelector

func SetAsLabelSelector(ls labels.Set) *LabelSelector

SetAsLabelSelector converts the labels.Set object into a LabelSelector api object.

func (*LabelSelector) DeepCopy

func (in *LabelSelector) DeepCopy() *LabelSelector

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelector.

func (*LabelSelector) DeepCopyInto

func (in *LabelSelector) DeepCopyInto(out *LabelSelector)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LabelSelector) Descriptor

func (*LabelSelector) Descriptor() ([]byte, []int)

func (*LabelSelector) Marshal

func (m *LabelSelector) Marshal() (dAtA []byte, err error)

func (*LabelSelector) MarshalTo

func (m *LabelSelector) MarshalTo(dAtA []byte) (int, error)

func (*LabelSelector) MarshalToSizedBuffer

func (m *LabelSelector) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LabelSelector) ProtoMessage

func (*LabelSelector) ProtoMessage()

func (*LabelSelector) Reset

func (m *LabelSelector) Reset()

func (*LabelSelector) Size

func (m *LabelSelector) Size() (n int)

func (*LabelSelector) String

func (this *LabelSelector) String() string

func (LabelSelector) SwaggerDoc

func (LabelSelector) SwaggerDoc() map[string]string

func (*LabelSelector) Unmarshal

func (m *LabelSelector) Unmarshal(dAtA []byte) error

func (*LabelSelector) XXX_DiscardUnknown

func (m *LabelSelector) XXX_DiscardUnknown()

func (*LabelSelector) XXX_Marshal

func (m *LabelSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LabelSelector) XXX_Merge

func (m *LabelSelector) XXX_Merge(src proto.Message)

func (*LabelSelector) XXX_Size

func (m *LabelSelector) XXX_Size() int

func (*LabelSelector) XXX_Unmarshal

func (m *LabelSelector) XXX_Unmarshal(b []byte) error

type LabelSelectorOperator

type LabelSelectorOperator string

A label selector operator is the set of operators that can be used in a selector requirement.

const (
	LabelSelectorOpIn           LabelSelectorOperator = "In"
	LabelSelectorOpNotIn        LabelSelectorOperator = "NotIn"
	LabelSelectorOpExists       LabelSelectorOperator = "Exists"
	LabelSelectorOpDoesNotExist LabelSelectorOperator = "DoesNotExist"
)

type LabelSelectorRequirement

type LabelSelectorRequirement struct {
	// key is the label key that the selector applies to.
	// +patchMergeKey=key
	// +patchStrategy=merge
	Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key" protobuf:"bytes,1,opt,name=key"`
	// operator represents a key's relationship to a set of values.
	// Valid operators are In, NotIn, Exists and DoesNotExist.
	Operator LabelSelectorOperator `json:"operator" protobuf:"bytes,2,opt,name=operator,casttype=LabelSelectorOperator"`
	// values is an array of string values. If the operator is In or NotIn,
	// the values array must be non-empty. If the operator is Exists or DoesNotExist,
	// the values array must be empty. This array is replaced during a strategic
	// merge patch.
	// +optional
	Values []string `json:"values,omitempty" protobuf:"bytes,3,rep,name=values"`
}

A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.

func (*LabelSelectorRequirement) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelectorRequirement.

func (*LabelSelectorRequirement) DeepCopyInto

func (in *LabelSelectorRequirement) DeepCopyInto(out *LabelSelectorRequirement)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LabelSelectorRequirement) Descriptor

func (*LabelSelectorRequirement) Descriptor() ([]byte, []int)

func (*LabelSelectorRequirement) Marshal

func (m *LabelSelectorRequirement) Marshal() (dAtA []byte, err error)

func (*LabelSelectorRequirement) MarshalTo

func (m *LabelSelectorRequirement) MarshalTo(dAtA []byte) (int, error)

func (*LabelSelectorRequirement) MarshalToSizedBuffer

func (m *LabelSelectorRequirement) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LabelSelectorRequirement) ProtoMessage

func (*LabelSelectorRequirement) ProtoMessage()

func (*LabelSelectorRequirement) Reset

func (m *LabelSelectorRequirement) Reset()

func (*LabelSelectorRequirement) Size

func (m *LabelSelectorRequirement) Size() (n int)

func (*LabelSelectorRequirement) String

func (this *LabelSelectorRequirement) String() string

func (LabelSelectorRequirement) SwaggerDoc

func (LabelSelectorRequirement) SwaggerDoc() map[string]string

func (*LabelSelectorRequirement) Unmarshal

func (m *LabelSelectorRequirement) Unmarshal(dAtA []byte) error

func (*LabelSelectorRequirement) XXX_DiscardUnknown

func (m *LabelSelectorRequirement) XXX_DiscardUnknown()

func (*LabelSelectorRequirement) XXX_Marshal

func (m *LabelSelectorRequirement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LabelSelectorRequirement) XXX_Merge

func (m *LabelSelectorRequirement) XXX_Merge(src proto.Message)

func (*LabelSelectorRequirement) XXX_Size

func (m *LabelSelectorRequirement) XXX_Size() int

func (*LabelSelectorRequirement) XXX_Unmarshal

func (m *LabelSelectorRequirement) XXX_Unmarshal(b []byte) error

type List

type List struct {
	TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// List of objects
	Items []runtime.RawExtension `json:"items" protobuf:"bytes,2,rep,name=items"`
}

List holds a list of objects, which may not be known by the server.

func (*List) DeepCopy

func (in *List) DeepCopy() *List

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new List.

func (*List) DeepCopyInto

func (in *List) DeepCopyInto(out *List)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*List) DeepCopyObject

func (in *List) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*List) Descriptor

func (*List) Descriptor() ([]byte, []int)

func (*List) Marshal

func (m *List) Marshal() (dAtA []byte, err error)

func (*List) MarshalTo

func (m *List) MarshalTo(dAtA []byte) (int, error)

func (*List) MarshalToSizedBuffer

func (m *List) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*List) ProtoMessage

func (*List) ProtoMessage()

func (*List) Reset

func (m *List) Reset()

func (*List) Size

func (m *List) Size() (n int)

func (*List) String

func (this *List) String() string

func (List) SwaggerDoc

func (List) SwaggerDoc() map[string]string

func (*List) Unmarshal

func (m *List) Unmarshal(dAtA []byte) error

func (*List) XXX_DiscardUnknown

func (m *List) XXX_DiscardUnknown()

func (*List) XXX_Marshal

func (m *List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*List) XXX_Merge

func (m *List) XXX_Merge(src proto.Message)

func (*List) XXX_Size

func (m *List) XXX_Size() int

func (*List) XXX_Unmarshal

func (m *List) XXX_Unmarshal(b []byte) error

type ListInterface

type ListInterface interface {
	GetResourceVersion() string
	SetResourceVersion(version string)
	GetSelfLink() string
	SetSelfLink(selfLink string)
	GetContinue() string
	SetContinue(c string)
	GetRemainingItemCount() *int64
	SetRemainingItemCount(c *int64)
}

ListInterface lets you work with list metadata from any of the versioned or internal API objects. Attempting to set or retrieve a field on an object that does not support that field will be a no-op and return a default value. TODO: move this, and TypeMeta and ListMeta, to a different package

type ListMeta

type ListMeta struct {
	// selfLink is a URL representing this object.
	// Populated by the system.
	// Read-only.
	//
	// DEPRECATED
	// Kubernetes will stop propagating this field in 1.20 release and the field is planned
	// to be removed in 1.21 release.
	// +optional
	SelfLink string `json:"selfLink,omitempty" protobuf:"bytes,1,opt,name=selfLink"`

	// String that identifies the server's internal version of this object that
	// can be used by clients to determine when objects have changed.
	// Value must be treated as opaque by clients and passed unmodified back to the server.
	// Populated by the system.
	// Read-only.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
	// +optional
	ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,2,opt,name=resourceVersion"`

	// continue may be set if the user set a limit on the number of items returned, and indicates that
	// the server has more data available. The value is opaque and may be used to issue another request
	// to the endpoint that served this list to retrieve the next set of available objects. Continuing a
	// consistent list may not be possible if the server configuration has changed or more than a few
	// minutes have passed. The resourceVersion field returned when using this continue value will be
	// identical to the value in the first response, unless you have received this token from an error
	// message.
	Continue string `json:"continue,omitempty" protobuf:"bytes,3,opt,name=continue"`

	// remainingItemCount is the number of subsequent items in the list which are not included in this
	// list response. If the list request contained label or field selectors, then the number of
	// remaining items is unknown and the field will be left unset and omitted during serialization.
	// If the list is complete (either because it is not chunking or because this is the last chunk),
	// then there are no more remaining items and this field will be left unset and omitted during
	// serialization.
	// Servers older than v1.15 do not set this field.
	// The intended use of the remainingItemCount is *estimating* the size of a collection. Clients
	// should not rely on the remainingItemCount to be set or to be exact.
	// +optional
	RemainingItemCount *int64 `json:"remainingItemCount,omitempty" protobuf:"bytes,4,opt,name=remainingItemCount"`
}

ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.

func (*ListMeta) DeepCopy

func (in *ListMeta) DeepCopy() *ListMeta

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListMeta.

func (*ListMeta) DeepCopyInto

func (in *ListMeta) DeepCopyInto(out *ListMeta)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ListMeta) Descriptor

func (*ListMeta) Descriptor() ([]byte, []int)

func (*ListMeta) GetContinue

func (meta *ListMeta) GetContinue() string

func (*ListMeta) GetListMeta

func (obj *ListMeta) GetListMeta() ListInterface

func (*ListMeta) GetRemainingItemCount

func (meta *ListMeta) GetRemainingItemCount() *int64

func (*ListMeta) GetResourceVersion

func (meta *ListMeta) GetResourceVersion() string
func (meta *ListMeta) GetSelfLink() string

func (*ListMeta) Marshal

func (m *ListMeta) Marshal() (dAtA []byte, err error)

func (*ListMeta) MarshalTo

func (m *ListMeta) MarshalTo(dAtA []byte) (int, error)

func (*ListMeta) MarshalToSizedBuffer

func (m *ListMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListMeta) ProtoMessage

func (*ListMeta) ProtoMessage()

func (*ListMeta) Reset

func (m *ListMeta) Reset()

func (*ListMeta) SetContinue

func (meta *ListMeta) SetContinue(c string)

func (*ListMeta) SetRemainingItemCount

func (meta *ListMeta) SetRemainingItemCount(c *int64)

func (*ListMeta) SetResourceVersion

func (meta *ListMeta) SetResourceVersion(version string)
func (meta *ListMeta) SetSelfLink(selfLink string)

func (*ListMeta) Size

func (m *ListMeta) Size() (n int)

func (*ListMeta) String

func (this *ListMeta) String() string

func (ListMeta) SwaggerDoc

func (ListMeta) SwaggerDoc() map[string]string

func (*ListMeta) Unmarshal

func (m *ListMeta) Unmarshal(dAtA []byte) error

func (*ListMeta) XXX_DiscardUnknown

func (m *ListMeta) XXX_DiscardUnknown()

func (*ListMeta) XXX_Marshal

func (m *ListMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListMeta) XXX_Merge

func (m *ListMeta) XXX_Merge(src proto.Message)

func (*ListMeta) XXX_Size

func (m *ListMeta) XXX_Size() int

func (*ListMeta) XXX_Unmarshal

func (m *ListMeta) XXX_Unmarshal(b []byte) error

type ListMetaAccessor

type ListMetaAccessor interface {
	GetListMeta() ListInterface
}

ListMetaAccessor retrieves the list interface from an object

type ListOptions

type ListOptions struct {
	TypeMeta `json:",inline"`

	// A selector to restrict the list of returned objects by their labels.
	// Defaults to everything.
	// +optional
	LabelSelector string `json:"labelSelector,omitempty" protobuf:"bytes,1,opt,name=labelSelector"`
	// A selector to restrict the list of returned objects by their fields.
	// Defaults to everything.
	// +optional
	FieldSelector string `json:"fieldSelector,omitempty" protobuf:"bytes,2,opt,name=fieldSelector"`

	// Watch for changes to the described resources and return them as a stream of
	// add, update, and remove notifications. Specify resourceVersion.
	// +optional
	Watch bool `json:"watch,omitempty" protobuf:"varint,3,opt,name=watch"`
	// allowWatchBookmarks requests watch events with type "BOOKMARK".
	// Servers that do not implement bookmarks may ignore this flag and
	// bookmarks are sent at the server's discretion. Clients should not
	// assume bookmarks are returned at any specific interval, nor may they
	// assume the server will send any BOOKMARK event during a session.
	// If this is not a watch, this field is ignored.
	// If the feature gate WatchBookmarks is not enabled in apiserver,
	// this field is ignored.
	// +optional
	AllowWatchBookmarks bool `json:"allowWatchBookmarks,omitempty" protobuf:"varint,9,opt,name=allowWatchBookmarks"`

	// resourceVersion sets a constraint on what resource versions a request may be served from.
	// See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
	// details.
	//
	// Defaults to unset
	// +optional
	ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,4,opt,name=resourceVersion"`

	// resourceVersionMatch determines how resourceVersion is applied to list calls.
	// It is highly recommended that resourceVersionMatch be set for list calls where
	// resourceVersion is set
	// See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
	// details.
	//
	// Defaults to unset
	// +optional
	ResourceVersionMatch ResourceVersionMatch `json:"resourceVersionMatch,omitempty" protobuf:"bytes,10,opt,name=resourceVersionMatch,casttype=ResourceVersionMatch"`
	// Timeout for the list/watch call.
	// This limits the duration of the call, regardless of any activity or inactivity.
	// +optional
	TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty" protobuf:"varint,5,opt,name=timeoutSeconds"`

	// limit is a maximum number of responses to return for a list call. If more items exist, the
	// server will set the `continue` field on the list metadata to a value that can be used with the
	// same initial query to retrieve the next set of results. Setting a limit may return fewer than
	// the requested amount of items (up to zero items) in the event all requested objects are
	// filtered out and clients should only use the presence of the continue field to determine whether
	// more results are available. Servers may choose not to support the limit argument and will return
	// all of the available results. If limit is specified and the continue field is empty, clients may
	// assume that no more results are available. This field is not supported if watch is true.
	//
	// The server guarantees that the objects returned when using continue will be identical to issuing
	// a single list call without a limit - that is, no objects created, modified, or deleted after the
	// first request is issued will be included in any subsequent continued requests. This is sometimes
	// referred to as a consistent snapshot, and ensures that a client that is using limit to receive
	// smaller chunks of a very large result can ensure they see all possible objects. If objects are
	// updated during a chunked list the version of the object that was present at the time the first list
	// result was calculated is returned.
	Limit int64 `json:"limit,omitempty" protobuf:"varint,7,opt,name=limit"`
	// The continue option should be set when retrieving more results from the server. Since this value is
	// server defined, clients may only use the continue value from a previous query result with identical
	// query parameters (except for the value of continue) and the server may reject a continue value it
	// does not recognize. If the specified continue value is no longer valid whether due to expiration
	// (generally five to fifteen minutes) or a configuration change on the server, the server will
	// respond with a 410 ResourceExpired error together with a continue token. If the client needs a
	// consistent list, it must restart their list without the continue field. Otherwise, the client may
	// send another list request with the token received with the 410 error, the server will respond with
	// a list starting from the next key, but from the latest snapshot, which is inconsistent from the
	// previous list results - objects that are created, modified, or deleted after the first list request
	// will be included in the response, as long as their keys are after the "next key".
	//
	// This field is not supported when watch is true. Clients may start a watch from the last
	// resourceVersion value returned by the server and not miss any modifications.
	Continue string `json:"continue,omitempty" protobuf:"bytes,8,opt,name=continue"`
}

ListOptions is the query options to a standard REST list call.

func SingleObject

func SingleObject(meta ObjectMeta) ListOptions

SingleObject returns a ListOptions for watching a single object.

func (*ListOptions) DeepCopy

func (in *ListOptions) DeepCopy() *ListOptions

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListOptions.

func (*ListOptions) DeepCopyInto

func (in *ListOptions) DeepCopyInto(out *ListOptions)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ListOptions) DeepCopyObject

func (in *ListOptions) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ListOptions) Descriptor

func (*ListOptions) Descriptor() ([]byte, []int)

func (*ListOptions) Marshal

func (m *ListOptions) Marshal() (dAtA []byte, err error)

func (*ListOptions) MarshalTo

func (m *ListOptions) MarshalTo(dAtA []byte) (int, error)

func (*ListOptions) MarshalToSizedBuffer

func (m *ListOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListOptions) ProtoMessage

func (*ListOptions) ProtoMessage()

func (*ListOptions) Reset

func (m *ListOptions) Reset()

func (*ListOptions) Size

func (m *ListOptions) Size() (n int)

func (*ListOptions) String

func (this *ListOptions) String() string

func (ListOptions) SwaggerDoc

func (ListOptions) SwaggerDoc() map[string]string

func (*ListOptions) Unmarshal

func (m *ListOptions) Unmarshal(dAtA []byte) error

func (*ListOptions) XXX_DiscardUnknown

func (m *ListOptions) XXX_DiscardUnknown()

func (*ListOptions) XXX_Marshal

func (m *ListOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListOptions) XXX_Merge

func (m *ListOptions) XXX_Merge(src proto.Message)

func (*ListOptions) XXX_Size

func (m *ListOptions) XXX_Size() int

func (*ListOptions) XXX_Unmarshal

func (m *ListOptions) XXX_Unmarshal(b []byte) error

type ManagedFieldsEntry

type ManagedFieldsEntry struct {
	// Manager is an identifier of the workflow managing these fields.
	Manager string `json:"manager,omitempty" protobuf:"bytes,1,opt,name=manager"`
	// Operation is the type of operation which lead to this ManagedFieldsEntry being created.
	// The only valid values for this field are 'Apply' and 'Update'.
	Operation ManagedFieldsOperationType `json:"operation,omitempty" protobuf:"bytes,2,opt,name=operation,casttype=ManagedFieldsOperationType"`
	// APIVersion defines the version of this resource that this field set
	// applies to. The format is "group/version" just like the top-level
	// APIVersion field. It is necessary to track the version of a field
	// set because it cannot be automatically converted.
	APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,3,opt,name=apiVersion"`
	// Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply'
	// +optional
	Time *Time `json:"time,omitempty" protobuf:"bytes,4,opt,name=time"`

	// FieldsType is the discriminator for the different fields format and version.
	// There is currently only one possible value: "FieldsV1"
	FieldsType string `json:"fieldsType,omitempty" protobuf:"bytes,6,opt,name=fieldsType"`
	// FieldsV1 holds the first JSON version format as described in the "FieldsV1" type.
	// +optional
	FieldsV1 *FieldsV1 `json:"fieldsV1,omitempty" protobuf:"bytes,7,opt,name=fieldsV1"`
}

ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.

func (*ManagedFieldsEntry) DeepCopy

func (in *ManagedFieldsEntry) DeepCopy() *ManagedFieldsEntry

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedFieldsEntry.

func (*ManagedFieldsEntry) DeepCopyInto

func (in *ManagedFieldsEntry) DeepCopyInto(out *ManagedFieldsEntry)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ManagedFieldsEntry) Descriptor

func (*ManagedFieldsEntry) Descriptor() ([]byte, []int)

func (*ManagedFieldsEntry) Marshal

func (m *ManagedFieldsEntry) Marshal() (dAtA []byte, err error)

func (*ManagedFieldsEntry) MarshalTo

func (m *ManagedFieldsEntry) MarshalTo(dAtA []byte) (int, error)

func (*ManagedFieldsEntry) MarshalToSizedBuffer

func (m *ManagedFieldsEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ManagedFieldsEntry) ProtoMessage

func (*ManagedFieldsEntry) ProtoMessage()

func (*ManagedFieldsEntry) Reset

func (m *ManagedFieldsEntry) Reset()

func (*ManagedFieldsEntry) Size

func (m *ManagedFieldsEntry) Size() (n int)

func (*ManagedFieldsEntry) String

func (this *ManagedFieldsEntry) String() string

func (ManagedFieldsEntry) SwaggerDoc

func (ManagedFieldsEntry) SwaggerDoc() map[string]string

func (*ManagedFieldsEntry) Unmarshal

func (m *ManagedFieldsEntry) Unmarshal(dAtA []byte) error

func (*ManagedFieldsEntry) XXX_DiscardUnknown

func (m *ManagedFieldsEntry) XXX_DiscardUnknown()

func (*ManagedFieldsEntry) XXX_Marshal

func (m *ManagedFieldsEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ManagedFieldsEntry) XXX_Merge

func (m *ManagedFieldsEntry) XXX_Merge(src proto.Message)

func (*ManagedFieldsEntry) XXX_Size

func (m *ManagedFieldsEntry) XXX_Size() int

func (*ManagedFieldsEntry) XXX_Unmarshal

func (m *ManagedFieldsEntry) XXX_Unmarshal(b []byte) error

type ManagedFieldsOperationType

type ManagedFieldsOperationType string

ManagedFieldsOperationType is the type of operation which lead to a ManagedFieldsEntry being created.

const (
	ManagedFieldsOperationApply  ManagedFieldsOperationType = "Apply"
	ManagedFieldsOperationUpdate ManagedFieldsOperationType = "Update"
)

type MicroTime

type MicroTime struct {
	time.Time `protobuf:"-"`
}

MicroTime is version of Time with microsecond level precision.

+protobuf.options.marshal=false +protobuf.as=Timestamp +protobuf.options.(gogoproto.goproto_stringer)=false

func DateMicro

func DateMicro(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) MicroTime

DateMicro returns the MicroTime corresponding to the supplied parameters by wrapping time.Date.

func NewMicroTime

func NewMicroTime(time time.Time) MicroTime

NewMicroTime returns a wrapped instance of the provided time

func NowMicro

func NowMicro() MicroTime

NowMicro returns the current local time.

func UnixMicro

func UnixMicro(sec int64, nsec int64) MicroTime

UnixMicro returns the local time corresponding to the given Unix time by wrapping time.Unix.

func (*MicroTime) Before

func (t *MicroTime) Before(u *MicroTime) bool

Before reports whether the time instant t is before u.

func (*MicroTime) BeforeTime

func (t *MicroTime) BeforeTime(u *Time) bool

BeforeTime reports whether the time instant t is before second-lever precision u.

func (*MicroTime) DeepCopy

func (in *MicroTime) DeepCopy() *MicroTime

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroTime.

func (*MicroTime) DeepCopyInto

func (t *MicroTime) DeepCopyInto(out *MicroTime)

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.

func (*MicroTime) Descriptor

func (*MicroTime) Descriptor() ([]byte, []int)

func (*MicroTime) Equal

func (t *MicroTime) Equal(u *MicroTime) bool

Equal reports whether the time instant t is equal to u.

func (*MicroTime) EqualTime

func (t *MicroTime) EqualTime(u *Time) bool

EqualTime reports whether the time instant t is equal to second-lever precision u.

func (*MicroTime) Fuzz

func (t *MicroTime) Fuzz(c fuzz.Continue)

Fuzz satisfies fuzz.Interface.

func (*MicroTime) IsZero

func (t *MicroTime) IsZero() bool

IsZero returns true if the value is nil or time is zero.

func (*MicroTime) Marshal

func (m *MicroTime) Marshal() (data []byte, err error)

Marshal implements the protobuf marshalling interface.

func (MicroTime) MarshalJSON

func (t MicroTime) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (MicroTime) MarshalQueryParameter

func (t MicroTime) MarshalQueryParameter() (string, error)

MarshalQueryParameter converts to a URL query parameter value

func (*MicroTime) MarshalTo

func (m *MicroTime) MarshalTo(data []byte) (int, error)

MarshalTo implements the protobuf marshalling interface.

func (*MicroTime) MarshalToSizedBuffer

func (m *MicroTime) MarshalToSizedBuffer(data []byte) (int, error)

MarshalToSizedBuffer implements the protobuf marshalling interface.

func (MicroTime) OpenAPISchemaFormat

func (_ MicroTime) OpenAPISchemaFormat() string

OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type.

func (MicroTime) OpenAPISchemaType

func (_ MicroTime) OpenAPISchemaType() []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

func (*MicroTime) ProtoMessage

func (*MicroTime) ProtoMessage()

func (*MicroTime) ProtoMicroTime

func (m *MicroTime) ProtoMicroTime() *Timestamp

Timestamp returns the Time as a new Timestamp value.

func (*MicroTime) Reset

func (m *MicroTime) Reset()

func (*MicroTime) Size

func (m *MicroTime) Size() (n int)

Size implements the protobuf marshalling interface.

func (*MicroTime) Unmarshal

func (m *MicroTime) Unmarshal(data []byte) error

Reset implements the protobuf marshalling interface.

func (*MicroTime) UnmarshalJSON

func (t *MicroTime) UnmarshalJSON(b []byte) error

UnmarshalJSON implements the json.Unmarshaller interface.

func (*MicroTime) UnmarshalQueryParameter

func (t *MicroTime) UnmarshalQueryParameter(str string) error

UnmarshalQueryParameter converts from a URL query parameter value to an object

func (*MicroTime) XXX_DiscardUnknown

func (m *MicroTime) XXX_DiscardUnknown()

func (*MicroTime) XXX_Marshal

func (m *MicroTime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MicroTime) XXX_Merge

func (m *MicroTime) XXX_Merge(src proto.Message)

func (*MicroTime) XXX_Size

func (m *MicroTime) XXX_Size() int

func (*MicroTime) XXX_Unmarshal

func (m *MicroTime) XXX_Unmarshal(b []byte) error

type Object

type Object interface {
	GetNamespace() string
	SetNamespace(namespace string)
	GetName() string
	SetName(name string)
	GetGenerateName() string
	SetGenerateName(name string)
	GetUID() types.UID
	SetUID(uid types.UID)
	GetResourceVersion() string
	SetResourceVersion(version string)
	GetGeneration() int64
	SetGeneration(generation int64)
	GetSelfLink() string
	SetSelfLink(selfLink string)
	GetCreationTimestamp() Time
	SetCreationTimestamp(timestamp Time)
	GetDeletionTimestamp() *Time
	SetDeletionTimestamp(timestamp *Time)
	GetDeletionGracePeriodSeconds() *int64
	SetDeletionGracePeriodSeconds(*int64)
	GetLabels() map[string]string
	SetLabels(labels map[string]string)
	GetAnnotations() map[string]string
	SetAnnotations(annotations map[string]string)
	GetFinalizers() []string
	SetFinalizers(finalizers []string)
	GetOwnerReferences() []OwnerReference
	SetOwnerReferences([]OwnerReference)
	GetClusterName() string
	SetClusterName(clusterName string)
	GetManagedFields() []ManagedFieldsEntry
	SetManagedFields(managedFields []ManagedFieldsEntry)
}

Object lets you work with object metadata from any of the versioned or internal API objects. Attempting to set or retrieve a field on an object that does not support that field (Name, UID, Namespace on lists) will be a no-op and return a default value.

type ObjectMeta

type ObjectMeta struct {
	// Name must be unique within a namespace. Is required when creating resources, although
	// some resources may allow a client to request the generation of an appropriate name
	// automatically. Name is primarily intended for creation idempotence and configuration
	// definition.
	// Cannot be updated.
	// More info: http://kubernetes.io/docs/user-guide/identifiers#names
	// +optional
	Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`

	// GenerateName is an optional prefix, used by the server, to generate a unique
	// name ONLY IF the Name field has not been provided.
	// If this field is used, the name returned to the client will be different
	// than the name passed. This value will also be combined with a unique suffix.
	// The provided value has the same validation rules as the Name field,
	// and may be truncated by the length of the suffix required to make the value
	// unique on the server.
	//
	// If this field is specified and the generated name exists, the server will
	// NOT return a 409 - instead, it will either return 201 Created or 500 with Reason
	// ServerTimeout indicating a unique name could not be found in the time allotted, and the client
	// should retry (optionally after the time indicated in the Retry-After header).
	//
	// Applied only if Name is not specified.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
	// +optional
	GenerateName string `json:"generateName,omitempty" protobuf:"bytes,2,opt,name=generateName"`

	// Namespace defines the space within which each name must be unique. An empty namespace is
	// equivalent to the "default" namespace, but "default" is the canonical representation.
	// Not all objects are required to be scoped to a namespace - the value of this field for
	// those objects will be empty.
	//
	// Must be a DNS_LABEL.
	// Cannot be updated.
	// More info: http://kubernetes.io/docs/user-guide/namespaces
	// +optional
	Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"`

	// SelfLink is a URL representing this object.
	// Populated by the system.
	// Read-only.
	//
	// DEPRECATED
	// Kubernetes will stop propagating this field in 1.20 release and the field is planned
	// to be removed in 1.21 release.
	// +optional
	SelfLink string `json:"selfLink,omitempty" protobuf:"bytes,4,opt,name=selfLink"`

	// UID is the unique in time and space value for this object. It is typically generated by
	// the server on successful creation of a resource and is not allowed to change on PUT
	// operations.
	//
	// Populated by the system.
	// Read-only.
	// More info: http://kubernetes.io/docs/user-guide/identifiers#uids
	// +optional
	UID types.UID `json:"uid,omitempty" protobuf:"bytes,5,opt,name=uid,casttype=k8s.io/kubernetes/pkg/types.UID"`

	// An opaque value that represents the internal version of this object that can
	// be used by clients to determine when objects have changed. May be used for optimistic
	// concurrency, change detection, and the watch operation on a resource or set of resources.
	// Clients must treat these values as opaque and passed unmodified back to the server.
	// They may only be valid for a particular resource or set of resources.
	//
	// Populated by the system.
	// Read-only.
	// Value must be treated as opaque by clients and .
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
	// +optional
	ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,6,opt,name=resourceVersion"`

	// A sequence number representing a specific generation of the desired state.
	// Populated by the system. Read-only.
	// +optional
	Generation int64 `json:"generation,omitempty" protobuf:"varint,7,opt,name=generation"`

	// CreationTimestamp is a timestamp representing the server time when this object was
	// created. It is not guaranteed to be set in happens-before order across separate operations.
	// Clients may not set this value. It is represented in RFC3339 form and is in UTC.
	//
	// Populated by the system.
	// Read-only.
	// Null for lists.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	CreationTimestamp Time `json:"creationTimestamp,omitempty" protobuf:"bytes,8,opt,name=creationTimestamp"`

	// DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This
	// field is set by the server when a graceful deletion is requested by the user, and is not
	// directly settable by a client. The resource is expected to be deleted (no longer visible
	// from resource lists, and not reachable by name) after the time in this field, once the
	// finalizers list is empty. As long as the finalizers list contains items, deletion is blocked.
	// Once the deletionTimestamp is set, this value may not be unset or be set further into the
	// future, although it may be shortened or the resource may be deleted prior to this time.
	// For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react
	// by sending a graceful termination signal to the containers in the pod. After that 30 seconds,
	// the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup,
	// remove the pod from the API. In the presence of network partitions, this object may still
	// exist after this timestamp, until an administrator or automated process can determine the
	// resource is fully terminated.
	// If not set, graceful deletion of the object has not been requested.
	//
	// Populated by the system when a graceful deletion is requested.
	// Read-only.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	DeletionTimestamp *Time `json:"deletionTimestamp,omitempty" protobuf:"bytes,9,opt,name=deletionTimestamp"`

	// Number of seconds allowed for this object to gracefully terminate before
	// it will be removed from the system. Only set when deletionTimestamp is also set.
	// May only be shortened.
	// Read-only.
	// +optional
	DeletionGracePeriodSeconds *int64 `json:"deletionGracePeriodSeconds,omitempty" protobuf:"varint,10,opt,name=deletionGracePeriodSeconds"`

	// Map of string keys and values that can be used to organize and categorize
	// (scope and select) objects. May match selectors of replication controllers
	// and services.
	// More info: http://kubernetes.io/docs/user-guide/labels
	// +optional
	Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,11,rep,name=labels"`

	// Annotations is an unstructured key value map stored with a resource that may be
	// set by external tools to store and retrieve arbitrary metadata. They are not
	// queryable and should be preserved when modifying objects.
	// More info: http://kubernetes.io/docs/user-guide/annotations
	// +optional
	Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,12,rep,name=annotations"`

	// List of objects depended by this object. If ALL objects in the list have
	// been deleted, this object will be garbage collected. If this object is managed by a controller,
	// then an entry in this list will point to this controller, with the controller field set to true.
	// There cannot be more than one managing controller.
	// +optional
	// +patchMergeKey=uid
	// +patchStrategy=merge
	OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" patchStrategy:"merge" patchMergeKey:"uid" protobuf:"bytes,13,rep,name=ownerReferences"`

	// Must be empty before the object is deleted from the registry. Each entry
	// is an identifier for the responsible component that will remove the entry
	// from the list. If the deletionTimestamp of the object is non-nil, entries
	// in this list can only be removed.
	// Finalizers may be processed and removed in any order.  Order is NOT enforced
	// because it introduces significant risk of stuck finalizers.
	// finalizers is a shared field, any actor with permission can reorder it.
	// If the finalizer list is processed in order, then this can lead to a situation
	// in which the component responsible for the first finalizer in the list is
	// waiting for a signal (field value, external system, or other) produced by a
	// component responsible for a finalizer later in the list, resulting in a deadlock.
	// Without enforced ordering finalizers are free to order amongst themselves and
	// are not vulnerable to ordering changes in the list.
	// +optional
	// +patchStrategy=merge
	Finalizers []string `json:"finalizers,omitempty" patchStrategy:"merge" protobuf:"bytes,14,rep,name=finalizers"`

	// The name of the cluster which the object belongs to.
	// This is used to distinguish resources with same name and namespace in different clusters.
	// This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.
	// +optional
	ClusterName string `json:"clusterName,omitempty" protobuf:"bytes,15,opt,name=clusterName"`

	// ManagedFields maps workflow-id and version to the set of fields
	// that are managed by that workflow. This is mostly for internal
	// housekeeping, and users typically shouldn't need to set or
	// understand this field. A workflow can be the user's name, a
	// controller's name, or the name of a specific apply path like
	// "ci-cd". The set of fields is always in the version that the
	// workflow used when modifying the object.
	//
	// +optional
	ManagedFields []ManagedFieldsEntry `json:"managedFields,omitempty" protobuf:"bytes,17,rep,name=managedFields"`
}

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

func (*ObjectMeta) DeepCopy

func (in *ObjectMeta) DeepCopy() *ObjectMeta

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMeta.

func (*ObjectMeta) DeepCopyInto

func (in *ObjectMeta) DeepCopyInto(out *ObjectMeta)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ObjectMeta) Descriptor

func (*ObjectMeta) Descriptor() ([]byte, []int)

func (*ObjectMeta) GetAnnotations

func (meta *ObjectMeta) GetAnnotations() map[string]string

func (*ObjectMeta) GetClusterName

func (meta *ObjectMeta) GetClusterName() string

func (*ObjectMeta) GetCreationTimestamp

func (meta *ObjectMeta) GetCreationTimestamp() Time

func (*ObjectMeta) GetDeletionGracePeriodSeconds

func (meta *ObjectMeta) GetDeletionGracePeriodSeconds() *int64

func (*ObjectMeta) GetDeletionTimestamp

func (meta *ObjectMeta) GetDeletionTimestamp() *Time

func (*ObjectMeta) GetFinalizers

func (meta *ObjectMeta) GetFinalizers() []string

func (*ObjectMeta) GetGenerateName

func (meta *ObjectMeta) GetGenerateName() string

func (*ObjectMeta) GetGeneration

func (meta *ObjectMeta) GetGeneration() int64

func (*ObjectMeta) GetLabels

func (meta *ObjectMeta) GetLabels() map[string]string

func (*ObjectMeta) GetManagedFields

func (meta *ObjectMeta) GetManagedFields() []ManagedFieldsEntry

func (*ObjectMeta) GetName

func (meta *ObjectMeta) GetName() string

func (*ObjectMeta) GetNamespace

func (meta *ObjectMeta) GetNamespace() string

Namespace implements metav1.Object for any object with an ObjectMeta typed field. Allows fast, direct access to metadata fields for API objects.

func (*ObjectMeta) GetObjectMeta

func (obj *ObjectMeta) GetObjectMeta() Object

func (*ObjectMeta) GetOwnerReferences

func (meta *ObjectMeta) GetOwnerReferences() []OwnerReference

func (*ObjectMeta) GetResourceVersion

func (meta *ObjectMeta) GetResourceVersion() string
func (meta *ObjectMeta) GetSelfLink() string

func (*ObjectMeta) GetUID

func (meta *ObjectMeta) GetUID() types.UID

func (*ObjectMeta) Marshal

func (m *ObjectMeta) Marshal() (dAtA []byte, err error)

func (*ObjectMeta) MarshalTo

func (m *ObjectMeta) MarshalTo(dAtA []byte) (int, error)

func (*ObjectMeta)