apimachinery: k8s.io/apimachinery/pkg/apis/meta/v1 Index | Files | Directories

package v1

import "k8s.io/apimachinery/pkg/apis/meta/v1"

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

Package Files

controller_ref.go conversion.go deepcopy.go doc.go duration.go generated.pb.go group_version.go helpers.go labels.go meta.go micro_time.go micro_time_proto.go register.go time.go time_proto.go types.go types_swagger_doc_generated.go watch.go zz_generated.conversion.go zz_generated.deepcopy.go zz_generated.defaults.go

Constants

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

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

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"
)
const (
    StatusSuccess = "Success"
    StatusFailure = "Failure"
)

Values of Status.Status

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

GroupName is the group name for this API.

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

WatchEventKind is name reserved for serializing watch events.

Variables

var (
    ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowGenerated   = fmt.Errorf("proto: integer overflow")
)
var ParameterCodec = runtime.NewParameterCodec(scheme)

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

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

SchemeGroupVersion is group version used to register these objects

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

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

func AddMetaToScheme Uses

func AddMetaToScheme(scheme *runtime.Scheme) error

AddMetaToScheme registers base meta types into schemas.

func AddToGroupVersion Uses

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

AddToGroupVersion registers common meta types into schemas.

func Convert_Map_string_To_string_To_v1_LabelSelector Uses

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 Uses

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

func Convert_Pointer_float64_To_float64 Uses

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

func Convert_Pointer_int32_To_int32 Uses

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

func Convert_Pointer_int64_To_int Uses

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

func Convert_Pointer_int64_To_int64 Uses

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

func Convert_Pointer_intstr_IntOrString_To_intstr_IntOrString Uses

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

func Convert_Pointer_string_To_string Uses

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

func Convert_Pointer_v1_Duration_To_v1_Duration Uses

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

func Convert_Slice_string_To_Pointer_v1_DeletionPropagation Uses

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 Uses

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

func Convert_Slice_string_To_Slice_int32 Uses

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 Uses

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_Time Uses

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 Uses

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

func Convert_fields_Selector_To_string Uses

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

func Convert_float64_To_Pointer_float64 Uses

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

func Convert_int32_To_Pointer_int32 Uses

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

func Convert_int64_To_Pointer_int64 Uses

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

func Convert_int_To_Pointer_int64 Uses

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

func Convert_intstr_IntOrString_To_Pointer_intstr_IntOrString Uses

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 Uses

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 Uses

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

func Convert_resource_Quantity_To_resource_Quantity Uses

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 Uses

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

func Convert_string_To_fields_Selector Uses

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

func Convert_string_To_labels_Selector Uses

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

func Convert_url_Values_To_v1_CreateOptions Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

func Convert_v1_InternalEvent_To_v1_WatchEvent Uses

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

func Convert_v1_LabelSelector_To_Map_string_To_string Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

func Convert_v1_WatchEvent_To_watch_Event Uses

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

func Convert_watch_Event_To_v1_WatchEvent Uses

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

func ExtractGroupVersions Uses

func ExtractGroupVersions(l *APIGroupList) []string

func FieldSelectorQueryParam Uses

func FieldSelectorQueryParam(version string) string

TODO: remove me when watch is refactored

func FormatLabelSelector Uses

func FormatLabelSelector(labelSelector *LabelSelector) string

FormatLabelSelector convert labelSelector into plain string

func HasAnnotation Uses

func HasAnnotation(obj ObjectMeta, ann string) bool

HasAnnotation returns a bool if passed in annotation exists

func HasObjectMetaSystemFieldValues Uses

func HasObjectMetaSystemFieldValues(meta Object) bool

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

func IsControlledBy Uses

func IsControlledBy(obj Object, owner Object) bool

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

func Kind Uses

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func LabelSelectorAsMap Uses

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 Uses

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 Uses

func LabelSelectorQueryParam(version string) string

TODO: remove me when watch is refactored

func RegisterConversions Uses

func RegisterConversions(s *runtime.Scheme) error

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

func RegisterDefaults Uses

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 Uses

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 Uses

func SelectorHasLabel(selector *LabelSelector, labelKey string) bool

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

func SetMetaDataAnnotation Uses

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

SetMetaDataAnnotation sets the annotation and value

type APIGroup Uses

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 Uses

func (in *APIGroup) DeepCopy() *APIGroup

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

func (*APIGroup) DeepCopyInto Uses

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 Uses

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

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

func (*APIGroup) Descriptor Uses

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

func (*APIGroup) Marshal Uses

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

func (*APIGroup) MarshalTo Uses

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

func (*APIGroup) MarshalToSizedBuffer Uses

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

func (*APIGroup) ProtoMessage Uses

func (*APIGroup) ProtoMessage()

func (*APIGroup) Reset Uses

func (m *APIGroup) Reset()

func (*APIGroup) Size Uses

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

func (*APIGroup) String Uses

func (this *APIGroup) String() string

func (APIGroup) SwaggerDoc Uses

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

func (*APIGroup) Unmarshal Uses

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

func (*APIGroup) XXX_DiscardUnknown Uses

func (m *APIGroup) XXX_DiscardUnknown()

func (*APIGroup) XXX_Marshal Uses

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

func (*APIGroup) XXX_Merge Uses

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

func (*APIGroup) XXX_Size Uses

func (m *APIGroup) XXX_Size() int

func (*APIGroup) XXX_Unmarshal Uses

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

type APIGroupList Uses

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 Uses

func (in *APIGroupList) DeepCopy() *APIGroupList

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

func (*APIGroupList) DeepCopyInto Uses

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 Uses

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

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

func (*APIGroupList) Descriptor Uses

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

func (*APIGroupList) Marshal Uses

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

func (*APIGroupList) MarshalTo Uses

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

func (*APIGroupList) MarshalToSizedBuffer Uses

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

func (*APIGroupList) ProtoMessage Uses

func (*APIGroupList) ProtoMessage()

func (*APIGroupList) Reset Uses

func (m *APIGroupList) Reset()

func (*APIGroupList) Size Uses

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

func (*APIGroupList) String Uses

func (this *APIGroupList) String() string

func (APIGroupList) SwaggerDoc Uses

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

func (*APIGroupList) Unmarshal Uses

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

func (*APIGroupList) XXX_DiscardUnknown Uses

func (m *APIGroupList) XXX_DiscardUnknown()

func (*APIGroupList) XXX_Marshal Uses

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

func (*APIGroupList) XXX_Merge Uses

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

func (*APIGroupList) XXX_Size Uses

func (m *APIGroupList) XXX_Size() int

func (*APIGroupList) XXX_Unmarshal Uses

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

type APIResource Uses

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 Uses

func (in *APIResource) DeepCopy() *APIResource

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

func (*APIResource) DeepCopyInto Uses

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 Uses

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

func (*APIResource) Marshal Uses

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

func (*APIResource) MarshalTo Uses

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

func (*APIResource) MarshalToSizedBuffer Uses

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

func (*APIResource) ProtoMessage Uses

func (*APIResource) ProtoMessage()

func (*APIResource) Reset Uses

func (m *APIResource) Reset()

func (*APIResource) Size Uses

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

func (*APIResource) String Uses

func (this *APIResource) String() string

func (APIResource) SwaggerDoc Uses

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

func (*APIResource) Unmarshal Uses

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

func (*APIResource) XXX_DiscardUnknown Uses

func (m *APIResource) XXX_DiscardUnknown()

func (*APIResource) XXX_Marshal Uses

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

func (*APIResource) XXX_Merge Uses

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

func (*APIResource) XXX_Size Uses

func (m *APIResource) XXX_Size() int

func (*APIResource) XXX_Unmarshal Uses

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

type APIResourceList Uses

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 Uses

func (in *APIResourceList) DeepCopy() *APIResourceList

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

func (*APIResourceList) DeepCopyInto Uses

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 Uses

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

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

func (*APIResourceList) Descriptor Uses

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

func (*APIResourceList) Marshal Uses

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

func (*APIResourceList) MarshalTo Uses

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

func (*APIResourceList) MarshalToSizedBuffer Uses

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

func (*APIResourceList) ProtoMessage Uses

func (*APIResourceList) ProtoMessage()

func (*APIResourceList) Reset Uses

func (m *APIResourceList) Reset()

func (*APIResourceList) Size Uses

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

func (*APIResourceList) String Uses

func (this *APIResourceList) String() string

func (APIResourceList) SwaggerDoc Uses

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

func (*APIResourceList) Unmarshal Uses

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

func (*APIResourceList) XXX_DiscardUnknown Uses

func (m *APIResourceList) XXX_DiscardUnknown()

func (*APIResourceList) XXX_Marshal Uses

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

func (*APIResourceList) XXX_Merge Uses

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

func (*APIResourceList) XXX_Size Uses

func (m *APIResourceList) XXX_Size() int

func (*APIResourceList) XXX_Unmarshal Uses

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

type APIVersions Uses

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 Uses

func (in *APIVersions) DeepCopy() *APIVersions

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

func (*APIVersions) DeepCopyInto Uses

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 Uses

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

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

func (*APIVersions) Descriptor Uses

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

func (APIVersions) GoString Uses

func (apiVersions APIVersions) GoString() string

func (*APIVersions) Marshal Uses

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

func (*APIVersions) MarshalTo Uses

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

func (*APIVersions) MarshalToSizedBuffer Uses

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

func (*APIVersions) ProtoMessage Uses

func (*APIVersions) ProtoMessage()

func (*APIVersions) Reset Uses

func (m *APIVersions) Reset()

func (*APIVersions) Size Uses

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

func (APIVersions) String Uses

func (apiVersions APIVersions) String() string

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

func (APIVersions) SwaggerDoc Uses

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

func (*APIVersions) Unmarshal Uses

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

func (*APIVersions) XXX_DiscardUnknown Uses

func (m *APIVersions) XXX_DiscardUnknown()

func (*APIVersions) XXX_Marshal Uses

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

func (*APIVersions) XXX_Merge Uses

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

func (*APIVersions) XXX_Size Uses

func (m *APIVersions) XXX_Size() int

func (*APIVersions) XXX_Unmarshal Uses

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

type CauseType Uses

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"
)

type Common Uses

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 ConditionStatus Uses

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 Uses

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 Uses

func (in *CreateOptions) DeepCopy() *CreateOptions

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

func (*CreateOptions) DeepCopyInto Uses

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 Uses

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

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

func (*CreateOptions) Descriptor Uses

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

func (*CreateOptions) Marshal Uses

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

func (*CreateOptions) MarshalTo Uses

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

func (*CreateOptions) MarshalToSizedBuffer Uses

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

func (*CreateOptions) ProtoMessage Uses

func (*CreateOptions) ProtoMessage()

func (*CreateOptions) Reset Uses

func (m *CreateOptions) Reset()

func (*CreateOptions) Size Uses

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

func (*CreateOptions) String Uses

func (this *CreateOptions) String() string

func (CreateOptions) SwaggerDoc Uses

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

func (*CreateOptions) Unmarshal Uses

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

func (*CreateOptions) XXX_DiscardUnknown Uses

func (m *CreateOptions) XXX_DiscardUnknown()

func (*CreateOptions) XXX_Marshal Uses

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

func (*CreateOptions) XXX_Merge Uses

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

func (*CreateOptions) XXX_Size Uses

func (m *CreateOptions) XXX_Size() int

func (*CreateOptions) XXX_Unmarshal Uses

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

type DeleteOptions Uses

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 Uses

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 Uses

func NewPreconditionDeleteOptions(uid string) *DeleteOptions

NewPreconditionDeleteOptions returns a DeleteOptions with a UID precondition set.

func NewRVDeletionPrecondition Uses

func NewRVDeletionPrecondition(rv string) *DeleteOptions

NewRVDeletionPrecondition returns a DeleteOptions with a ResourceVersion precondition set.

func (*DeleteOptions) DeepCopy Uses

func (in *DeleteOptions) DeepCopy() *DeleteOptions

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

func (*DeleteOptions) DeepCopyInto Uses

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 Uses

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

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

func (*DeleteOptions) Descriptor Uses

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

func (*DeleteOptions) Marshal Uses

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

func (*DeleteOptions) MarshalTo Uses

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

func (*DeleteOptions) MarshalToSizedBuffer Uses

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

func (*DeleteOptions) ProtoMessage Uses

func (*DeleteOptions) ProtoMessage()

func (*DeleteOptions) Reset Uses

func (m *DeleteOptions) Reset()

func (*DeleteOptions) Size Uses

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

func (*DeleteOptions) String Uses

func (this *DeleteOptions) String() string

func (DeleteOptions) SwaggerDoc Uses

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

func (*DeleteOptions) Unmarshal Uses

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

func (*DeleteOptions) XXX_DiscardUnknown Uses

func (m *DeleteOptions) XXX_DiscardUnknown()

func (*DeleteOptions) XXX_Marshal Uses

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

func (*DeleteOptions) XXX_Merge Uses

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

func (*DeleteOptions) XXX_Size Uses

func (m *DeleteOptions) XXX_Size() int

func (*DeleteOptions) XXX_Unmarshal Uses

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

type DeletionPropagation Uses

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 Uses

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 Uses

func (in *Duration) DeepCopy() *Duration

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

func (*Duration) DeepCopyInto Uses

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 Uses

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

func (*Duration) Marshal Uses

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

func (Duration) MarshalJSON Uses

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

MarshalJSON implements the json.Marshaler interface.

func (*Duration) MarshalTo Uses

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

func (*Duration) MarshalToSizedBuffer Uses

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

func (Duration) OpenAPISchemaFormat Uses

func (_ Duration) OpenAPISchemaFormat() string

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

func (Duration) OpenAPISchemaType Uses

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 Uses

func (*Duration) ProtoMessage()

func (*Duration) Reset Uses

func (m *Duration) Reset()

func (*Duration) Size Uses

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

func (*Duration) String Uses

func (this *Duration) String() string

func (*Duration) Unmarshal Uses

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

func (*Duration) UnmarshalJSON Uses

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

UnmarshalJSON implements the json.Unmarshaller interface.

func (*Duration) XXX_DiscardUnknown Uses

func (m *Duration) XXX_DiscardUnknown()

func (*Duration) XXX_Marshal Uses

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

func (*Duration) XXX_Merge Uses

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

func (*Duration) XXX_Size Uses

func (m *Duration) XXX_Size() int

func (*Duration) XXX_Unmarshal Uses

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

type ExportOptions Uses

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 Uses

func (in *ExportOptions) DeepCopy() *ExportOptions

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

func (*ExportOptions) DeepCopyInto Uses

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 Uses

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

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

func (*ExportOptions) Descriptor Uses

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

func (*ExportOptions) Marshal Uses

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

func (*ExportOptions) MarshalTo Uses

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

func (*ExportOptions) MarshalToSizedBuffer Uses

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

func (*ExportOptions) ProtoMessage Uses

func (*ExportOptions) ProtoMessage()

func (*ExportOptions) Reset Uses

func (m *ExportOptions) Reset()

func (*ExportOptions) Size Uses

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

func (*ExportOptions) String Uses

func (this *ExportOptions) String() string

func (ExportOptions) SwaggerDoc Uses

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

func (*ExportOptions) Unmarshal Uses

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

func (*ExportOptions) XXX_DiscardUnknown Uses

func (m *ExportOptions) XXX_DiscardUnknown()

func (*ExportOptions) XXX_Marshal Uses

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

func (*ExportOptions) XXX_Merge Uses

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

func (*ExportOptions) XXX_Size Uses

func (m *ExportOptions) XXX_Size() int

func (*ExportOptions) XXX_Unmarshal Uses

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

type FieldsV1 Uses

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

func (*FieldsV1) DeepCopy Uses

func (in *FieldsV1) DeepCopy() *FieldsV1

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

func (*FieldsV1) DeepCopyInto Uses

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 Uses

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

func (*FieldsV1) Marshal Uses

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

func (FieldsV1) MarshalJSON Uses

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 Uses

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

func (*FieldsV1) MarshalToSizedBuffer Uses

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

func (*FieldsV1) ProtoMessage Uses

func (*FieldsV1) ProtoMessage()

func (*FieldsV1) Reset Uses

func (m *FieldsV1) Reset()

func (*FieldsV1) Size Uses

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

func (*FieldsV1) String Uses

func (this *FieldsV1) String() string

func (FieldsV1) SwaggerDoc Uses

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

func (*FieldsV1) Unmarshal Uses

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

func (*FieldsV1) UnmarshalJSON Uses

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

UnmarshalJSON implements json.Unmarshaler

func (*FieldsV1) XXX_DiscardUnknown Uses

func (m *FieldsV1) XXX_DiscardUnknown()

func (*FieldsV1) XXX_Marshal Uses

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

func (*FieldsV1) XXX_Merge Uses

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

func (*FieldsV1) XXX_Size Uses

func (m *FieldsV1) XXX_Size() int

func (*FieldsV1) XXX_Unmarshal Uses

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

type GetOptions Uses

type GetOptions struct {
    TypeMeta `json:",inline"`
    // When specified:
    // - if unset, then the result is returned from remote storage based on quorum-read flag;
    // - if it's 0, then we simply return what we currently have in cache, no guarantee;
    // - if set to non zero, then the result is at least as fresh as given rv.
    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 Uses

func (in *GetOptions) DeepCopy() *GetOptions

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

func (*GetOptions) DeepCopyInto Uses

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 Uses

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

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

func (*GetOptions) Descriptor Uses

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

func (*GetOptions) Marshal Uses

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

func (*GetOptions) MarshalTo Uses

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

func (*GetOptions) MarshalToSizedBuffer Uses

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

func (*GetOptions) ProtoMessage Uses

func (*GetOptions) ProtoMessage()

func (*GetOptions) Reset Uses

func (m *GetOptions) Reset()

func (*GetOptions) Size Uses

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

func (*GetOptions) String Uses

func (this *GetOptions) String() string

func (GetOptions) SwaggerDoc Uses

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

func (*GetOptions) Unmarshal Uses

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

func (*GetOptions) XXX_DiscardUnknown Uses

func (m *GetOptions) XXX_DiscardUnknown()

func (*GetOptions) XXX_Marshal Uses

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

func (*GetOptions) XXX_Merge Uses

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

func (*GetOptions) XXX_Size Uses

func (m *GetOptions) XXX_Size() int

func (*GetOptions) XXX_Unmarshal Uses

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

type GroupKind Uses

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 Uses

func (in *GroupKind) DeepCopy() *GroupKind

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

func (*GroupKind) DeepCopyInto Uses

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 Uses

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

func (*GroupKind) Marshal Uses

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

func (*GroupKind) MarshalTo Uses

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

func (*GroupKind) MarshalToSizedBuffer Uses

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

func (*GroupKind) ProtoMessage Uses

func (*GroupKind) ProtoMessage()

func (*GroupKind) Reset Uses

func (m *GroupKind) Reset()

func (*GroupKind) Size Uses

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

func (*GroupKind) String Uses

func (gk *GroupKind) String() string

func (*GroupKind) Unmarshal Uses

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

func (*GroupKind) XXX_DiscardUnknown Uses

func (m *GroupKind) XXX_DiscardUnknown()

func (*GroupKind) XXX_Marshal Uses

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

func (*GroupKind) XXX_Merge Uses

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

func (*GroupKind) XXX_Size Uses

func (m *GroupKind) XXX_Size() int

func (*GroupKind) XXX_Unmarshal Uses

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

type GroupResource Uses

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 Uses

func (in *GroupResource) DeepCopy() *GroupResource

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

func (*GroupResource) DeepCopyInto Uses

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 Uses

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

func (*GroupResource) Marshal Uses

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

func (*GroupResource) MarshalTo Uses

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

func (*GroupResource) MarshalToSizedBuffer Uses

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

func (*GroupResource) ProtoMessage Uses

func (*GroupResource) ProtoMessage()

func (*GroupResource) Reset Uses

func (m *GroupResource) Reset()

func (*GroupResource) Size Uses

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

func (*GroupResource) String Uses

func (gr *GroupResource) String() string

func (*GroupResource) Unmarshal Uses

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

func (*GroupResource) XXX_DiscardUnknown Uses

func (m *GroupResource) XXX_DiscardUnknown()

func (*GroupResource) XXX_Marshal Uses

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

func (*GroupResource) XXX_Merge Uses

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

func (*GroupResource) XXX_Size Uses

func (m *GroupResource) XXX_Size() int

func (*GroupResource) XXX_Unmarshal Uses

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

type GroupVersion Uses

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 Uses

func (in *GroupVersion) DeepCopy() *GroupVersion

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

func (*GroupVersion) DeepCopyInto Uses

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 Uses

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

func (GroupVersion) Empty Uses

func (gv GroupVersion) Empty() bool

Empty returns true if group and version are empty

func (*GroupVersion) Marshal Uses

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

func (GroupVersion) MarshalJSON Uses

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

MarshalJSON implements the json.Marshaller interface.

func (*GroupVersion) MarshalTo Uses

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

func (*GroupVersion) MarshalToSizedBuffer Uses

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

func (*GroupVersion) ProtoMessage Uses

func (*GroupVersion) ProtoMessage()

func (*GroupVersion) Reset Uses

func (m *GroupVersion) Reset()

func (*GroupVersion) Size Uses

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

func (GroupVersion) String Uses

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 Uses

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

func (*GroupVersion) UnmarshalJSON Uses

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

UnmarshalJSON implements the json.Unmarshaller interface.

func (*GroupVersion) UnmarshalText Uses

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

UnmarshalTEXT implements the Ugorji's encoding.TextUnmarshaler interface.

func (*GroupVersion) XXX_DiscardUnknown Uses

func (m *GroupVersion) XXX_DiscardUnknown()

func (*GroupVersion) XXX_Marshal Uses

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

func (*GroupVersion) XXX_Merge Uses

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

func (*GroupVersion) XXX_Size Uses

func (m *GroupVersion) XXX_Size() int

func (*GroupVersion) XXX_Unmarshal Uses

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

type GroupVersionForDiscovery Uses

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 Uses

func (in *GroupVersionForDiscovery) DeepCopy() *GroupVersionForDiscovery

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

func (*GroupVersionForDiscovery) DeepCopyInto Uses

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 Uses

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

func (*GroupVersionForDiscovery) Marshal Uses

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

func (*GroupVersionForDiscovery) MarshalTo Uses

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

func (*GroupVersionForDiscovery) MarshalToSizedBuffer Uses

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

func (*GroupVersionForDiscovery) ProtoMessage Uses

func (*GroupVersionForDiscovery) ProtoMessage()

func (*GroupVersionForDiscovery) Reset Uses

func (m *GroupVersionForDiscovery) Reset()

func (*GroupVersionForDiscovery) Size Uses

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

func (*GroupVersionForDiscovery) String Uses

func (this *GroupVersionForDiscovery) String() string

func (GroupVersionForDiscovery) SwaggerDoc Uses

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

func (*GroupVersionForDiscovery) Unmarshal Uses

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

func (*GroupVersionForDiscovery) XXX_DiscardUnknown Uses

func (m *GroupVersionForDiscovery) XXX_DiscardUnknown()

func (*GroupVersionForDiscovery) XXX_Marshal Uses

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

func (*GroupVersionForDiscovery) XXX_Merge Uses

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

func (*GroupVersionForDiscovery) XXX_Size Uses

func (m *GroupVersionForDiscovery) XXX_Size() int

func (*GroupVersionForDiscovery) XXX_Unmarshal Uses

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

type GroupVersionKind Uses

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 Uses

func (in *GroupVersionKind) DeepCopy() *GroupVersionKind

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

func (*GroupVersionKind) DeepCopyInto Uses

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 Uses

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

func (*GroupVersionKind) Marshal Uses

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

func (*GroupVersionKind) MarshalTo Uses

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

func (*GroupVersionKind) MarshalToSizedBuffer Uses

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

func (*GroupVersionKind) ProtoMessage Uses

func (*GroupVersionKind) ProtoMessage()

func (*GroupVersionKind) Reset Uses

func (m *GroupVersionKind) Reset()

func (*GroupVersionKind) Size Uses

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

func (GroupVersionKind) String Uses

func (gvk GroupVersionKind) String() string

func (*GroupVersionKind) Unmarshal Uses

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

func (*GroupVersionKind) XXX_DiscardUnknown Uses

func (m *GroupVersionKind) XXX_DiscardUnknown()

func (*GroupVersionKind) XXX_Marshal Uses

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

func (*GroupVersionKind) XXX_Merge Uses

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

func (*GroupVersionKind) XXX_Size Uses

func (m *GroupVersionKind) XXX_Size() int

func (*GroupVersionKind) XXX_Unmarshal Uses

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

type GroupVersionResource Uses

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 Uses

func (in *GroupVersionResource) DeepCopy() *GroupVersionResource

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

func (*GroupVersionResource) DeepCopyInto Uses

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 Uses

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

func (*GroupVersionResource) Marshal Uses

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

func (*GroupVersionResource) MarshalTo Uses

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

func (*GroupVersionResource) MarshalToSizedBuffer Uses

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

func (*GroupVersionResource) ProtoMessage Uses

func (*GroupVersionResource) ProtoMessage()

func (*GroupVersionResource) Reset Uses

func (m *GroupVersionResource) Reset()

func (*GroupVersionResource) Size Uses

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

func (*GroupVersionResource) String Uses

func (gvr *GroupVersionResource) String() string

func (*GroupVersionResource) Unmarshal Uses

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

func (*GroupVersionResource) XXX_DiscardUnknown Uses

func (m *GroupVersionResource) XXX_DiscardUnknown()

func (*GroupVersionResource) XXX_Marshal Uses

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

func (*GroupVersionResource) XXX_Merge Uses

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

func (*GroupVersionResource) XXX_Size Uses

func (m *GroupVersionResource) XXX_Size() int

func (*GroupVersionResource) XXX_Unmarshal Uses

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

type IncludeObjectPolicy Uses

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 Uses

type InternalEvent watch.Event

InternalEvent makes watch.Event versioned +protobuf=false

func (*InternalEvent) DeepCopy Uses

func (in *InternalEvent) DeepCopy() *InternalEvent

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

func (*InternalEvent) DeepCopyInto Uses

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 Uses

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

func (*InternalEvent) GetObjectKind Uses

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

type LabelSelector Uses

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.

func AddLabelToSelector Uses

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 Uses

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 Uses

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 Uses

func SetAsLabelSelector(ls labels.Set) *LabelSelector

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

func (*LabelSelector) DeepCopy Uses

func (in *LabelSelector) DeepCopy() *LabelSelector

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

func (*LabelSelector) DeepCopyInto Uses

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 Uses

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

func (*LabelSelector) Marshal Uses

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

func (*LabelSelector) MarshalTo Uses

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

func (*LabelSelector) MarshalToSizedBuffer Uses

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

func (*LabelSelector) ProtoMessage Uses

func (*LabelSelector) ProtoMessage()

func (*LabelSelector) Reset Uses

func (m *LabelSelector) Reset()

func (*LabelSelector) Size Uses

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

func (*LabelSelector) String Uses

func (this *LabelSelector) String() string

func (LabelSelector) SwaggerDoc Uses

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

func (*LabelSelector) Unmarshal Uses

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

func (*LabelSelector) XXX_DiscardUnknown Uses

func (m *LabelSelector) XXX_DiscardUnknown()

func (*LabelSelector) XXX_Marshal Uses

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

func (*LabelSelector) XXX_Merge Uses

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

func (*LabelSelector) XXX_Size Uses

func (m *LabelSelector) XXX_Size() int

func (*LabelSelector) XXX_Unmarshal Uses

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

type LabelSelectorOperator Uses

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 Uses

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 Uses

func (in *LabelSelectorRequirement) DeepCopy() *LabelSelectorRequirement

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

func (*LabelSelectorRequirement) DeepCopyInto Uses

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 Uses

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

func (*LabelSelectorRequirement) Marshal Uses

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

func (*LabelSelectorRequirement) MarshalTo Uses

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

func (*LabelSelectorRequirement) MarshalToSizedBuffer Uses

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

func (*LabelSelectorRequirement) ProtoMessage Uses

func (*LabelSelectorRequirement) ProtoMessage()

func (*LabelSelectorRequirement) Reset Uses

func (m *LabelSelectorRequirement) Reset()

func (*LabelSelectorRequirement) Size Uses

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

func (*LabelSelectorRequirement) String Uses

func (this *LabelSelectorRequirement) String() string

func (LabelSelectorRequirement) SwaggerDoc Uses

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

func (*LabelSelectorRequirement) Unmarshal Uses

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

func (*LabelSelectorRequirement) XXX_DiscardUnknown Uses

func (m *LabelSelectorRequirement) XXX_DiscardUnknown()

func (*LabelSelectorRequirement) XXX_Marshal Uses

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

func (*LabelSelectorRequirement) XXX_Merge Uses

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

func (*LabelSelectorRequirement) XXX_Size Uses

func (m *LabelSelectorRequirement) XXX_Size() int

func (*LabelSelectorRequirement) XXX_Unmarshal Uses

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

type List Uses

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 Uses

func (in *List) DeepCopy() *List

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

func (*List) DeepCopyInto Uses

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 Uses

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

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

func (*List) Descriptor Uses

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

func (*List) Marshal Uses

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

func (*List) MarshalTo Uses

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

func (*List) MarshalToSizedBuffer Uses

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

func (*List) ProtoMessage Uses

func (*List) ProtoMessage()

func (*List) Reset Uses

func (m *List) Reset()

func (*List) Size Uses

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

func (*List) String Uses

func (this *List) String() string

func (List) SwaggerDoc Uses

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

func (*List) Unmarshal Uses

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

func (*List) XXX_DiscardUnknown Uses

func (m *List) XXX_DiscardUnknown()

func (*List) XXX_Marshal Uses

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

func (*List) XXX_Merge Uses

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

func (*List) XXX_Size Uses

func (m *List) XXX_Size() int

func (*List) XXX_Unmarshal Uses

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

type ListInterface Uses

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 Uses

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 Uses

func (in *ListMeta) DeepCopy() *ListMeta

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

func (*ListMeta) DeepCopyInto Uses

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 Uses

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

func (*ListMeta) GetContinue Uses

func (meta *ListMeta) GetContinue() string

func (*ListMeta) GetListMeta Uses

func (obj *ListMeta) GetListMeta() ListInterface

func (*ListMeta) GetRemainingItemCount Uses

func (meta *ListMeta) GetRemainingItemCount() *int64

func (*ListMeta) GetResourceVersion Uses

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

func (*ListMeta) Marshal Uses

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

func (*ListMeta) MarshalTo Uses

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

func (*ListMeta) MarshalToSizedBuffer Uses

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

func (*ListMeta) ProtoMessage Uses

func (*ListMeta) ProtoMessage()

func (*ListMeta) Reset Uses

func (m *ListMeta) Reset()

func (*ListMeta) SetContinue Uses

func (meta *ListMeta) SetContinue(c string)

func (*ListMeta) SetRemainingItemCount Uses

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

func (*ListMeta) SetResourceVersion Uses

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

func (*ListMeta) Size Uses

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

func (*ListMeta) String Uses

func (this *ListMeta) String() string

func (ListMeta) SwaggerDoc Uses

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

func (*ListMeta) Unmarshal Uses

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

func (*ListMeta) XXX_DiscardUnknown Uses

func (m *ListMeta) XXX_DiscardUnknown()

func (*ListMeta) XXX_Marshal Uses

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

func (*ListMeta) XXX_Merge Uses

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

func (*ListMeta) XXX_Size Uses

func (m *ListMeta) XXX_Size() int

func (*ListMeta) XXX_Unmarshal Uses

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

type ListMetaAccessor Uses

type ListMetaAccessor interface {
    GetListMeta() ListInterface
}

ListMetaAccessor retrieves the list interface from an object

type ListOptions Uses

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"`

    // When specified with a watch call, shows changes that occur after that particular version of a resource.
    // Defaults to changes from the beginning of history.
    // When specified for list:
    // - if unset, then the result is returned from remote storage based on quorum-read flag;
    // - if it's 0, then we simply return what we currently have in cache, no guarantee;
    // - if set to non zero, then the result is at least as fresh as given rv.
    // +optional
    ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,4,opt,name=resourceVersion"`
    // 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 Uses

func SingleObject(meta ObjectMeta) ListOptions

SingleObject returns a ListOptions for watching a single object.

func (*ListOptions) DeepCopy Uses

func (in *ListOptions) DeepCopy() *ListOptions

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

func (*ListOptions) DeepCopyInto Uses

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 Uses

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

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

func (*ListOptions) Descriptor Uses

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

func (*ListOptions) Marshal Uses

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

func (*ListOptions) MarshalTo Uses

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

func (*ListOptions) MarshalToSizedBuffer Uses

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

func (*ListOptions) ProtoMessage Uses

func (*ListOptions) ProtoMessage()

func (*ListOptions) Reset Uses

func (m *ListOptions) Reset()

func (*ListOptions) Size Uses

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

func (*ListOptions) String Uses

func (this *ListOptions) String() string

func (ListOptions) SwaggerDoc Uses

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

func (*ListOptions) Unmarshal Uses

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

func (*ListOptions) XXX_DiscardUnknown Uses

func (m *ListOptions) XXX_DiscardUnknown()

func (*ListOptions) XXX_Marshal Uses

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

func (*ListOptions) XXX_Merge Uses

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

func (*ListOptions) XXX_Size Uses

func (m *ListOptions) XXX_Size() int

func (*ListOptions) XXX_Unmarshal Uses

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

type ManagedFieldsEntry Uses

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 Uses

func (in *ManagedFieldsEntry) DeepCopy() *ManagedFieldsEntry

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

func (*ManagedFieldsEntry) DeepCopyInto Uses

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 Uses

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

func (*ManagedFieldsEntry) Marshal Uses

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

func (*ManagedFieldsEntry) MarshalTo Uses

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

func (*ManagedFieldsEntry) MarshalToSizedBuffer Uses

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

func (*ManagedFieldsEntry) ProtoMessage Uses

func (*ManagedFieldsEntry) ProtoMessage()

func (*ManagedFieldsEntry) Reset Uses

func (m *ManagedFieldsEntry) Reset()

func (*ManagedFieldsEntry) Size Uses

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

func (*ManagedFieldsEntry) String Uses

func (this *ManagedFieldsEntry) String() string

func (ManagedFieldsEntry) SwaggerDoc Uses

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

func (*ManagedFieldsEntry) Unmarshal Uses

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

func (*ManagedFieldsEntry) XXX_DiscardUnknown Uses

func (m *ManagedFieldsEntry) XXX_DiscardUnknown()

func (*ManagedFieldsEntry) XXX_Marshal Uses

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

func (*ManagedFieldsEntry) XXX_Merge Uses

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

func (*ManagedFieldsEntry) XXX_Size Uses

func (m *ManagedFieldsEntry) XXX_Size() int

func (*ManagedFieldsEntry) XXX_Unmarshal Uses

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

type ManagedFieldsOperationType Uses

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 Uses

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 Uses

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 Uses

func NewMicroTime(time time.Time) MicroTime

NewMicroTime returns a wrapped instance of the provided time

func NowMicro Uses

func NowMicro() MicroTime

NowMicro returns the current local time.

func UnixMicro Uses

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 Uses

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

Before reports whether the time instant t is before u.

func (*MicroTime) BeforeTime Uses

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

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

func (*MicroTime) DeepCopy Uses

func (in *MicroTime) DeepCopy() *MicroTime

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

func (*MicroTime) DeepCopyInto Uses

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 Uses

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

func (*MicroTime) Equal Uses

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

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

func (*MicroTime) EqualTime Uses

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

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

func (*MicroTime) Fuzz Uses

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

Fuzz satisfies fuzz.Interface.

func (*MicroTime) IsZero Uses

func (t *MicroTime) IsZero() bool

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

func (*MicroTime) Marshal Uses

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

Marshal implements the protobuf marshalling interface.

func (MicroTime) MarshalJSON Uses

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

MarshalJSON implements the json.Marshaler interface.

func (MicroTime) MarshalQueryParameter Uses

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

MarshalQueryParameter converts to a URL query parameter value

func (*MicroTime) MarshalTo Uses

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

MarshalTo implements the protobuf marshalling interface.

func (*MicroTime) MarshalToSizedBuffer Uses

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

MarshalToSizedBuffer implements the protobuf marshalling interface.

func (MicroTime) OpenAPISchemaFormat Uses

func (_ MicroTime) OpenAPISchemaFormat() string

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

func (MicroTime) OpenAPISchemaType Uses

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 Uses

func (*MicroTime) ProtoMessage()

func (*MicroTime) ProtoMicroTime Uses

func (m *MicroTime) ProtoMicroTime() *Timestamp

Timestamp returns the Time as a new Timestamp value.

func (*MicroTime) Reset Uses

func (m *MicroTime) Reset()

func (*MicroTime) Size Uses

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

Size implements the protobuf marshalling interface.

func (*MicroTime) Unmarshal Uses

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

Reset implements the protobuf marshalling interface.

func (*MicroTime) UnmarshalJSON Uses

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

UnmarshalJSON implements the json.Unmarshaller interface.

func (*MicroTime) UnmarshalQueryParameter Uses

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

UnmarshalQueryParameter converts from a URL query parameter value to an object

func (*MicroTime) XXX_DiscardUnknown Uses

func (m *MicroTime) XXX_DiscardUnknown()

func (*MicroTime) XXX_Marshal Uses

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

func (*MicroTime) XXX_Merge Uses

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

func (*MicroTime) XXX_Size Uses

func (m *MicroTime) XXX_Size() int

func (*MicroTime) XXX_Unmarshal Uses

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

type Object Uses

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 Uses

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 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 Uses

func (in *ObjectMeta) DeepCopy() *ObjectMeta

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

func (*ObjectMeta) DeepCopyInto Uses

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 Uses

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

func (*ObjectMeta) GetAnnotations Uses

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

func (*ObjectMeta) GetClusterName Uses

func (meta *ObjectMeta) GetClusterName() string

func (*ObjectMeta) GetCreationTimestamp Uses

func (meta *ObjectMeta) GetCreationTimestamp() Time

func (*ObjectMeta) GetDeletionGracePeriodSeconds Uses

func (meta *ObjectMeta) GetDeletionGracePeriodSeconds() *int64

func (*ObjectMeta) GetDeletionTimestamp Uses

func (meta *ObjectMeta) GetDeletionTimestamp() *Time

func (*ObjectMeta) GetFinalizers Uses

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

func (*ObjectMeta) GetGenerateName Uses

func (meta *ObjectMeta) GetGenerateName() string

func (*ObjectMeta) GetGeneration Uses

func (meta *ObjectMeta) GetGeneration() int64

func (*ObjectMeta) GetLabels Uses

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

func (*ObjectMeta) GetManagedFields Uses

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

func (*ObjectMeta) GetName Uses

func (meta *ObjectMeta) GetName() string

func (*ObjectMeta) GetNamespace Uses

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 Uses

func (obj *ObjectMeta) GetObjectMeta() Object

func (*ObjectMeta) GetOwnerReferences Uses

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

func (*ObjectMeta) GetResourceVersion Uses

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

func (*ObjectMeta) GetUID Uses

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

func (*ObjectMeta) Marshal Uses

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

func (*ObjectMeta) MarshalTo Uses

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

func (*ObjectMeta) MarshalToSizedBuffer Uses

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

func (*ObjectMeta) ProtoMessage Uses

func (*ObjectMeta) ProtoMessage()

func (*ObjectMeta) Reset Uses

func (m *ObjectMeta) Reset()

func (*ObjectMeta) SetAnnotations Uses

func (meta *ObjectMeta) SetAnnotations(annotations map[string]string)

func (*ObjectMeta) SetClusterName Uses

func (meta *ObjectMeta) SetClusterName(clusterName string)

func (*ObjectMeta) SetCreationTimestamp Uses

func (meta *ObjectMeta) SetCreationTimestamp(creationTimestamp Time)

func (*ObjectMeta) SetDeletionGracePeriodSeconds Uses

func (meta *ObjectMeta) SetDeletionGracePeriodSeconds(deletionGracePeriodSeconds *int64)

func (*ObjectMeta) SetDeletionTimestamp Uses

func (meta *ObjectMeta) SetDeletionTimestamp(deletionTimestamp *Time)

func (*ObjectMeta) SetFinalizers Uses

func (meta *ObjectMeta) SetFinalizers(finalizers []string)

func (*ObjectMeta) SetGenerateName Uses

func (meta *ObjectMeta) SetGenerateName(generateName string)

func (*ObjectMeta) SetGeneration Uses

func (meta *ObjectMeta) SetGeneration(generation int64)

func (*ObjectMeta) SetLabels Uses

func (meta *ObjectMeta) SetLabels(labels map[string]string)

func (*ObjectMeta) SetManagedFields Uses

func (meta *ObjectMeta) SetManagedFields(managedFields []ManagedFieldsEntry)

func (*ObjectMeta) SetName Uses

func (meta *ObjectMeta) SetName(name string)

func (*ObjectMeta) SetNamespace Uses

func (meta *ObjectMeta) SetNamespace(namespace string)

func (*ObjectMeta) SetOwnerReferences Uses

func (meta *ObjectMeta) SetOwnerReferences(references []OwnerReference)

func (*ObjectMeta) SetResourceVersion Uses

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

func (*ObjectMeta) SetUID Uses

func (meta *ObjectMeta) SetUID(uid types.UID)

func (*ObjectMeta) Size Uses

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

func (*ObjectMeta) String Uses

func (this *ObjectMeta) String() string

func (ObjectMeta) SwaggerDoc Uses

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

func (*ObjectMeta) Unmarshal Uses

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

func (*ObjectMeta) XXX_DiscardUnknown Uses

func (m *ObjectMeta) XXX_DiscardUnknown()

func (*ObjectMeta) XXX_Marshal Uses

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

func (*ObjectMeta) XXX_Merge Uses

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

func (*ObjectMeta) XXX_Size Uses

func (m *ObjectMeta) XXX_Size() int

func (*ObjectMeta) XXX_Unmarshal Uses

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

type ObjectMetaAccessor Uses

type ObjectMetaAccessor interface {
    GetObjectMeta() Object
}

TODO: move this, Object, List, and Type to a different package

type OwnerReference Uses

type OwnerReference struct {
    // API version of the referent.
    APIVersion string `json:"apiVersion" protobuf:"bytes,5,opt,name=apiVersion"`
    // Kind of the referent.
    // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
    Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"`
    // Name of the referent.
    // More info: http://kubernetes.io/docs/user-guide/identifiers#names
    Name string `json:"name" protobuf:"bytes,3,opt,name=name"`
    // UID of the referent.
    // More info: http://kubernetes.io/docs/user-guide/identifiers#uids
    UID types.UID `json:"uid" protobuf:"bytes,4,opt,name=uid,casttype=k8s.io/apimachinery/pkg/types.UID"`
    // If true, this reference points to the managing controller.
    // +optional
    Controller *bool `json:"controller,omitempty" protobuf:"varint,6,opt,name=controller"`
    // If true, AND if the owner has the "foregroundDeletion" finalizer, then
    // the owner cannot be deleted from the key-value store until this
    // reference is removed.
    // Defaults to false.
    // To set this field, a user needs "delete" permission of the owner,
    // otherwise 422 (Unprocessable Entity) will be returned.
    // +optional
    BlockOwnerDeletion *bool `json:"blockOwnerDeletion,omitempty" protobuf:"varint,7,opt,name=blockOwnerDeletion"`
}

OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.

func GetControllerOf Uses

func GetControllerOf(controllee Object) *OwnerReference

GetControllerOf returns a pointer to a copy of the controllerRef if controllee has a controller

func GetControllerOfNoCopy Uses

func GetControllerOfNoCopy(controllee Object) *OwnerReference

GetControllerOf returns a pointer to the controllerRef if controllee has a controller

func NewControllerRef Uses

func NewControllerRef(owner Object, gvk schema.GroupVersionKind) *OwnerReference

NewControllerRef creates an OwnerReference pointing to the given owner.

func (*OwnerReference) DeepCopy Uses

func (in *OwnerReference) DeepCopy() *OwnerReference

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

func (*OwnerReference) DeepCopyInto Uses

func (in *OwnerReference) DeepCopyInto(out *OwnerReference)

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

func (*OwnerReference) Descriptor Uses

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

func (*OwnerReference) Marshal Uses

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

func (*OwnerReference) MarshalTo Uses

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

func (*OwnerReference) MarshalToSizedBuffer Uses

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

func (*OwnerReference) ProtoMessage Uses

func (*OwnerReference) ProtoMessage()

func (*OwnerReference) Reset Uses

func (m *OwnerReference) Reset()

func (*OwnerReference) Size Uses

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

func (*OwnerReference) String Uses

func (this *OwnerReference) String() string

func (OwnerReference) SwaggerDoc Uses

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

func (*OwnerReference) Unmarshal Uses

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

func (*OwnerReference) XXX_DiscardUnknown Uses

func (m *OwnerReference) XXX_DiscardUnknown()

func (*OwnerReference) XXX_Marshal Uses

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

func (*OwnerReference) XXX_Merge Uses

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

func (*OwnerReference) XXX_Size Uses

func (m *OwnerReference) XXX_Size() int

func (*OwnerReference) XXX_Unmarshal Uses

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

type PartialObjectMetadata Uses

type PartialObjectMetadata struct {
    TypeMeta `json:",inline"`
    // Standard object's metadata.
    // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
    // +optional
    ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
}

PartialObjectMetadata is a generic representation of any object with ObjectMeta. It allows clients to get access to a particular ObjectMeta schema without knowing the details of the version. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*PartialObjectMetadata) DeepCopy Uses

func (in *PartialObjectMetadata) DeepCopy() *PartialObjectMetadata

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

func (*PartialObjectMetadata) DeepCopyInto Uses

func (in *PartialObjectMetadata) DeepCopyInto(out *PartialObjectMetadata)

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

func (*PartialObjectMetadata) DeepCopyObject Uses

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

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

func (*PartialObjectMetadata) Descriptor Uses

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

func (*PartialObjectMetadata) Marshal Uses

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

func (*PartialObjectMetadata) MarshalTo Uses

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

func (*PartialObjectMetadata) MarshalToSizedBuffer Uses

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

func (*PartialObjectMetadata) ProtoMessage Uses

func (*PartialObjectMetadata) ProtoMessage()

func (*PartialObjectMetadata) Reset Uses

func (m *PartialObjectMetadata) Reset()

func (*PartialObjectMetadata) Size Uses

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

func (*PartialObjectMetadata) String Uses

func (this *PartialObjectMetadata) String() string

func (PartialObjectMetadata) SwaggerDoc Uses

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

func (*PartialObjectMetadata) Unmarshal Uses

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

func (*PartialObjectMetadata) XXX_DiscardUnknown Uses

func (m *PartialObjectMetadata) XXX_DiscardUnknown()

func (*PartialObjectMetadata) XXX_Marshal Uses

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

func (*PartialObjectMetadata) XXX_Merge Uses

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

func (*PartialObjectMetadata) XXX_Size Uses

func (m *PartialObjectMetadata) XXX_Size() int

func (*PartialObjectMetadata) XXX_Unmarshal Uses

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

type PartialObjectMetadataList Uses

type PartialObjectMetadataList 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"`

    // items contains each of the included items.
    Items []PartialObjectMetadata `json:"items" protobuf:"bytes,2,rep,name=items"`
}

PartialObjectMetadataList contains a list of objects containing only their metadata +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*PartialObjectMetadataList) DeepCopy Uses

func (in *PartialObjectMetadataList) DeepCopy() *PartialObjectMetadataList

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

func (*PartialObjectMetadataList) DeepCopyInto Uses

func (in *PartialObjectMetadataList) DeepCopyInto(out *PartialObjectMetadataList)

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

func (*PartialObjectMetadataList) DeepCopyObject Uses

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

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

func (*PartialObjectMetadataList) Descriptor Uses

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

func (*PartialObjectMetadataList) Marshal Uses

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

func (*PartialObjectMetadataList) MarshalTo Uses

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

func (*PartialObjectMetadataList) MarshalToSizedBuffer Uses

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

func (*PartialObjectMetadataList) ProtoMessage Uses

func (*PartialObjectMetadataList) ProtoMessage()

func (*PartialObjectMetadataList) Reset Uses

func (m *PartialObjectMetadataList) Reset()

func (*PartialObjectMetadataList) Size Uses

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

func (*PartialObjectMetadataList) String Uses

func (this *PartialObjectMetadataList) String() string

func (PartialObjectMetadataList) SwaggerDoc Uses

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

func (*PartialObjectMetadataList) Unmarshal Uses

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

func (*PartialObjectMetadataList) XXX_DiscardUnknown Uses

func (m *PartialObjectMetadataList) XXX_DiscardUnknown()

func (*PartialObjectMetadataList) XXX_Marshal Uses

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

func (*PartialObjectMetadataList) XXX_Merge Uses

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

func (*PartialObjectMetadataList) XXX_Size Uses

func (m *PartialObjectMetadataList) XXX_Size() int

func (*PartialObjectMetadataList) XXX_Unmarshal Uses

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

type Patch Uses

type Patch struct{}

Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.

func (*Patch) DeepCopy Uses

func (in *Patch) DeepCopy() *Patch

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

func (*Patch) DeepCopyInto Uses

func (in *Patch) DeepCopyInto(out *Patch)

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

func (*Patch) Descriptor Uses

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

func (*Patch) Marshal Uses

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

func (*Patch) MarshalTo Uses

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

func (*Patch) MarshalToSizedBuffer Uses

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

func (*Patch) ProtoMessage Uses

func (*Patch) ProtoMessage()

func (*Patch) Reset Uses

func (m *Patch) Reset()

func (*Patch) Size Uses

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

func (*Patch) String Uses

func (this *Patch) String() string

func (Patch) SwaggerDoc Uses

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

func (*Patch) Unmarshal Uses

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

func (*Patch) XXX_DiscardUnknown Uses

func (m *Patch) XXX_DiscardUnknown()

func (*Patch) XXX_Marshal Uses

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

func (*Patch) XXX_Merge Uses

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

func (*Patch) XXX_Size Uses

func (m *Patch) XXX_Size() int

func (*Patch) XXX_Unmarshal Uses

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

type PatchOptions Uses

type PatchOptions 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"`

    // Force is going to "force" Apply requests. It means user will
    // re-acquire conflicting fields owned by other people. Force
    // flag must be unset for non-apply patch requests.
    // +optional
    Force *bool `json:"force,omitempty" protobuf:"varint,2,opt,name=force"`

    // 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. This
    // field is required for apply requests
    // (application/apply-patch) but optional for non-apply patch
    // types (JsonPatch, MergePatch, StrategicMergePatch).
    // +optional
    FieldManager string `json:"fieldManager,omitempty" protobuf:"bytes,3,name=fieldManager"`
}

PatchOptions may be provided when patching an API object. PatchOptions is meant to be a superset of UpdateOptions.

func (*PatchOptions) DeepCopy Uses

func (in *PatchOptions) DeepCopy() *PatchOptions

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

func (*PatchOptions) DeepCopyInto Uses

func (in *PatchOptions) DeepCopyInto(out *PatchOptions)

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

func (*PatchOptions) DeepCopyObject Uses

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

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

func (*PatchOptions) Descriptor Uses

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

func (*PatchOptions) Marshal Uses

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

func (*PatchOptions) MarshalTo Uses

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

func (*PatchOptions) MarshalToSizedBuffer Uses

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

func (*PatchOptions) ProtoMessage Uses

func (*PatchOptions) ProtoMessage()

func (*PatchOptions) Reset Uses

func (m *PatchOptions) Reset()

func (*PatchOptions) Size Uses

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

func (*PatchOptions) String Uses

func (this *PatchOptions) String() string

func (PatchOptions) SwaggerDoc Uses

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

func (*PatchOptions) Unmarshal Uses

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

func (*PatchOptions) XXX_DiscardUnknown Uses

func (m *PatchOptions) XXX_DiscardUnknown()

func (*PatchOptions) XXX_Marshal Uses

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

func (*PatchOptions) XXX_Merge Uses

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

func (*PatchOptions) XXX_Size Uses

func (m *PatchOptions) XXX_Size() int

func (*PatchOptions) XXX_Unmarshal Uses

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

type Preconditions Uses

type Preconditions struct {
    // Specifies the target UID.
    // +optional
    UID *types.UID `json:"uid,omitempty" protobuf:"bytes,1,opt,name=uid,casttype=k8s.io/apimachinery/pkg/types.UID"`
    // Specifies the target ResourceVersion
    // +optional
    ResourceVersion *string `json:"resourceVersion,omitempty" protobuf:"bytes,2,opt,name=resourceVersion"`
}

Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.

func NewUIDPreconditions Uses

func NewUIDPreconditions(uid string) *Preconditions

NewUIDPreconditions returns a Preconditions with UID set.

func (*Preconditions) DeepCopy Uses

func (in *Preconditions) DeepCopy() *Preconditions

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

func (*Preconditions) DeepCopyInto Uses

func (in *Preconditions) DeepCopyInto(out *Preconditions)

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

func (*Preconditions) Descriptor Uses

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

func (*Preconditions) Marshal Uses

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

func (*Preconditions) MarshalTo Uses

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

func (*Preconditions) MarshalToSizedBuffer Uses

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

func (*Preconditions) ProtoMessage Uses

func (*Preconditions) ProtoMessage()

func (*Preconditions) Reset Uses

func (m *Preconditions) Reset()

func (*Preconditions) Size Uses

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

func (*Preconditions) String Uses

func (this *Preconditions) String() string

func (Preconditions) SwaggerDoc Uses

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

func (*Preconditions) Unmarshal Uses

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

func (*Preconditions) XXX_DiscardUnknown Uses

func (m *Preconditions) XXX_DiscardUnknown()

func (*Preconditions) XXX_Marshal Uses

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

func (*Preconditions) XXX_Merge Uses

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

func (*Preconditions) XXX_Size Uses

func (m *Preconditions) XXX_Size() int

func (*Preconditions) XXX_Unmarshal Uses

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

type RootPaths Uses

type RootPaths struct {
    // paths are the paths available at root.
    Paths []string `json:"paths" protobuf:"bytes,1,rep,name=paths"`
}

RootPaths lists the paths available at root. For example: "/healthz", "/apis".

func (*RootPaths) DeepCopy Uses

func (in *RootPaths) DeepCopy() *RootPaths

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

func (*RootPaths) DeepCopyInto Uses

func (in *RootPaths) DeepCopyInto(out *RootPaths)

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

func (*RootPaths) Descriptor Uses

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

func (*RootPaths) Marshal Uses

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

func (*RootPaths) MarshalTo Uses

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

func (*RootPaths) MarshalToSizedBuffer Uses

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

func (*RootPaths) ProtoMessage Uses

func (*RootPaths) ProtoMessage()

func (*RootPaths) Reset Uses

func (m *RootPaths) Reset()

func (*RootPaths) Size Uses

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

func (*RootPaths) String Uses

func (this *RootPaths) String() string

func (RootPaths) SwaggerDoc Uses

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

func (*RootPaths) Unmarshal Uses

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

func (*RootPaths) XXX_DiscardUnknown Uses

func (m *RootPaths) XXX_DiscardUnknown()

func (*RootPaths) XXX_Marshal Uses

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

func (*RootPaths) XXX_Merge Uses

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

func (*RootPaths) XXX_Size Uses

func (m *RootPaths) XXX_Size() int

func (*RootPaths) XXX_Unmarshal Uses

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

type RowConditionType Uses

type RowConditionType string
const (
    // RowCompleted means the underlying resource has reached completion and may be given less
    // visual priority than other resources.
    RowCompleted RowConditionType = "Completed"
)

These are valid conditions of a row. This list is not exhaustive and new conditions may be included by other resources.

type ServerAddressByClientCIDR Uses

type ServerAddressByClientCIDR struct {
    // The CIDR with which clients can match their IP to figure out the server address that they should use.
    ClientCIDR string `json:"clientCIDR" protobuf:"bytes,1,opt,name=clientCIDR"`
    // Address of this server, suitable for a client that matches the above CIDR.
    // This can be a hostname, hostname:port, IP or IP:port.
    ServerAddress string `json:"serverAddress" protobuf:"bytes,2,opt,name=serverAddress"`
}

ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.

func (*ServerAddressByClientCIDR) DeepCopy Uses

func (in *ServerAddressByClientCIDR) DeepCopy() *ServerAddressByClientCIDR

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

func (*ServerAddressByClientCIDR) DeepCopyInto Uses

func (in *ServerAddressByClientCIDR) DeepCopyInto(out *ServerAddressByClientCIDR)

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

func (*ServerAddressByClientCIDR) Descriptor Uses

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

func (*ServerAddressByClientCIDR) Marshal Uses

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

func (*ServerAddressByClientCIDR) MarshalTo Uses

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

func (*ServerAddressByClientCIDR) MarshalToSizedBuffer Uses

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

func (*ServerAddressByClientCIDR) ProtoMessage Uses

func (*ServerAddressByClientCIDR) ProtoMessage()

func (*ServerAddressByClientCIDR) Reset Uses

func (m *ServerAddressByClientCIDR) Reset()

func (*ServerAddressByClientCIDR) Size Uses

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

func (*ServerAddressByClientCIDR) String Uses

func (this *ServerAddressByClientCIDR) String() string

func (ServerAddressByClientCIDR) SwaggerDoc Uses

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

func (*ServerAddressByClientCIDR) Unmarshal Uses

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

func (*ServerAddressByClientCIDR) XXX_DiscardUnknown Uses

func (m *ServerAddressByClientCIDR) XXX_DiscardUnknown()

func (*ServerAddressByClientCIDR) XXX_Marshal Uses

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

func (*ServerAddressByClientCIDR) XXX_Merge Uses

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

func (*ServerAddressByClientCIDR) XXX_Size Uses

func (m *ServerAddressByClientCIDR) XXX_Size() int

func (*ServerAddressByClientCIDR) XXX_Unmarshal Uses

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

type Status Uses

type Status 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"`

    // Status of the operation.
    // One of: "Success" or "Failure".
    // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
    // +optional
    Status string `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"`
    // A human-readable description of the status of this operation.
    // +optional
    Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"`
    // A machine-readable description of why this operation is in the
    // "Failure" status. If this value is empty there
    // is no information available. A Reason clarifies an HTTP status
    // code but does not override it.
    // +optional
    Reason StatusReason `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason,casttype=StatusReason"`
    // Extended data associated with the reason.  Each reason may define its
    // own extended details. This field is optional and the data returned
    // is not guaranteed to conform to any schema except that defined by
    // the reason type.
    // +optional
    Details *StatusDetails `json:"details,omitempty" protobuf:"bytes,5,opt,name=details"`
    // Suggested HTTP return code for this status, 0 if not set.
    // +optional
    Code int32 `json:"code,omitempty" protobuf:"varint,6,opt,name=code"`
}

Status is a return value for calls that don't return other objects.

func (*Status) DeepCopy Uses

func (in *Status) DeepCopy() *Status

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

func (*Status) DeepCopyInto Uses

func (in *Status) DeepCopyInto(out *Status)

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

func (*Status) DeepCopyObject Uses

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

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

func (*Status) Descriptor Uses

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

func (*Status) Marshal Uses

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

func (*Status) MarshalTo Uses

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

func (*Status) MarshalToSizedBuffer Uses

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

func (*Status) ProtoMessage Uses

func (*Status) ProtoMessage()

func (*Status) Reset Uses

func (m *Status) Reset()

func (*Status) Size Uses

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

func (*Status) String Uses

func (this *Status) String() string

func (Status) SwaggerDoc Uses

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

func (*Status) Unmarshal Uses

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

func (*Status) XXX_DiscardUnknown Uses

func (m *Status) XXX_DiscardUnknown()

func (*Status) XXX_Marshal Uses

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

func (*Status) XXX_Merge Uses

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

func (*Status) XXX_Size Uses

func (m *Status) XXX_Size() int

func (*Status) XXX_Unmarshal Uses

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

type StatusCause Uses

type StatusCause struct {
    // A machine-readable description of the cause of the error. If this value is
    // empty there is no information available.
    // +optional
    Type CauseType `json:"reason,omitempty" protobuf:"bytes,1,opt,name=reason,casttype=CauseType"`
    // A human-readable description of the cause of the error.  This field may be
    // presented as-is to a reader.
    // +optional
    Message string `json:"message,omitempty" protobuf:"bytes,2,opt,name=message"`
    // The field of the resource that has caused this error, as named by its JSON
    // serialization. May include dot and postfix notation for nested attributes.
    // Arrays are zero-indexed.  Fields may appear more than once in an array of
    // causes due to fields having multiple errors.
    // Optional.
    //
    // Examples:
    //   "name" - the field "name" on the current resource
    //   "items[0].name" - the field "name" on the first array entry in "items"
    // +optional
    Field string `json:"field,omitempty" protobuf:"bytes,3,opt,name=field"`
}

StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.

func (*StatusCause) DeepCopy Uses

func (in *StatusCause) DeepCopy() *StatusCause

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

func (*StatusCause) DeepCopyInto Uses

func (in *StatusCause) DeepCopyInto(out *StatusCause)

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

func (*StatusCause) Descriptor Uses

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

func (*StatusCause) Marshal Uses

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

func (*StatusCause) MarshalTo Uses

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

func (*StatusCause) MarshalToSizedBuffer Uses

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

func (*StatusCause) ProtoMessage Uses

func (*StatusCause) ProtoMessage()

func (*StatusCause) Reset Uses

func (m *StatusCause) Reset()

func (*StatusCause) Size Uses

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

func (*StatusCause) String Uses

func (this *StatusCause) String() string

func (StatusCause) SwaggerDoc Uses

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

func (*StatusCause) Unmarshal Uses

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

func (*StatusCause) XXX_DiscardUnknown Uses

func (m *StatusCause) XXX_DiscardUnknown()

func (*StatusCause) XXX_Marshal Uses

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

func (*StatusCause) XXX_Merge Uses

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

func (*StatusCause) XXX_Size Uses

func (m *StatusCause) XXX_Size() int

func (*StatusCause) XXX_Unmarshal Uses

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

type StatusDetails Uses

type StatusDetails struct {
    // The name attribute of the resource associated with the status StatusReason
    // (when there is a single name which can be described).
    // +optional
    Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
    // The group attribute of the resource associated with the status StatusReason.
    // +optional
    Group string `json:"group,omitempty" protobuf:"bytes,2,opt,name=group"`
    // The kind attribute of the resource associated with the status StatusReason.
    // On some operations may differ from the requested resource Kind.
    // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
    // +optional
    Kind string `json:"kind,omitempty" protobuf:"bytes,3,opt,name=kind"`
    // UID of the resource.
    // (when there is a single resource which can be described).
    // More info: http://kubernetes.io/docs/user-guide/identifiers#uids
    // +optional
    UID types.UID `json:"uid,omitempty" protobuf:"bytes,6,opt,name=uid,casttype=k8s.io/apimachinery/pkg/types.UID"`
    // The Causes array includes more details associated with the StatusReason
    // failure. Not all StatusReasons may provide detailed causes.
    // +optional
    Causes []StatusCause `json:"causes,omitempty" protobuf:"bytes,4,rep,name=causes"`
    // If specified, the time in seconds before the operation should be retried. Some errors may indicate
    // the client must take an alternate action - for those errors this field may indicate how long to wait
    // before taking the alternate action.
    // +optional
    RetryAfterSeconds int32 `json:"retryAfterSeconds,omitempty" protobuf:"varint,5,opt,name=retryAfterSeconds"`
}

StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.

func (*StatusDetails) DeepCopy Uses

func (in *StatusDetails) DeepCopy() *StatusDetails

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

func (*StatusDetails) DeepCopyInto Uses

func (in *StatusDetails) DeepCopyInto(out *StatusDetails)

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

func (*StatusDetails) Descriptor Uses

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

func (*StatusDetails) Marshal Uses

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

func (*StatusDetails) MarshalTo Uses

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

func (*StatusDetails) MarshalToSizedBuffer Uses

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

func (*StatusDetails) ProtoMessage Uses

func (*StatusDetails) ProtoMessage()

func (*StatusDetails) Reset Uses

func (m *StatusDetails) Reset()

func (*StatusDetails) Size Uses

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

func (*StatusDetails) String Uses

func (this *StatusDetails) String() string

func (StatusDetails) SwaggerDoc Uses

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

func (*StatusDetails) Unmarshal Uses

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

func (*StatusDetails) XXX_DiscardUnknown Uses

func (m *StatusDetails) XXX_DiscardUnknown()

func (*StatusDetails) XXX_Marshal Uses

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

func (*StatusDetails) XXX_Merge Uses

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

func (*StatusDetails) XXX_Size Uses

func (m *StatusDetails) XXX_Size() int

func (*StatusDetails) XXX_Unmarshal Uses

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

type StatusReason Uses

type StatusReason string

StatusReason is an enumeration of possible failure causes. Each StatusReason must map to a single HTTP status code, but multiple reasons may map to the same HTTP status code. TODO: move to apiserver

const (
    // StatusReasonUnknown means the server has declined to indicate a specific reason.
    // The details field may contain other information about this error.
    // Status code 500.
    StatusReasonUnknown StatusReason = ""

    // StatusReasonUnauthorized means the server can be reached and understood the request, but requires
    // the user to present appropriate authorization credentials (identified by the WWW-Authenticate header)
    // in order for the action to be completed. If the user has specified credentials on the request, the
    // server considers them insufficient.
    // Status code 401
    StatusReasonUnauthorized StatusReason = "Unauthorized"

    // StatusReasonForbidden means the server can be reached and understood the request, but refuses
    // to take any further action.  It is the result of the server being configured to deny access for some reason
    // to the requested resource by the client.
    // Details (optional):
    //   "kind" string - the kind attribute of the forbidden resource
    //                   on some operations may differ from the requested
    //                   resource.
    //   "id"   string - the identifier of the forbidden resource
    // Status code 403
    StatusReasonForbidden StatusReason = "Forbidden"

    // StatusReasonNotFound means one or more resources required for this operation
    // could not be found.
    // Details (optional):
    //   "kind" string - the kind attribute of the missing resource
    //                   on some operations may differ from the requested
    //                   resource.
    //   "id"   string - the identifier of the missing resource
    // Status code 404
    StatusReasonNotFound StatusReason = "NotFound"

    // StatusReasonAlreadyExists means the resource you are creating already exists.
    // Details (optional):
    //   "kind" string - the kind attribute of the conflicting resource
    //   "id"   string - the identifier of the conflicting resource
    // Status code 409
    StatusReasonAlreadyExists StatusReason = "AlreadyExists"

    // StatusReasonConflict means the requested operation cannot be completed
    // due to a conflict in the operation. The client may need to alter the
    // request. Each resource may define custom details that indicate the
    // nature of the conflict.
    // Status code 409
    StatusReasonConflict StatusReason = "Conflict"

    // StatusReasonGone means the item is no longer available at the server and no
    // forwarding address is known.
    // Status code 410
    StatusReasonGone StatusReason = "Gone"

    // StatusReasonInvalid means the requested create or update operation cannot be
    // completed due to invalid data provided as part of the request. The client may
    // need to alter the request. When set, the client may use the StatusDetails
    // message field as a summary of the issues encountered.
    // Details (optional):
    //   "kind" string - the kind attribute of the invalid resource
    //   "id"   string - the identifier of the invalid resource
    //   "causes"      - one or more StatusCause entries indicating the data in the
    //                   provided resource that was invalid.  The code, message, and
    //                   field attributes will be set.
    // Status code 422
    StatusReasonInvalid StatusReason = "Invalid"

    // StatusReasonServerTimeout means the server can be reached and understood the request,
    // but cannot complete the action in a reasonable time. The client should retry the request.
    // This is may be due to temporary server load or a transient communication issue with
    // another server. Status code 500 is used because the HTTP spec provides no suitable
    // server-requested client retry and the 5xx class represents actionable errors.
    // Details (optional):
    //   "kind" string - the kind attribute of the resource being acted on.
    //   "id"   string - the operation that is being attempted.
    //   "retryAfterSeconds" int32 - the number of seconds before the operation should be retried
    // Status code 500
    StatusReasonServerTimeout StatusReason = "ServerTimeout"

    // StatusReasonTimeout means that the request could not be completed within the given time.
    // Clients can get this response only when they specified a timeout param in the request,
    // or if the server cannot complete the operation within a reasonable amount of time.
    // The request might succeed with an increased value of timeout param. The client *should*
    // wait at least the number of seconds specified by the retryAfterSeconds field.
    // Details (optional):
    //   "retryAfterSeconds" int32 - the number of seconds before the operation should be retried
    // Status code 504
    StatusReasonTimeout StatusReason = "Timeout"

    // StatusReasonTooManyRequests means the server experienced too many requests within a
    // given window and that the client must wait to perform the action again. A client may
    // always retry the request that led to this error, although the client should wait at least
    // the number of seconds specified by the retryAfterSeconds field.
    // Details (optional):
    //   "retryAfterSeconds" int32 - the number of seconds before the operation should be retried
    // Status code 429
    StatusReasonTooManyRequests StatusReason = "TooManyRequests"

    // StatusReasonBadRequest means that the request itself was invalid, because the request
    // doesn't make any sense, for example deleting a read-only object.  This is different than
    // StatusReasonInvalid above which indicates that the API call could possibly succeed, but the
    // data was invalid.  API calls that return BadRequest can never succeed.
    // Status code 400
    StatusReasonBadRequest StatusReason = "BadRequest"

    // StatusReasonMethodNotAllowed means that the action the client attempted to perform on the
    // resource was not supported by the code - for instance, attempting to delete a resource that
    // can only be created. API calls that return MethodNotAllowed can never succeed.
    // Status code 405
    StatusReasonMethodNotAllowed StatusReason = "MethodNotAllowed"

    // StatusReasonNotAcceptable means that the accept types indicated by the client were not acceptable
    // to the server - for instance, attempting to receive protobuf for a resource that supports only json and yaml.
    // API calls that return NotAcceptable can never succeed.
    // Status code 406
    StatusReasonNotAcceptable StatusReason = "NotAcceptable"

    // StatusReasonRequestEntityTooLarge means that the request entity is too large.
    // Status code 413
    StatusReasonRequestEntityTooLarge StatusReason = "RequestEntityTooLarge"

    // StatusReasonUnsupportedMediaType means that the content type sent by the client is not acceptable
    // to the server - for instance, attempting to send protobuf for a resource that supports only json and yaml.
    // API calls that return UnsupportedMediaType can never succeed.
    // Status code 415
    StatusReasonUnsupportedMediaType StatusReason = "UnsupportedMediaType"

    // StatusReasonInternalError indicates that an internal error occurred, it is unexpected
    // and the outcome of the call is unknown.
    // Details (optional):
    //   "causes" - The original error
    // Status code 500
    StatusReasonInternalError StatusReason = "InternalError"

    // StatusReasonExpired indicates that the request is invalid because the content you are requesting
    // has expired and is no longer available. It is typically associated with watches that can't be
    // serviced.
    // Status code 410 (gone)
    StatusReasonExpired StatusReason = "Expired"

    // StatusReasonServiceUnavailable means that the request itself was valid,
    // but the requested service is unavailable at this time.
    // Retrying the request after some time might succeed.
    // Status code 503
    StatusReasonServiceUnavailable StatusReason = "ServiceUnavailable"
)

type Table Uses

type Table 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"`

    // columnDefinitions describes each column in the returned items array. The number of cells per row
    // will always match the number of column definitions.
    ColumnDefinitions []TableColumnDefinition `json:"columnDefinitions"`
    // rows is the list of items in the table.
    Rows []TableRow `json:"rows"`
}

Table is a tabular representation of a set of API resources. The server transforms the object into a set of preferred columns for quickly reviewing the objects. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +protobuf=false

func (*Table) DeepCopy Uses

func (in *Table) DeepCopy() *Table

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

func (*Table) DeepCopyInto Uses

func (in *Table) DeepCopyInto(out *Table)

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

func (*Table) DeepCopyObject Uses

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

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

func (Table) SwaggerDoc Uses

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

type TableColumnDefinition Uses

type TableColumnDefinition struct {
    // name is a human readable name for the column.
    Name string `json:"name"`
    // type is an OpenAPI type definition for this column, such as number, integer, string, or
    // array.
    // See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
    Type string `json:"type"`
    // format is an optional OpenAPI type modifier for this column. A format modifies the type and
    // imposes additional rules, like date or time formatting for a string. The 'name' format is applied
    // to the primary identifier column which has type 'string' to assist in clients identifying column
    // is the resource name.
    // See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.
    Format string `json:"format"`
    // description is a human readable description of this column.
    Description string `json:"description"`
    // priority is an integer defining the relative importance of this column compared to others. Lower
    // numbers are considered higher priority. Columns that may be omitted in limited space scenarios
    // should be given a higher priority.
    Priority int32 `json:"priority"`
}

TableColumnDefinition contains information about a column returned in the Table. +protobuf=false

func (*TableColumnDefinition) DeepCopy Uses

func (in *TableColumnDefinition) DeepCopy() *TableColumnDefinition

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

func (*TableColumnDefinition) DeepCopyInto Uses

func (in *TableColumnDefinition) DeepCopyInto(out *TableColumnDefinition)

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

func (TableColumnDefinition) SwaggerDoc Uses

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

type TableOptions Uses

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

    // NoHeaders is only exposed for internal callers. It is not included in our OpenAPI definitions
    // and may be removed as a field in a future release.
    NoHeaders bool `json:"-"`

    // includeObject decides whether to include each object along with its columnar information.
    // Specifying "None" will return no object, specifying "Object" will return the full object contents, and
    // specifying "Metadata" (the default) will return the object's metadata in the PartialObjectMetadata kind
    // in version v1beta1 of the meta.k8s.io API group.
    IncludeObject IncludeObjectPolicy `json:"includeObject,omitempty" protobuf:"bytes,1,opt,name=includeObject,casttype=IncludeObjectPolicy"`
}

TableOptions are used when a Table is requested by the caller. +k8s:conversion-gen:explicit-from=net/url.Values +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TableOptions) DeepCopy Uses

func (in *TableOptions) DeepCopy() *TableOptions

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

func (*TableOptions) DeepCopyInto Uses

func (in *TableOptions) DeepCopyInto(out *TableOptions)

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

func (*TableOptions) DeepCopyObject Uses

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

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

func (*TableOptions) Descriptor Uses

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

func (*TableOptions) Marshal Uses

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

func (*TableOptions) MarshalTo Uses

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

func (*TableOptions) MarshalToSizedBuffer Uses

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

func (*TableOptions) ProtoMessage Uses

func (*TableOptions) ProtoMessage()

func (*TableOptions) Reset Uses

func (m *TableOptions) Reset()

func (*TableOptions) Size Uses

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

func (*TableOptions) String Uses

func (this *TableOptions) String() string

func (TableOptions) SwaggerDoc Uses

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

func (*TableOptions) Unmarshal Uses

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

func (*TableOptions) XXX_DiscardUnknown Uses

func (m *TableOptions) XXX_DiscardUnknown()

func (*TableOptions) XXX_Marshal Uses

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

func (*TableOptions) XXX_Merge Uses

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

func (*TableOptions) XXX_Size Uses

func (m *TableOptions) XXX_Size() int

func (*TableOptions) XXX_Unmarshal Uses

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

type TableRow Uses

type TableRow struct {
    // cells will be as wide as the column definitions array and may contain strings, numbers (float64 or
    // int64), booleans, simple maps, lists, or null. See the type field of the column definition for a
    // more detailed description.
    Cells []interface{} `json:"cells"`
    // conditions describe additional status of a row that are relevant for a human user. These conditions
    // apply to the row, not to the object, and will be specific to table output. The only defined
    // condition type is 'Completed', for a row that indicates a resource that has run to completion and
    // can be given less visual priority.
    // +optional
    Conditions []TableRowCondition `json:"conditions,omitempty"`
    // This field contains the requested additional information about each object based on the includeObject
    // policy when requesting the Table. If "None", this field is empty, if "Object" this will be the
    // default serialization of the object for the current API version, and if "Metadata" (the default) will
    // contain the object metadata. Check the returned kind and apiVersion of the object before parsing.
    // The media type of the object will always match the enclosing list - if this as a JSON table, these
    // will be JSON encoded objects.
    // +optional
    Object runtime.RawExtension `json:"object,omitempty"`
}

TableRow is an individual row in a table. +protobuf=false

func (*TableRow) DeepCopy Uses

func (in *TableRow) DeepCopy() *TableRow

func (*TableRow) DeepCopyInto Uses

func (in *TableRow) DeepCopyInto(out *TableRow)

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

func (TableRow) SwaggerDoc Uses

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

type TableRowCondition Uses

type TableRowCondition struct {
    // Type of row condition. The only defined value is 'Completed' indicating that the
    // object this row represents has reached a completed state and may be given less visual
    // priority than other rows. Clients are not required to honor any conditions but should
    // be consistent where possible about handling the conditions.
    Type RowConditionType `json:"type"`
    // Status of the condition, one of True, False, Unknown.
    Status ConditionStatus `json:"status"`
    // (brief) machine readable reason for the condition's last transition.
    // +optional
    Reason string `json:"reason,omitempty"`
    // Human readable message indicating details about last transition.
    // +optional
    Message string `json:"message,omitempty"`
}

TableRowCondition allows a row to be marked with additional information. +protobuf=false

func (*TableRowCondition) DeepCopy Uses

func (in *TableRowCondition) DeepCopy() *TableRowCondition

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

func (*TableRowCondition) DeepCopyInto Uses

func (in *TableRowCondition) DeepCopyInto(out *TableRowCondition)

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

func (TableRowCondition) SwaggerDoc Uses

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

type Time Uses

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

Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.

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

func Date Uses

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

Date returns the Time corresponding to the supplied parameters by wrapping time.Date.

func NewTime Uses

func NewTime(time time.Time) Time

NewTime returns a wrapped instance of the provided time

func Now Uses

func Now() Time

Now returns the current local time.

func Unix Uses

func Unix(sec int64, nsec int64) Time

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

func (*Time) Before Uses

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

Before reports whether the time instant t is before u.

func (*Time) DeepCopy Uses

func (in *Time) DeepCopy() *Time

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

func (*Time) DeepCopyInto Uses

func (t *Time) DeepCopyInto(out *Time)

DeepCopyInto creates a deep-copy of the Time value. The underlying time.Time type is effectively immutable in the time API, so it is safe to copy-by-assign, despite the presence of (unexported) Pointer fields.

func (*Time) Descriptor Uses

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

func (*Time) Equal Uses

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

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

func (*Time) Fuzz Uses

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

Fuzz satisfies fuzz.Interface.

func (*Time) IsZero Uses

func (t *Time) IsZero() bool

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

func (*Time) Marshal Uses

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

Marshal implements the protobuf marshaling interface.

func (Time) MarshalJSON Uses

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

MarshalJSON implements the json.Marshaler interface.

func (Time) MarshalQueryParameter Uses

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

MarshalQueryParameter converts to a URL query parameter value

func (*Time) MarshalTo Uses

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

MarshalTo implements the protobuf marshaling interface.

func (*Time) MarshalToSizedBuffer Uses

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

MarshalToSizedBuffer implements the protobuf reverse marshaling interface.

func (Time) OpenAPISchemaFormat Uses

func (_ Time) OpenAPISchemaFormat() string

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

func (Time) OpenAPISchemaType Uses

func (_ Time) 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 (*Time) ProtoMessage Uses

func (*Time) ProtoMessage()

func (*Time) ProtoTime Uses

func (m *Time) ProtoTime() *Timestamp

Timestamp returns the Time as a new Timestamp value.

func (*Time) Reset Uses

func (m *Time) Reset()

func (Time) Rfc3339Copy Uses

func (t Time) Rfc3339Copy() Time

Rfc3339Copy returns a copy of the Time at second-level precision.

func (*Time) Size Uses

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

Size implements the protobuf marshalling interface.

func (*Time) Unmarshal Uses

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

Reset implements the protobuf marshalling interface.

func (*Time) UnmarshalJSON Uses

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

UnmarshalJSON implements the json.Unmarshaller interface.

func (*Time) UnmarshalQueryParameter Uses

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

UnmarshalQueryParameter converts from a URL query parameter value to an object

func (*Time) XXX_DiscardUnknown Uses

func (m *Time) XXX_DiscardUnknown()

func (*Time) XXX_Marshal Uses

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

func (*Time) XXX_Merge Uses

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

func (*Time) XXX_Size Uses

func (m *Time) XXX_Size() int

func (*Time) XXX_Unmarshal Uses

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

type Timestamp Uses

type Timestamp struct {
    // Represents seconds of UTC time since Unix epoch
    // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
    // 9999-12-31T23:59:59Z inclusive.
    Seconds int64 `json:"seconds" protobuf:"varint,1,opt,name=seconds"`
    // Non-negative fractions of a second at nanosecond resolution. Negative
    // second values with fractions must still have non-negative nanos values
    // that count forward in time. Must be from 0 to 999,999,999
    // inclusive. This field may be limited in precision depending on context.
    Nanos int32 `json:"nanos" protobuf:"varint,2,opt,name=nanos"`
}

Timestamp is a struct that is equivalent to Time, but intended for protobuf marshalling/unmarshalling. It is generated into a serialization that matches Time. Do not use in Go structs.

func (*Timestamp) DeepCopy Uses

func (in *Timestamp) DeepCopy() *Timestamp

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

func (*Timestamp) DeepCopyInto Uses

func (in *Timestamp) DeepCopyInto(out *Timestamp)

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

func (*Timestamp) Descriptor Uses

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

func (*Timestamp) Marshal Uses

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

func (*Timestamp) MarshalTo Uses

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

func (*Timestamp) MarshalToSizedBuffer Uses

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

func (*Timestamp) ProtoMessage Uses

func (*Timestamp) ProtoMessage()

func (*Timestamp) Reset Uses

func (m *Timestamp) Reset()

func (*Timestamp) Size Uses

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

func (*Timestamp) String Uses

func (this *Timestamp) String() string

func (*Timestamp) Unmarshal Uses

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

func (*Timestamp) XXX_DiscardUnknown Uses

func (m *Timestamp) XXX_DiscardUnknown()

func (*Timestamp) XXX_Marshal Uses

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

func (*Timestamp) XXX_Merge Uses

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

func (*Timestamp) XXX_Size Uses

func (m *Timestamp) XXX_Size() int

func (*Timestamp) XXX_Unmarshal Uses

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

type Type Uses

type Type interface {
    GetAPIVersion() string
    SetAPIVersion(version string)
    GetKind() string
    SetKind(kind string)
}

Type exposes the type and APIVersion of versioned or internal API objects. TODO: move this, and TypeMeta and ListMeta, to a different package

type TypeMeta Uses

type TypeMeta struct {
    // Kind is a string value representing the REST resource this object represents.
    // Servers may infer this from the endpoint the client submits requests to.
    // Cannot be updated.
    // In CamelCase.
    // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
    // +optional
    Kind string `json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"`

    // APIVersion defines the versioned schema of this representation of an object.
    // Servers should convert recognized schemas to the latest internal value, and
    // may reject unrecognized values.
    // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
    // +optional
    APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt,name=apiVersion"`
}

TypeMeta describes an individual object in an API response or request with strings representing the type of the object and its API schema version. Structures that are versioned or persisted should inline TypeMeta.

+k8s:deepcopy-gen=false

func (*TypeMeta) Descriptor Uses

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

func (*TypeMeta) GetObjectKind Uses

func (obj *TypeMeta) GetObjectKind() schema.ObjectKind

func (*TypeMeta) GroupVersionKind Uses

func (obj *TypeMeta) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta

func (*TypeMeta) Marshal Uses

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

func (*TypeMeta) MarshalTo Uses

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

func (*TypeMeta) MarshalToSizedBuffer Uses

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

func (*TypeMeta) ProtoMessage Uses

func (*TypeMeta) ProtoMessage()

func (*TypeMeta) Reset Uses

func (m *TypeMeta) Reset()

func (*TypeMeta) SetGroupVersionKind Uses

func (obj *TypeMeta) SetGroupVersionKind(gvk schema.GroupVersionKind)

SetGroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta

func (*TypeMeta) Size Uses

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

func (*TypeMeta) String Uses

func (this *TypeMeta) String() string

func (TypeMeta) SwaggerDoc Uses

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

func (*TypeMeta) Unmarshal Uses

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

func (*TypeMeta) XXX_DiscardUnknown Uses

func (m *TypeMeta) XXX_DiscardUnknown()

func (*TypeMeta) XXX_Marshal Uses

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

func (*TypeMeta) XXX_Merge Uses

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

func (*TypeMeta) XXX_Size Uses

func (m *TypeMeta) XXX_Size() int

func (*TypeMeta) XXX_Unmarshal Uses

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

type UpdateOptions Uses

type UpdateOptions 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,2,name=fieldManager"`
}

UpdateOptions may be provided when updating an API object. All fields in UpdateOptions should also be present in PatchOptions.

func (*UpdateOptions) DeepCopy Uses

func (in *UpdateOptions) DeepCopy() *UpdateOptions

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

func (*UpdateOptions) DeepCopyInto Uses

func (in *UpdateOptions) DeepCopyInto(out *UpdateOptions)

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

func (*UpdateOptions) DeepCopyObject Uses

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

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

func (*UpdateOptions) Descriptor Uses

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

func (*UpdateOptions) Marshal Uses

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

func (*UpdateOptions) MarshalTo Uses

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

func (*UpdateOptions) MarshalToSizedBuffer Uses

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

func (*UpdateOptions) ProtoMessage Uses

func (*UpdateOptions) ProtoMessage()

func (*UpdateOptions) Reset Uses

func (m *UpdateOptions) Reset()

func (*UpdateOptions) Size Uses

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

func (*UpdateOptions) String Uses

func (this *UpdateOptions) String() string

func (UpdateOptions) SwaggerDoc Uses

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

func (*UpdateOptions) Unmarshal Uses

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

func (*UpdateOptions) XXX_DiscardUnknown Uses

func (m *UpdateOptions) XXX_DiscardUnknown()

func (*UpdateOptions) XXX_Marshal Uses

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

func (*UpdateOptions) XXX_Merge Uses

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

func (*UpdateOptions) XXX_Size Uses

func (m *UpdateOptions) XXX_Size() int

func (*UpdateOptions) XXX_Unmarshal Uses

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

type Verbs Uses

type Verbs []string

Verbs masks the value so protobuf can generate

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

func (Verbs) DeepCopy Uses

func (in Verbs) DeepCopy() Verbs

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

func (Verbs) DeepCopyInto Uses

func (in Verbs) DeepCopyInto(out *Verbs)

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

func (*Verbs) Descriptor Uses

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

func (Verbs) Marshal Uses

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

func (Verbs) MarshalTo Uses

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

func (Verbs) MarshalToSizedBuffer Uses

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

func (*Verbs) ProtoMessage Uses

func (*Verbs) ProtoMessage()

func (*Verbs) Reset Uses

func (m *Verbs) Reset()

func (Verbs) Size Uses

func (m Verbs) Size() (n int)

func (Verbs) String Uses

func (vs Verbs) String() string

func (*Verbs) Unmarshal Uses

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

func (*Verbs) XXX_DiscardUnknown Uses

func (m *Verbs) XXX_DiscardUnknown()

func (*Verbs) XXX_Marshal Uses

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

func (*Verbs) XXX_Merge Uses

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

func (*Verbs) XXX_Size Uses

func (m *Verbs) XXX_Size() int

func (*Verbs) XXX_Unmarshal Uses

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

type WatchEvent Uses

type WatchEvent struct {
    Type string `json:"type" protobuf:"bytes,1,opt,name=type"`

    // Object is:
    //  * If Type is Added or Modified: the new state of the object.
    //  * If Type is Deleted: the state of the object immediately before deletion.
    //  * If Type is Error: *Status is recommended; other types may make sense
    //    depend