Documentation
¶
Overview ¶
+groupName=meta.k8s.io
Package v1 is a generated protocol buffer package. It is generated from these files: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto It has these top-level messages: APIGroup APIGroupList APIResource APIResourceList APIVersions DeleteOptions Duration ExportOptions GetOptions GroupKind GroupResource GroupVersion GroupVersionForDiscovery GroupVersionKind GroupVersionResource Initializer Initializers LabelSelector LabelSelectorRequirement List ListMeta ListOptions MicroTime ObjectMeta OwnerReference Patch Preconditions RootPaths ServerAddressByClientCIDR Status StatusCause StatusDetails Time Timestamp TypeMeta Verbs WatchEvent
Package v1 contains API types that are common to all versions.
The package contains two categories of types:
- external (serialized) types that lack their own version (e.g TypeMeta)
- internal (never-serialized) types that are needed by several different api groups, and so live here, to avoid duplication and/or import loops (e.g. LabelSelector).
In the future, we will probably move these categories of objects into separate packages.
Index ¶
- Constants
- Variables
- func AddConversionFuncs(scheme *runtime.Scheme) error
- func AddToGroupVersion(scheme *runtime.Scheme, groupVersion schema.GroupVersion)
- func Convert_Pointer_bool_To_bool(in **bool, out *bool, s conversion.Scope) error
- func Convert_Pointer_float64_To_float64(in **float64, out *float64, s conversion.Scope) error
- func Convert_Pointer_int32_To_int32(in **int32, out *int32, s conversion.Scope) error
- func Convert_Pointer_int64_To_int(in **int64, out *int, s conversion.Scope) error
- func Convert_Pointer_int64_To_int64(in **int64, out *int64, s conversion.Scope) error
- func Convert_Pointer_string_To_string(in **string, out *string, s conversion.Scope) error
- func Convert_Pointer_v1_Duration_To_v1_Duration(in **Duration, out *Duration, s conversion.Scope) error
- func Convert_Slice_string_To_Slice_int32(in *[]string, out *[]int32, s conversion.Scope) error
- func Convert_Slice_string_To_unversioned_Time(input *[]string, out *Time, s conversion.Scope) error
- func Convert_bool_To_Pointer_bool(in *bool, out **bool, s conversion.Scope) error
- func Convert_fields_Selector_To_string(in *fields.Selector, out *string, s conversion.Scope) error
- func Convert_float64_To_Pointer_float64(in *float64, out **float64, s conversion.Scope) error
- func Convert_int32_To_Pointer_int32(in *int32, out **int32, s conversion.Scope) error
- func Convert_int64_To_Pointer_int64(in *int64, out **int64, s conversion.Scope) error
- func Convert_int_To_Pointer_int64(in *int, out **int64, s conversion.Scope) error
- func Convert_intstr_IntOrString_To_intstr_IntOrString(in, out *intstr.IntOrString, s conversion.Scope) error
- func Convert_labels_Selector_To_string(in *labels.Selector, out *string, s conversion.Scope) error
- func Convert_map_to_unversioned_LabelSelector(in *map[string]string, out *LabelSelector, s conversion.Scope) error
- func Convert_resource_Quantity_To_resource_Quantity(in *resource.Quantity, out *resource.Quantity, s conversion.Scope) error
- func Convert_string_To_Pointer_string(in *string, out **string, s conversion.Scope) error
- func Convert_string_To_fields_Selector(in *string, out *fields.Selector, s conversion.Scope) error
- func Convert_string_To_labels_Selector(in *string, out *labels.Selector, s conversion.Scope) error
- func Convert_unversioned_LabelSelector_to_map(in *LabelSelector, out *map[string]string, s conversion.Scope) error
- func Convert_unversioned_ListMeta_To_unversioned_ListMeta(in, out *ListMeta, s conversion.Scope) error
- func Convert_unversioned_MicroTime_To_unversioned_MicroTime(in *MicroTime, out *MicroTime, s conversion.Scope) error
- func Convert_unversioned_Time_To_unversioned_Time(in *Time, out *Time, s conversion.Scope) error
- func Convert_v1_Duration_To_Pointer_v1_Duration(in *Duration, out **Duration, s conversion.Scope) error
- func Convert_v1_TypeMeta_To_v1_TypeMeta(in, out *TypeMeta, s conversion.Scope) error
- func Convert_versioned_Event_to_versioned_InternalEvent(in *WatchEvent, out *InternalEvent, s conversion.Scope) error
- func Convert_versioned_Event_to_watch_Event(in *WatchEvent, out *watch.Event, s conversion.Scope) error
- func Convert_versioned_InternalEvent_to_versioned_Event(in *InternalEvent, out *WatchEvent, s conversion.Scope) error
- func Convert_watch_Event_to_versioned_Event(in *watch.Event, out *WatchEvent, s conversion.Scope) error
- func ExtractGroupVersions(l *APIGroupList) []string
- func FieldSelectorQueryParam(version string) string
- func FormatLabelSelector(labelSelector *LabelSelector) string
- func HasAnnotation(obj ObjectMeta, ann string) bool
- func HasObjectMetaSystemFieldValues(meta Object) bool
- func IsControlledBy(obj Object, owner Object) bool
- func Kind(kind string) schema.GroupKind
- func LabelSelectorAsMap(ps *LabelSelector) (map[string]string, error)
- func LabelSelectorAsSelector(ps *LabelSelector) (labels.Selector, error)
- func LabelSelectorQueryParam(version string) string
- func RegisterDefaults(scheme *runtime.Scheme) error
- func SelectorHasLabel(selector *LabelSelector, labelKey string) bool
- func SetMetaDataAnnotation(obj *ObjectMeta, ann string, value string)
- type APIGroup
- func (in *APIGroup) DeepCopy() *APIGroup
- func (in *APIGroup) DeepCopyInto(out *APIGroup)
- func (in *APIGroup) DeepCopyObject() runtime.Object
- func (*APIGroup) Descriptor() ([]byte, []int)
- func (m *APIGroup) Marshal() (dAtA []byte, err error)
- func (m *APIGroup) MarshalTo(dAtA []byte) (int, error)
- func (*APIGroup) ProtoMessage()
- func (m *APIGroup) Reset()
- func (m *APIGroup) Size() (n int)
- func (this *APIGroup) String() string
- func (APIGroup) SwaggerDoc() map[string]string
- func (m *APIGroup) Unmarshal(dAtA []byte) error
- type APIGroupList
- func (in *APIGroupList) DeepCopy() *APIGroupList
- func (in *APIGroupList) DeepCopyInto(out *APIGroupList)
- func (in *APIGroupList) DeepCopyObject() runtime.Object
- func (*APIGroupList) Descriptor() ([]byte, []int)
- func (m *APIGroupList) Marshal() (dAtA []byte, err error)
- func (m *APIGroupList) MarshalTo(dAtA []byte) (int, error)
- func (*APIGroupList) ProtoMessage()
- func (m *APIGroupList) Reset()
- func (m *APIGroupList) Size() (n int)
- func (this *APIGroupList) String() string
- func (APIGroupList) SwaggerDoc() map[string]string
- func (m *APIGroupList) Unmarshal(dAtA []byte) error
- type APIResource
- func (in *APIResource) DeepCopy() *APIResource
- func (in *APIResource) DeepCopyInto(out *APIResource)
- func (*APIResource) Descriptor() ([]byte, []int)
- func (m *APIResource) Marshal() (dAtA []byte, err error)
- func (m *APIResource) MarshalTo(dAtA []byte) (int, error)
- func (*APIResource) ProtoMessage()
- func (m *APIResource) Reset()
- func (m *APIResource) Size() (n int)
- func (this *APIResource) String() string
- func (APIResource) SwaggerDoc() map[string]string
- func (m *APIResource) Unmarshal(dAtA []byte) error
- type APIResourceList
- func (in *APIResourceList) DeepCopy() *APIResourceList
- func (in *APIResourceList) DeepCopyInto(out *APIResourceList)
- func (in *APIResourceList) DeepCopyObject() runtime.Object
- func (*APIResourceList) Descriptor() ([]byte, []int)
- func (m *APIResourceList) Marshal() (dAtA []byte, err error)
- func (m *APIResourceList) MarshalTo(dAtA []byte) (int, error)
- func (*APIResourceList) ProtoMessage()
- func (m *APIResourceList) Reset()
- func (m *APIResourceList) Size() (n int)
- func (this *APIResourceList) String() string
- func (APIResourceList) SwaggerDoc() map[string]string
- func (m *APIResourceList) Unmarshal(dAtA []byte) error
- type APIVersions
- func (in *APIVersions) DeepCopy() *APIVersions
- func (in *APIVersions) DeepCopyInto(out *APIVersions)
- func (in *APIVersions) DeepCopyObject() runtime.Object
- func (*APIVersions) Descriptor() ([]byte, []int)
- func (apiVersions APIVersions) GoString() string
- func (m *APIVersions) Marshal() (dAtA []byte, err error)
- func (m *APIVersions) MarshalTo(dAtA []byte) (int, error)
- func (*APIVersions) ProtoMessage()
- func (m *APIVersions) Reset()
- func (m *APIVersions) Size() (n int)
- func (apiVersions APIVersions) String() string
- func (APIVersions) SwaggerDoc() map[string]string
- func (m *APIVersions) Unmarshal(dAtA []byte) error
- type CauseType
- type Common
- type DeleteOptions
- func (in *DeleteOptions) DeepCopy() *DeleteOptions
- func (in *DeleteOptions) DeepCopyInto(out *DeleteOptions)
- func (in *DeleteOptions) DeepCopyObject() runtime.Object
- func (*DeleteOptions) Descriptor() ([]byte, []int)
- func (m *DeleteOptions) Marshal() (dAtA []byte, err error)
- func (m *DeleteOptions) MarshalTo(dAtA []byte) (int, error)
- func (*DeleteOptions) ProtoMessage()
- func (m *DeleteOptions) Reset()
- func (m *DeleteOptions) Size() (n int)
- func (this *DeleteOptions) String() string
- func (DeleteOptions) SwaggerDoc() map[string]string
- func (m *DeleteOptions) Unmarshal(dAtA []byte) error
- type DeletionPropagation
- type Duration
- func (in *Duration) DeepCopy() *Duration
- func (in *Duration) DeepCopyInto(out *Duration)
- func (*Duration) Descriptor() ([]byte, []int)
- func (m *Duration) Marshal() (dAtA []byte, err error)
- func (d Duration) MarshalJSON() ([]byte, error)
- func (m *Duration) MarshalTo(dAtA []byte) (int, error)
- func (*Duration) ProtoMessage()
- func (m *Duration) Reset()
- func (m *Duration) Size() (n int)
- func (this *Duration) String() string
- func (m *Duration) Unmarshal(dAtA []byte) error
- func (d *Duration) UnmarshalJSON(b []byte) error
- type ExportOptions
- func (in *ExportOptions) DeepCopy() *ExportOptions
- func (in *ExportOptions) DeepCopyInto(out *ExportOptions)
- func (in *ExportOptions) DeepCopyObject() runtime.Object
- func (*ExportOptions) Descriptor() ([]byte, []int)
- func (m *ExportOptions) Marshal() (dAtA []byte, err error)
- func (m *ExportOptions) MarshalTo(dAtA []byte) (int, error)
- func (*ExportOptions) ProtoMessage()
- func (m *ExportOptions) Reset()
- func (m *ExportOptions) Size() (n int)
- func (this *ExportOptions) String() string
- func (ExportOptions) SwaggerDoc() map[string]string
- func (m *ExportOptions) Unmarshal(dAtA []byte) error
- type GetOptions
- func (in *GetOptions) DeepCopy() *GetOptions
- func (in *GetOptions) DeepCopyInto(out *GetOptions)
- func (in *GetOptions) DeepCopyObject() runtime.Object
- func (*GetOptions) Descriptor() ([]byte, []int)
- func (m *GetOptions) Marshal() (dAtA []byte, err error)
- func (m *GetOptions) MarshalTo(dAtA []byte) (int, error)
- func (*GetOptions) ProtoMessage()
- func (m *GetOptions) Reset()
- func (m *GetOptions) Size() (n int)
- func (this *GetOptions) String() string
- func (GetOptions) SwaggerDoc() map[string]string
- func (m *GetOptions) Unmarshal(dAtA []byte) error
- type GroupKind
- func (in *GroupKind) DeepCopy() *GroupKind
- func (in *GroupKind) DeepCopyInto(out *GroupKind)
- func (*GroupKind) Descriptor() ([]byte, []int)
- func (m *GroupKind) Marshal() (dAtA []byte, err error)
- func (m *GroupKind) MarshalTo(dAtA []byte) (int, error)
- func (*GroupKind) ProtoMessage()
- func (m *GroupKind) Reset()
- func (m *GroupKind) Size() (n int)
- func (gk *GroupKind) String() string
- func (m *GroupKind) Unmarshal(dAtA []byte) error
- type GroupResource
- func (in *GroupResource) DeepCopy() *GroupResource
- func (in *GroupResource) DeepCopyInto(out *GroupResource)
- func (*GroupResource) Descriptor() ([]byte, []int)
- func (m *GroupResource) Marshal() (dAtA []byte, err error)
- func (m *GroupResource) MarshalTo(dAtA []byte) (int, error)
- func (*GroupResource) ProtoMessage()
- func (m *GroupResource) Reset()
- func (m *GroupResource) Size() (n int)
- func (gr *GroupResource) String() string
- func (m *GroupResource) Unmarshal(dAtA []byte) error
- type GroupVersion
- func (in *GroupVersion) DeepCopy() *GroupVersion
- func (in *GroupVersion) DeepCopyInto(out *GroupVersion)
- func (*GroupVersion) Descriptor() ([]byte, []int)
- func (gv GroupVersion) Empty() bool
- func (m *GroupVersion) Marshal() (dAtA []byte, err error)
- func (gv GroupVersion) MarshalJSON() ([]byte, error)
- func (m *GroupVersion) MarshalTo(dAtA []byte) (int, error)
- func (*GroupVersion) ProtoMessage()
- func (m *GroupVersion) Reset()
- func (m *GroupVersion) Size() (n int)
- func (gv GroupVersion) String() string
- func (m *GroupVersion) Unmarshal(dAtA []byte) error
- func (gv *GroupVersion) UnmarshalJSON(value []byte) error
- func (gv *GroupVersion) UnmarshalText(value []byte) error
- type GroupVersionForDiscovery
- func (in *GroupVersionForDiscovery) DeepCopy() *GroupVersionForDiscovery
- func (in *GroupVersionForDiscovery) DeepCopyInto(out *GroupVersionForDiscovery)
- func (*GroupVersionForDiscovery) Descriptor() ([]byte, []int)
- func (m *GroupVersionForDiscovery) Marshal() (dAtA []byte, err error)
- func (m *GroupVersionForDiscovery) MarshalTo(dAtA []byte) (int, error)
- func (*GroupVersionForDiscovery) ProtoMessage()
- func (m *GroupVersionForDiscovery) Reset()
- func (m *GroupVersionForDiscovery) Size() (n int)
- func (this *GroupVersionForDiscovery) String() string
- func (GroupVersionForDiscovery) SwaggerDoc() map[string]string
- func (m *GroupVersionForDiscovery) Unmarshal(dAtA []byte) error
- type GroupVersionKind
- func (in *GroupVersionKind) DeepCopy() *GroupVersionKind
- func (in *GroupVersionKind) DeepCopyInto(out *GroupVersionKind)
- func (*GroupVersionKind) Descriptor() ([]byte, []int)
- func (m *GroupVersionKind) Marshal() (dAtA []byte, err error)
- func (m *GroupVersionKind) MarshalTo(dAtA []byte) (int, error)
- func (*GroupVersionKind) ProtoMessage()
- func (m *GroupVersionKind) Reset()
- func (m *GroupVersionKind) Size() (n int)
- func (gvk GroupVersionKind) String() string
- func (m *GroupVersionKind) Unmarshal(dAtA []byte) error
- type GroupVersionResource
- func (in *GroupVersionResource) DeepCopy() *GroupVersionResource
- func (in *GroupVersionResource) DeepCopyInto(out *GroupVersionResource)
- func (*GroupVersionResource) Descriptor() ([]byte, []int)
- func (m *GroupVersionResource) Marshal() (dAtA []byte, err error)
- func (m *GroupVersionResource) MarshalTo(dAtA []byte) (int, error)
- func (*GroupVersionResource) ProtoMessage()
- func (m *GroupVersionResource) Reset()
- func (m *GroupVersionResource) Size() (n int)
- func (gvr *GroupVersionResource) String() string
- func (m *GroupVersionResource) Unmarshal(dAtA []byte) error
- type Initializer
- func (in *Initializer) DeepCopy() *Initializer
- func (in *Initializer) DeepCopyInto(out *Initializer)
- func (*Initializer) Descriptor() ([]byte, []int)
- func (m *Initializer) Marshal() (dAtA []byte, err error)
- func (m *Initializer) MarshalTo(dAtA []byte) (int, error)
- func (*Initializer) ProtoMessage()
- func (m *Initializer) Reset()
- func (m *Initializer) Size() (n int)
- func (this *Initializer) String() string
- func (Initializer) SwaggerDoc() map[string]string
- func (m *Initializer) Unmarshal(dAtA []byte) error
- type Initializers
- func (in *Initializers) DeepCopy() *Initializers
- func (in *Initializers) DeepCopyInto(out *Initializers)
- func (*Initializers) Descriptor() ([]byte, []int)
- func (m *Initializers) Marshal() (dAtA []byte, err error)
- func (m *Initializers) MarshalTo(dAtA []byte) (int, error)
- func (*Initializers) ProtoMessage()
- func (m *Initializers) Reset()
- func (m *Initializers) Size() (n int)
- func (this *Initializers) String() string
- func (Initializers) SwaggerDoc() map[string]string
- func (m *Initializers) Unmarshal(dAtA []byte) error
- type InternalEvent
- type LabelSelector
- func AddLabelToSelector(selector *LabelSelector, labelKey, labelValue string) *LabelSelector
- func CloneSelectorAndAddLabel(selector *LabelSelector, labelKey, labelValue string) *LabelSelector
- func ParseToLabelSelector(selector string) (*LabelSelector, error)
- func SetAsLabelSelector(ls labels.Set) *LabelSelector
- func (in *LabelSelector) DeepCopy() *LabelSelector
- func (in *LabelSelector) DeepCopyInto(out *LabelSelector)
- func (*LabelSelector) Descriptor() ([]byte, []int)
- func (m *LabelSelector) Marshal() (dAtA []byte, err error)
- func (m *LabelSelector) MarshalTo(dAtA []byte) (int, error)
- func (*LabelSelector) ProtoMessage()
- func (m *LabelSelector) Reset()
- func (m *LabelSelector) Size() (n int)
- func (this *LabelSelector) String() string
- func (LabelSelector) SwaggerDoc() map[string]string
- func (m *LabelSelector) Unmarshal(dAtA []byte) error
- type LabelSelectorOperator
- type LabelSelectorRequirement
- func (in *LabelSelectorRequirement) DeepCopy() *LabelSelectorRequirement
- func (in *LabelSelectorRequirement) DeepCopyInto(out *LabelSelectorRequirement)
- func (*LabelSelectorRequirement) Descriptor() ([]byte, []int)
- func (m *LabelSelectorRequirement) Marshal() (dAtA []byte, err error)
- func (m *LabelSelectorRequirement) MarshalTo(dAtA []byte) (int, error)
- func (*LabelSelectorRequirement) ProtoMessage()
- func (m *LabelSelectorRequirement) Reset()
- func (m *LabelSelectorRequirement) Size() (n int)
- func (this *LabelSelectorRequirement) String() string
- func (LabelSelectorRequirement) SwaggerDoc() map[string]string
- func (m *LabelSelectorRequirement) Unmarshal(dAtA []byte) error
- type List
- func (in *List) DeepCopy() *List
- func (in *List) DeepCopyInto(out *List)
- func (in *List) DeepCopyObject() runtime.Object
- func (*List) Descriptor() ([]byte, []int)
- func (m *List) Marshal() (dAtA []byte, err error)
- func (m *List) MarshalTo(dAtA []byte) (int, error)
- func (*List) ProtoMessage()
- func (m *List) Reset()
- func (m *List) Size() (n int)
- func (this *List) String() string
- func (List) SwaggerDoc() map[string]string
- func (m *List) Unmarshal(dAtA []byte) error
- type ListInterface
- type ListMeta
- func (in *ListMeta) DeepCopy() *ListMeta
- func (in *ListMeta) DeepCopyInto(out *ListMeta)
- func (*ListMeta) Descriptor() ([]byte, []int)
- func (meta *ListMeta) GetContinue() string
- func (obj *ListMeta) GetListMeta() ListInterface
- func (meta *ListMeta) GetResourceVersion() string
- func (meta *ListMeta) GetSelfLink() string
- func (m *ListMeta) Marshal() (dAtA []byte, err error)
- func (m *ListMeta) MarshalTo(dAtA []byte) (int, error)
- func (*ListMeta) ProtoMessage()
- func (m *ListMeta) Reset()
- func (meta *ListMeta) SetContinue(c string)
- func (meta *ListMeta) SetResourceVersion(version string)
- func (meta *ListMeta) SetSelfLink(selfLink string)
- func (m *ListMeta) Size() (n int)
- func (this *ListMeta) String() string
- func (ListMeta) SwaggerDoc() map[string]string
- func (m *ListMeta) Unmarshal(dAtA []byte) error
- type ListMetaAccessor
- type ListOptions
- func (in *ListOptions) DeepCopy() *ListOptions
- func (in *ListOptions) DeepCopyInto(out *ListOptions)
- func (in *ListOptions) DeepCopyObject() runtime.Object
- func (*ListOptions) Descriptor() ([]byte, []int)
- func (m *ListOptions) Marshal() (dAtA []byte, err error)
- func (m *ListOptions) MarshalTo(dAtA []byte) (int, error)
- func (*ListOptions) ProtoMessage()
- func (m *ListOptions) Reset()
- func (m *ListOptions) Size() (n int)
- func (this *ListOptions) String() string
- func (ListOptions) SwaggerDoc() map[string]string
- func (m *ListOptions) Unmarshal(dAtA []byte) error
- type MicroTime
- func (t *MicroTime) Before(u *MicroTime) bool
- func (t *MicroTime) BeforeTime(u *Time) bool
- func (in *MicroTime) DeepCopy() *MicroTime
- func (t *MicroTime) DeepCopyInto(out *MicroTime)
- func (*MicroTime) Descriptor() ([]byte, []int)
- func (t *MicroTime) Equal(u *MicroTime) bool
- func (t *MicroTime) EqualTime(u *Time) bool
- func (t *MicroTime) Fuzz(c fuzz.Continue)
- func (t *MicroTime) IsZero() bool
- func (m *MicroTime) Marshal() (data []byte, err error)
- func (t MicroTime) MarshalJSON() ([]byte, error)
- func (t MicroTime) MarshalQueryParameter() (string, error)
- func (m *MicroTime) MarshalTo(data []byte) (int, error)
- func (_ MicroTime) OpenAPISchemaFormat() string
- func (_ MicroTime) OpenAPISchemaType() []string
- func (*MicroTime) ProtoMessage()
- func (m *MicroTime) ProtoMicroTime() *Timestamp
- func (m *MicroTime) Reset()
- func (m *MicroTime) Size() (n int)
- func (t MicroTime) String() string
- func (m *MicroTime) Unmarshal(data []byte) error
- func (t *MicroTime) UnmarshalJSON(b []byte) error
- func (t *MicroTime) UnmarshalQueryParameter(str string) error
- type Object
- type ObjectMeta
- func (in *ObjectMeta) DeepCopy() *ObjectMeta
- func (in *ObjectMeta) DeepCopyInto(out *ObjectMeta)
- func (*ObjectMeta) Descriptor() ([]byte, []int)
- func (meta *ObjectMeta) GetAnnotations() map[string]string
- func (meta *ObjectMeta) GetClusterName() string
- func (meta *ObjectMeta) GetCreationTimestamp() Time
- func (meta *ObjectMeta) GetDeletionGracePeriodSeconds() *int64
- func (meta *ObjectMeta) GetDeletionTimestamp() *Time
- func (meta *ObjectMeta) GetFinalizers() []string
- func (meta *ObjectMeta) GetGenerateName() string
- func (meta *ObjectMeta) GetGeneration() int64
- func (meta *ObjectMeta) GetInitializers() *Initializers
- func (meta *ObjectMeta) GetLabels() map[string]string
- func (meta *ObjectMeta) GetName() string
- func (meta *ObjectMeta) GetNamespace() string
- func (obj *ObjectMeta) GetObjectMeta() Object
- func (meta *ObjectMeta) GetOwnerReferences() []OwnerReference
- func (meta *ObjectMeta) GetResourceVersion() string
- func (meta *ObjectMeta) GetSelfLink() string
- func (meta *ObjectMeta) GetUID() types.UID
- func (m *ObjectMeta) Marshal() (dAtA []byte, err error)
- func (m *ObjectMeta) MarshalTo(dAtA []byte) (int, error)
- func (*ObjectMeta) ProtoMessage()
- func (m *ObjectMeta) Reset()
- func (meta *ObjectMeta) SetAnnotations(annotations map[string]string)
- func (meta *ObjectMeta) SetClusterName(clusterName string)
- func (meta *ObjectMeta) SetCreationTimestamp(creationTimestamp Time)
- func (meta *ObjectMeta) SetDeletionGracePeriodSeconds(deletionGracePeriodSeconds *int64)
- func (meta *ObjectMeta) SetDeletionTimestamp(deletionTimestamp *Time)
- func (meta *ObjectMeta) SetFinalizers(finalizers []string)
- func (meta *ObjectMeta) SetGenerateName(generateName string)
- func (meta *ObjectMeta) SetGeneration(generation int64)
- func (meta *ObjectMeta) SetInitializers(initializers *Initializers)
- func (meta *ObjectMeta) SetLabels(labels map[string]string)
- func (meta *ObjectMeta) SetName(name string)
- func (meta *ObjectMeta) SetNamespace(namespace string)
- func (meta *ObjectMeta) SetOwnerReferences(references []OwnerReference)
- func (meta *ObjectMeta) SetResourceVersion(version string)
- func (meta *ObjectMeta) SetSelfLink(selfLink string)
- func (meta *ObjectMeta) SetUID(uid types.UID)
- func (m *ObjectMeta) Size() (n int)
- func (this *ObjectMeta) String() string
- func (ObjectMeta) SwaggerDoc() map[string]string
- func (m *ObjectMeta) Unmarshal(dAtA []byte) error
- type ObjectMetaAccessor
- type OwnerReference
- func (in *OwnerReference) DeepCopy() *OwnerReference
- func (in *OwnerReference) DeepCopyInto(out *OwnerReference)
- func (*OwnerReference) Descriptor() ([]byte, []int)
- func (m *OwnerReference) Marshal() (dAtA []byte, err error)
- func (m *OwnerReference) MarshalTo(dAtA []byte) (int, error)
- func (*OwnerReference) ProtoMessage()
- func (m *OwnerReference) Reset()
- func (m *OwnerReference) Size() (n int)
- func (this *OwnerReference) String() string
- func (OwnerReference) SwaggerDoc() map[string]string
- func (m *OwnerReference) Unmarshal(dAtA []byte) error
- type Patch
- func (in *Patch) DeepCopy() *Patch
- func (in *Patch) DeepCopyInto(out *Patch)
- func (*Patch) Descriptor() ([]byte, []int)
- func (m *Patch) Marshal() (dAtA []byte, err error)
- func (m *Patch) MarshalTo(dAtA []byte) (int, error)
- func (*Patch) ProtoMessage()
- func (m *Patch) Reset()
- func (m *Patch) Size() (n int)
- func (this *Patch) String() string
- func (Patch) SwaggerDoc() map[string]string
- func (m *Patch) Unmarshal(dAtA []byte) error
- type Preconditions
- func (in *Preconditions) DeepCopy() *Preconditions
- func (in *Preconditions) DeepCopyInto(out *Preconditions)
- func (*Preconditions) Descriptor() ([]byte, []int)
- func (m *Preconditions) Marshal() (dAtA []byte, err error)
- func (m *Preconditions) MarshalTo(dAtA []byte) (int, error)
- func (*Preconditions) ProtoMessage()
- func (m *Preconditions) Reset()
- func (m *Preconditions) Size() (n int)
- func (this *Preconditions) String() string
- func (Preconditions) SwaggerDoc() map[string]string
- func (m *Preconditions) Unmarshal(dAtA []byte) error
- type RootPaths
- func (in *RootPaths) DeepCopy() *RootPaths
- func (in *RootPaths) DeepCopyInto(out *RootPaths)
- func (*RootPaths) Descriptor() ([]byte, []int)
- func (m *RootPaths) Marshal() (dAtA []byte, err error)
- func (m *RootPaths) MarshalTo(dAtA []byte) (int, error)
- func (*RootPaths) ProtoMessage()
- func (m *RootPaths) Reset()
- func (m *RootPaths) Size() (n int)
- func (this *RootPaths) String() string
- func (RootPaths) SwaggerDoc() map[string]string
- func (m *RootPaths) Unmarshal(dAtA []byte) error
- type ServerAddressByClientCIDR
- func (in *ServerAddressByClientCIDR) DeepCopy() *ServerAddressByClientCIDR
- func (in *ServerAddressByClientCIDR) DeepCopyInto(out *ServerAddressByClientCIDR)
- func (*ServerAddressByClientCIDR) Descriptor() ([]byte, []int)
- func (m *ServerAddressByClientCIDR) Marshal() (dAtA []byte, err error)
- func (m *ServerAddressByClientCIDR) MarshalTo(dAtA []byte) (int, error)
- func (*ServerAddressByClientCIDR) ProtoMessage()
- func (m *ServerAddressByClientCIDR) Reset()
- func (m *ServerAddressByClientCIDR) Size() (n int)
- func (this *ServerAddressByClientCIDR) String() string
- func (ServerAddressByClientCIDR) SwaggerDoc() map[string]string
- func (m *ServerAddressByClientCIDR) Unmarshal(dAtA []byte) error
- type Status
- func (in *Status) DeepCopy() *Status
- func (in *Status) DeepCopyInto(out *Status)
- func (in *Status) DeepCopyObject() runtime.Object
- func (*Status) Descriptor() ([]byte, []int)
- func (m *Status) Marshal() (dAtA []byte, err error)
- func (m *Status) MarshalTo(dAtA []byte) (int, error)
- func (*Status) ProtoMessage()
- func (m *Status) Reset()
- func (m *Status) Size() (n int)
- func (this *Status) String() string
- func (Status) SwaggerDoc() map[string]string
- func (m *Status) Unmarshal(dAtA []byte) error
- type StatusCause
- func (in *StatusCause) DeepCopy() *StatusCause
- func (in *StatusCause) DeepCopyInto(out *StatusCause)
- func (*StatusCause) Descriptor() ([]byte, []int)
- func (m *StatusCause) Marshal() (dAtA []byte, err error)
- func (m *StatusCause) MarshalTo(dAtA []byte) (int, error)
- func (*StatusCause) ProtoMessage()
- func (m *StatusCause) Reset()
- func (m *StatusCause) Size() (n int)
- func (this *StatusCause) String() string
- func (StatusCause) SwaggerDoc() map[string]string
- func (m *StatusCause) Unmarshal(dAtA []byte) error
- type StatusDetails
- func (in *StatusDetails) DeepCopy() *StatusDetails
- func (in *StatusDetails) DeepCopyInto(out *StatusDetails)
- func (*StatusDetails) Descriptor() ([]byte, []int)
- func (m *StatusDetails) Marshal() (dAtA []byte, err error)
- func (m *StatusDetails) MarshalTo(dAtA []byte) (int, error)
- func (*StatusDetails) ProtoMessage()
- func (m *StatusDetails) Reset()
- func (m *StatusDetails) Size() (n int)
- func (this *StatusDetails) String() string
- func (StatusDetails) SwaggerDoc() map[string]string
- func (m *StatusDetails) Unmarshal(dAtA []byte) error
- type StatusReason
- type Time
- func (t *Time) Before(u *Time) bool
- func (in *Time) DeepCopy() *Time
- func (t *Time) DeepCopyInto(out *Time)
- func (*Time) Descriptor() ([]byte, []int)
- func (t *Time) Equal(u *Time) bool
- func (t *Time) Fuzz(c fuzz.Continue)
- func (t *Time) IsZero() bool
- func (m *Time) Marshal() (data []byte, err error)
- func (t Time) MarshalJSON() ([]byte, error)
- func (t Time) MarshalQueryParameter() (string, error)
- func (m *Time) MarshalTo(data []byte) (int, error)
- func (_ Time) OpenAPISchemaFormat() string
- func (_ Time) OpenAPISchemaType() []string
- func (*Time) ProtoMessage()
- func (m *Time) ProtoTime() *Timestamp
- func (m *Time) Reset()
- func (t Time) Rfc3339Copy() Time
- func (m *Time) Size() (n int)
- func (t Time) String() string
- func (m *Time) Unmarshal(data []byte) error
- func (t *Time) UnmarshalJSON(b []byte) error
- func (t *Time) UnmarshalQueryParameter(str string) error
- type Timestamp
- func (in *Timestamp) DeepCopy() *Timestamp
- func (in *Timestamp) DeepCopyInto(out *Timestamp)
- func (*Timestamp) Descriptor() ([]byte, []int)
- func (m *Timestamp) Marshal() (dAtA []byte, err error)
- func (m *Timestamp) MarshalTo(dAtA []byte) (int, error)
- func (*Timestamp) ProtoMessage()
- func (m *Timestamp) Reset()
- func (m *Timestamp) Size() (n int)
- func (this *Timestamp) String() string
- func (m *Timestamp) Unmarshal(dAtA []byte) error
- type Type
- type TypeMeta
- func (*TypeMeta) Descriptor() ([]byte, []int)
- func (obj *TypeMeta) GetObjectKind() schema.ObjectKind
- func (obj *TypeMeta) GroupVersionKind() schema.GroupVersionKind
- func (m *TypeMeta) Marshal() (dAtA []byte, err error)
- func (m *TypeMeta) MarshalTo(dAtA []byte) (int, error)
- func (*TypeMeta) ProtoMessage()
- func (m *TypeMeta) Reset()
- func (obj *TypeMeta) SetGroupVersionKind(gvk schema.GroupVersionKind)
- func (m *TypeMeta) Size() (n int)
- func (this *TypeMeta) String() string
- func (TypeMeta) SwaggerDoc() map[string]string
- func (m *TypeMeta) Unmarshal(dAtA []byte) error
- type Verbs
- func (in Verbs) DeepCopy() Verbs
- func (in Verbs) DeepCopyInto(out *Verbs)
- func (*Verbs) Descriptor() ([]byte, []int)
- func (m Verbs) Marshal() (dAtA []byte, err error)
- func (m Verbs) MarshalTo(dAtA []byte) (int, error)
- func (*Verbs) ProtoMessage()
- func (m *Verbs) Reset()
- func (m Verbs) Size() (n int)
- func (vs Verbs) String() string
- func (m *Verbs) Unmarshal(dAtA []byte) error
- type WatchEvent
- func (in *WatchEvent) DeepCopy() *WatchEvent
- func (in *WatchEvent) DeepCopyInto(out *WatchEvent)
- func (in *WatchEvent) DeepCopyObject() runtime.Object
- func (*WatchEvent) Descriptor() ([]byte, []int)
- func (e *WatchEvent) GetObjectKind() schema.ObjectKind
- func (m *WatchEvent) Marshal() (dAtA []byte, err error)
- func (m *WatchEvent) MarshalTo(dAtA []byte) (int, error)
- func (*WatchEvent) ProtoMessage()
- func (m *WatchEvent) Reset()
- func (m *WatchEvent) Size() (n int)
- func (this *WatchEvent) String() string
- func (m *WatchEvent) Unmarshal(dAtA []byte) error
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 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
Functions ¶
func AddConversionFuncs ¶
func AddToGroupVersion ¶
func AddToGroupVersion(scheme *runtime.Scheme, groupVersion schema.GroupVersion)
AddToGroupVersion registers common meta types into schemas.
func Convert_Pointer_bool_To_bool ¶
func Convert_Pointer_bool_To_bool(in **bool, out *bool, s conversion.Scope) error
func Convert_Pointer_float64_To_float64 ¶
func Convert_Pointer_float64_To_float64(in **float64, out *float64, s conversion.Scope) error
func Convert_Pointer_int32_To_int32 ¶
func Convert_Pointer_int32_To_int32(in **int32, out *int32, s conversion.Scope) error
func Convert_Pointer_int64_To_int ¶
func Convert_Pointer_int64_To_int(in **int64, out *int, s conversion.Scope) error
func Convert_Pointer_int64_To_int64 ¶
func Convert_Pointer_int64_To_int64(in **int64, out *int64, s conversion.Scope) error
func Convert_Pointer_string_To_string ¶
func Convert_Pointer_string_To_string(in **string, out *string, s conversion.Scope) error
func Convert_Pointer_v1_Duration_To_v1_Duration ¶
func Convert_Pointer_v1_Duration_To_v1_Duration(in **Duration, out *Duration, s conversion.Scope) error
func Convert_Slice_string_To_Slice_int32 ¶
func Convert_Slice_string_To_Slice_int32(in *[]string, out *[]int32, s conversion.Scope) error
Convert_Slice_string_To_Slice_int32 converts multiple query parameters or a single query parameter with a comma delimited value to multiple int32. This is used for port forwarding which needs the ports as int32.
func Convert_Slice_string_To_unversioned_Time ¶
func Convert_Slice_string_To_unversioned_Time(input *[]string, out *Time, s conversion.Scope) error
Convert_Slice_string_To_unversioned_Time allows converting a URL query parameter value
func Convert_bool_To_Pointer_bool ¶
func Convert_bool_To_Pointer_bool(in *bool, out **bool, s conversion.Scope) error
func Convert_float64_To_Pointer_float64 ¶
func Convert_float64_To_Pointer_float64(in *float64, out **float64, s conversion.Scope) error
func Convert_int32_To_Pointer_int32 ¶
func Convert_int32_To_Pointer_int32(in *int32, out **int32, s conversion.Scope) error
func Convert_int64_To_Pointer_int64 ¶
func Convert_int64_To_Pointer_int64(in *int64, out **int64, s conversion.Scope) error
func Convert_int_To_Pointer_int64 ¶
func Convert_int_To_Pointer_int64(in *int, out **int64, s conversion.Scope) error
func Convert_intstr_IntOrString_To_intstr_IntOrString ¶
func Convert_intstr_IntOrString_To_intstr_IntOrString(in, out *intstr.IntOrString, s conversion.Scope) error
+k8s:conversion-fn=copy-only
func Convert_map_to_unversioned_LabelSelector ¶
func Convert_map_to_unversioned_LabelSelector(in *map[string]string, out *LabelSelector, s conversion.Scope) error
func Convert_resource_Quantity_To_resource_Quantity ¶
func Convert_resource_Quantity_To_resource_Quantity(in *resource.Quantity, out *resource.Quantity, s conversion.Scope) error
+k8s:conversion-fn=copy-only
func Convert_string_To_Pointer_string ¶
func Convert_string_To_Pointer_string(in *string, out **string, s conversion.Scope) error
func Convert_unversioned_LabelSelector_to_map ¶
func Convert_unversioned_LabelSelector_to_map(in *LabelSelector, out *map[string]string, s conversion.Scope) error
func Convert_unversioned_ListMeta_To_unversioned_ListMeta ¶
func Convert_unversioned_ListMeta_To_unversioned_ListMeta(in, out *ListMeta, s conversion.Scope) error
+k8s:conversion-fn=copy-only
func Convert_unversioned_MicroTime_To_unversioned_MicroTime ¶
func Convert_unversioned_MicroTime_To_unversioned_MicroTime(in *MicroTime, out *MicroTime, s conversion.Scope) error
func Convert_unversioned_Time_To_unversioned_Time ¶
func Convert_unversioned_Time_To_unversioned_Time(in *Time, out *Time, s conversion.Scope) error
+k8s:conversion-fn=copy-only
func Convert_v1_Duration_To_Pointer_v1_Duration ¶
func Convert_v1_Duration_To_Pointer_v1_Duration(in *Duration, out **Duration, s conversion.Scope) error
func Convert_v1_TypeMeta_To_v1_TypeMeta ¶
func Convert_v1_TypeMeta_To_v1_TypeMeta(in, out *TypeMeta, s conversion.Scope) error
+k8s:conversion-fn=drop
func Convert_versioned_Event_to_versioned_InternalEvent ¶
func Convert_versioned_Event_to_versioned_InternalEvent(in *WatchEvent, out *InternalEvent, s conversion.Scope) error
func Convert_versioned_Event_to_watch_Event ¶
func Convert_versioned_Event_to_watch_Event(in *WatchEvent, out *watch.Event, s conversion.Scope) error
func Convert_versioned_InternalEvent_to_versioned_Event ¶
func Convert_versioned_InternalEvent_to_versioned_Event(in *InternalEvent, out *WatchEvent, s conversion.Scope) error
func Convert_watch_Event_to_versioned_Event ¶
func Convert_watch_Event_to_versioned_Event(in *watch.Event, out *WatchEvent, s conversion.Scope) error
func ExtractGroupVersions ¶
func ExtractGroupVersions(l *APIGroupList) []string
func FieldSelectorQueryParam ¶
TODO: remove me when watch is refactored
func FormatLabelSelector ¶
func FormatLabelSelector(labelSelector *LabelSelector) string
FormatLabelSelector convert labelSelector into plain string
func HasAnnotation ¶
func HasAnnotation(obj ObjectMeta, ann string) bool
HasAnnotation returns a bool if passed in annotation exists
func HasObjectMetaSystemFieldValues ¶
HasObjectMetaSystemFieldValues returns true if fields that are managed by the system on ObjectMeta have values.
func IsControlledBy ¶
IsControlledBy checks if the object has a controllerRef set to the given owner
func LabelSelectorAsMap ¶
func LabelSelectorAsMap(ps *LabelSelector) (map[string]string, error)
LabelSelectorAsMap converts the LabelSelector api type into a map of strings, ie. the original structure of a label selector. Operators that cannot be converted into plain labels (Exists, DoesNotExist, NotIn, and In with more than one value) will result in an error.
func LabelSelectorAsSelector ¶
func LabelSelectorAsSelector(ps *LabelSelector) (labels.Selector, error)
LabelSelectorAsSelector converts the LabelSelector api type into a struct that implements labels.Selector Note: This function should be kept in sync with the selector methods in pkg/labels/selector.go
func LabelSelectorQueryParam ¶
TODO: remove me when watch is refactored
func RegisterDefaults ¶
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 SelectorHasLabel ¶
func SelectorHasLabel(selector *LabelSelector, labelKey string) bool
SelectorHasLabel checks if the given selector contains the given label key in its MatchLabels
func SetMetaDataAnnotation ¶
func SetMetaDataAnnotation(obj *ObjectMeta, ann string, value string)
SetMetaDataAnnotation sets the annotation and value
Types ¶
type APIGroup ¶
type APIGroup struct { TypeMeta `json:",inline"` // name is the name of the group. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // versions are the versions supported in this group. Versions []GroupVersionForDiscovery `json:"versions" protobuf:"bytes,2,rep,name=versions"` // preferredVersion is the version preferred by the API server, which // probably is the storage version. // +optional PreferredVersion GroupVersionForDiscovery `json:"preferredVersion,omitempty" protobuf:"bytes,3,opt,name=preferredVersion"` // a map of client CIDR to server address that is serving this group. // This is to help clients reach servers in the most network-efficient way possible. // Clients can use the appropriate server address as per the CIDR that they match. // In case of multiple matches, clients should use the longest matching CIDR. // The server returns only those CIDRs that it thinks that the client can match. // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. ServerAddressByClientCIDRs []ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs" protobuf:"bytes,4,rep,name=serverAddressByClientCIDRs"` }
APIGroup contains the name, the supported versions, and the preferred version of a group.
func (*APIGroup) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIGroup.
func (*APIGroup) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*APIGroup) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*APIGroup) Descriptor ¶
func (*APIGroup) ProtoMessage ¶
func (*APIGroup) ProtoMessage()
func (APIGroup) SwaggerDoc ¶
type APIGroupList ¶
type APIGroupList struct { TypeMeta `json:",inline"` // groups is a list of APIGroup. Groups []APIGroup `json:"groups" protobuf:"bytes,1,rep,name=groups"` }
APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.
func (*APIGroupList) DeepCopy ¶
func (in *APIGroupList) DeepCopy() *APIGroupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIGroupList.
func (*APIGroupList) DeepCopyInto ¶
func (in *APIGroupList) DeepCopyInto(out *APIGroupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*APIGroupList) DeepCopyObject ¶
func (in *APIGroupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*APIGroupList) Descriptor ¶
func (*APIGroupList) Descriptor() ([]byte, []int)
func (*APIGroupList) Marshal ¶
func (m *APIGroupList) Marshal() (dAtA []byte, err error)
func (*APIGroupList) ProtoMessage ¶
func (*APIGroupList) ProtoMessage()
func (*APIGroupList) Reset ¶
func (m *APIGroupList) Reset()
func (*APIGroupList) Size ¶
func (m *APIGroupList) Size() (n int)
func (*APIGroupList) String ¶
func (this *APIGroupList) String() string
func (APIGroupList) SwaggerDoc ¶
func (APIGroupList) SwaggerDoc() map[string]string
func (*APIGroupList) Unmarshal ¶
func (m *APIGroupList) Unmarshal(dAtA []byte) error
type APIResource ¶
type APIResource struct { // name is the plural name of the resource. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. // The singularName is more correct for reporting status on a single item and both singular and plural are allowed // from the kubectl CLI interface. SingularName string `json:"singularName" protobuf:"bytes,6,opt,name=singularName"` // namespaced indicates if a resource is namespaced or not. Namespaced bool `json:"namespaced" protobuf:"varint,2,opt,name=namespaced"` // group is the preferred group of the resource. Empty implies the group of the containing resource list. // For subresources, this may have a different value, for example: Scale". Group string `json:"group,omitempty" protobuf:"bytes,8,opt,name=group"` // version is the preferred version of the resource. Empty implies the version of the containing resource list // For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)". Version string `json:"version,omitempty" protobuf:"bytes,9,opt,name=version"` // kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') Kind string `json:"kind" protobuf:"bytes,3,opt,name=kind"` // verbs is a list of supported kube verbs (this includes get, list, watch, create, // update, patch, delete, deletecollection, and proxy) Verbs Verbs `json:"verbs" protobuf:"bytes,4,opt,name=verbs"` // shortNames is a list of suggested short names of the resource. ShortNames []string `json:"shortNames,omitempty" protobuf:"bytes,5,rep,name=shortNames"` // categories is a list of the grouped resources this resource belongs to (e.g. 'all') Categories []string `json:"categories,omitempty" protobuf:"bytes,7,rep,name=categories"` }
APIResource specifies the name of a resource and whether it is namespaced.
func (*APIResource) DeepCopy ¶
func (in *APIResource) DeepCopy() *APIResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIResource.
func (*APIResource) DeepCopyInto ¶
func (in *APIResource) DeepCopyInto(out *APIResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*APIResource) Descriptor ¶
func (*APIResource) Descriptor() ([]byte, []int)
func (*APIResource) Marshal ¶
func (m *APIResource) Marshal() (dAtA []byte, err error)
func (*APIResource) ProtoMessage ¶
func (*APIResource) ProtoMessage()
func (*APIResource) Reset ¶
func (m *APIResource) Reset()
func (*APIResource) Size ¶
func (m *APIResource) Size() (n int)
func (*APIResource) String ¶
func (this *APIResource) String() string
func (APIResource) SwaggerDoc ¶
func (APIResource) SwaggerDoc() map[string]string
func (*APIResource) Unmarshal ¶
func (m *APIResource) Unmarshal(dAtA []byte) error
type APIResourceList ¶
type APIResourceList struct { TypeMeta `json:",inline"` // groupVersion is the group and version this APIResourceList is for. GroupVersion string `json:"groupVersion" protobuf:"bytes,1,opt,name=groupVersion"` // resources contains the name of the resources and if they are namespaced. APIResources []APIResource `json:"resources" protobuf:"bytes,2,rep,name=resources"` }
APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.
func (*APIResourceList) DeepCopy ¶
func (in *APIResourceList) DeepCopy() *APIResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIResourceList.
func (*APIResourceList) DeepCopyInto ¶
func (in *APIResourceList) DeepCopyInto(out *APIResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*APIResourceList) DeepCopyObject ¶
func (in *APIResourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*APIResourceList) Descriptor ¶
func (*APIResourceList) Descriptor() ([]byte, []int)
func (*APIResourceList) Marshal ¶
func (m *APIResourceList) Marshal() (dAtA []byte, err error)
func (*APIResourceList) ProtoMessage ¶
func (*APIResourceList) ProtoMessage()
func (*APIResourceList) Reset ¶
func (m *APIResourceList) Reset()
func (*APIResourceList) Size ¶
func (m *APIResourceList) Size() (n int)
func (*APIResourceList) String ¶
func (this *APIResourceList) String() string
func (APIResourceList) SwaggerDoc ¶
func (APIResourceList) SwaggerDoc() map[string]string
func (*APIResourceList) Unmarshal ¶
func (m *APIResourceList) Unmarshal(dAtA []byte) error
type APIVersions ¶
type APIVersions struct { TypeMeta `json:",inline"` // versions are the api versions that are available. Versions []string `json:"versions" protobuf:"bytes,1,rep,name=versions"` // a map of client CIDR to server address that is serving this group. // This is to help clients reach servers in the most network-efficient way possible. // Clients can use the appropriate server address as per the CIDR that they match. // In case of multiple matches, clients should use the longest matching CIDR. // The server returns only those CIDRs that it thinks that the client can match. // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. ServerAddressByClientCIDRs []ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs" protobuf:"bytes,2,rep,name=serverAddressByClientCIDRs"` }
APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.
+protobuf.options.(gogoproto.goproto_stringer)=false +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*APIVersions) DeepCopy ¶
func (in *APIVersions) DeepCopy() *APIVersions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIVersions.
func (*APIVersions) DeepCopyInto ¶
func (in *APIVersions) DeepCopyInto(out *APIVersions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*APIVersions) DeepCopyObject ¶
func (in *APIVersions) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*APIVersions) Descriptor ¶
func (*APIVersions) Descriptor() ([]byte, []int)
func (APIVersions) GoString ¶
func (apiVersions APIVersions) GoString() string
func (*APIVersions) Marshal ¶
func (m *APIVersions) Marshal() (dAtA []byte, err error)
func (*APIVersions) ProtoMessage ¶
func (*APIVersions) ProtoMessage()
func (*APIVersions) Reset ¶
func (m *APIVersions) Reset()
func (*APIVersions) Size ¶
func (m *APIVersions) Size() (n int)
func (APIVersions) String ¶
func (apiVersions APIVersions) String() string
String returns available api versions as a human-friendly version string.
func (APIVersions) SwaggerDoc ¶
func (APIVersions) SwaggerDoc() map[string]string
func (*APIVersions) Unmarshal ¶
func (m *APIVersions) Unmarshal(dAtA []byte) error
type CauseType ¶
type CauseType string
CauseType is a machine readable value providing more detail about what occurred in a status response. An operation may have multiple causes for a status (whether Failure or Success).
const ( // CauseTypeFieldValueNotFound is used to report failure to find a requested value // (e.g. looking up an ID). CauseTypeFieldValueNotFound CauseType = "FieldValueNotFound" // CauseTypeFieldValueRequired is used to report required values that are not // provided (e.g. empty strings, null values, or empty arrays). CauseTypeFieldValueRequired CauseType = "FieldValueRequired" // CauseTypeFieldValueDuplicate is used to report collisions of values that must be // unique (e.g. unique IDs). CauseTypeFieldValueDuplicate CauseType = "FieldValueDuplicate" // CauseTypeFieldValueInvalid is used to report malformed values (e.g. failed regex // match). CauseTypeFieldValueInvalid CauseType = "FieldValueInvalid" // CauseTypeFieldValueNotSupported is used to report valid (as per formatting rules) // values that can not be handled (e.g. an enumerated string). CauseTypeFieldValueNotSupported CauseType = "FieldValueNotSupported" // CauseTypeUnexpectedServerResponse is used to report when the server responded to the client // without the expected return type. The presence of this cause indicates the error may be // due to an intervening proxy or the server software malfunctioning. CauseTypeUnexpectedServerResponse CauseType = "UnexpectedServerResponse" )
type Common ¶
type Common interface { GetResourceVersion() string SetResourceVersion(version string) GetSelfLink() string SetSelfLink(selfLink string) }
Common lets you work with core metadata from any of the versioned or internal API objects. Attempting to set or retrieve a field on an object that does not support that field will be a no-op and return a default value. TODO: move this, and TypeMeta and ListMeta, to a different package
type DeleteOptions ¶
type DeleteOptions struct { TypeMeta `json:",inline"` // The duration in seconds before the object should be deleted. Value must be non-negative integer. // The value zero indicates delete immediately. If this value is nil, the default grace period for the // specified type will be used. // Defaults to a per object value if not specified. zero means delete immediately. // +optional GracePeriodSeconds *int64 `json:"gracePeriodSeconds,omitempty" protobuf:"varint,1,opt,name=gracePeriodSeconds"` // Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be // returned. // +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"` }
DeleteOptions may be provided when deleting an API object.
func NewDeleteOptions ¶
func NewDeleteOptions(grace int64) *DeleteOptions
NewDeleteOptions returns a DeleteOptions indicating the resource should be deleted within the specified grace period. Use zero to indicate immediate deletion. If you would prefer to use the default grace period, use &metav1.DeleteOptions{} directly.
func NewPreconditionDeleteOptions ¶
func NewPreconditionDeleteOptions(uid string) *DeleteOptions
NewPreconditionDeleteOptions returns a DeleteOptions with a UID precondition set.
func (*DeleteOptions) DeepCopy ¶
func (in *DeleteOptions) DeepCopy() *DeleteOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeleteOptions.
func (*DeleteOptions) DeepCopyInto ¶
func (in *DeleteOptions) DeepCopyInto(out *DeleteOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DeleteOptions) DeepCopyObject ¶
func (in *DeleteOptions) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*DeleteOptions) Descriptor ¶
func (*DeleteOptions) Descriptor() ([]byte, []int)
func (*DeleteOptions) Marshal ¶
func (m *DeleteOptions) Marshal() (dAtA []byte, err error)
func (*DeleteOptions) ProtoMessage ¶
func (*DeleteOptions) ProtoMessage()
func (*DeleteOptions) Reset ¶
func (m *DeleteOptions) Reset()
func (*DeleteOptions) Size ¶
func (m *DeleteOptions) Size() (n int)
func (*DeleteOptions) String ¶
func (this *DeleteOptions) String() string
func (DeleteOptions) SwaggerDoc ¶
func (DeleteOptions) SwaggerDoc() map[string]string
func (*DeleteOptions) Unmarshal ¶
func (m *DeleteOptions) Unmarshal(dAtA []byte) error
type DeletionPropagation ¶
type DeletionPropagation string
DeletionPropagation decides if a deletion will propagate to the dependents of the object, and how the garbage collector will handle the propagation.
const ( // Orphans the dependents. DeletePropagationOrphan DeletionPropagation = "Orphan" // Deletes the object from the key-value store, the garbage collector will // delete the dependents in the background. DeletePropagationBackground DeletionPropagation = "Background" // The object exists in the key-value store until the garbage collector // deletes all the dependents whose ownerReference.blockOwnerDeletion=true // from the key-value store. API sever will put the "foregroundDeletion" // finalizer on the object, and sets its deletionTimestamp. This policy is // cascading, i.e., the dependents will be deleted with Foreground. DeletePropagationForeground DeletionPropagation = "Foreground" )
type Duration ¶
type Duration struct {
time.Duration `protobuf:"varint,1,opt,name=duration,casttype=time.Duration"`
}
Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json.
func (*Duration) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Duration.
func (*Duration) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Duration) Descriptor ¶
func (Duration) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Duration) ProtoMessage ¶
func (*Duration) ProtoMessage()
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface.
type ExportOptions ¶
type ExportOptions struct { TypeMeta `json:",inline"` // Should this value be exported. Export strips fields that a user can not specify. Export bool `json:"export" protobuf:"varint,1,opt,name=export"` // Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Exact bool `json:"exact" protobuf:"varint,2,opt,name=exact"` }
ExportOptions is the query options to the standard REST get call.
func (*ExportOptions) DeepCopy ¶
func (in *ExportOptions) DeepCopy() *ExportOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExportOptions.
func (*ExportOptions) DeepCopyInto ¶
func (in *ExportOptions) DeepCopyInto(out *ExportOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExportOptions) DeepCopyObject ¶
func (in *ExportOptions) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ExportOptions) Descriptor ¶
func (*ExportOptions) Descriptor() ([]byte, []int)
func (*ExportOptions) Marshal ¶
func (m *ExportOptions) Marshal() (dAtA []byte, err error)
func (*ExportOptions) ProtoMessage ¶
func (*ExportOptions) ProtoMessage()
func (*ExportOptions) Reset ¶
func (m *ExportOptions) Reset()
func (*ExportOptions) Size ¶
func (m *ExportOptions) Size() (n int)
func (*ExportOptions) String ¶
func (this *ExportOptions) String() string
func (ExportOptions) SwaggerDoc ¶
func (ExportOptions) SwaggerDoc() map[string]string
func (*ExportOptions) Unmarshal ¶
func (m *ExportOptions) Unmarshal(dAtA []byte) error
type GetOptions ¶
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"` // If true, partially initialized resources are included in the response. // +optional IncludeUninitialized bool `json:"includeUninitialized,omitempty" protobuf:"varint,2,opt,name=includeUninitialized"` }
GetOptions is the standard query options to the standard REST get call.
func (*GetOptions) DeepCopy ¶
func (in *GetOptions) DeepCopy() *GetOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetOptions.
func (*GetOptions) DeepCopyInto ¶
func (in *GetOptions) DeepCopyInto(out *GetOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GetOptions) DeepCopyObject ¶
func (in *GetOptions) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*GetOptions) Descriptor ¶
func (*GetOptions) Descriptor() ([]byte, []int)
func (*GetOptions) Marshal ¶
func (m *GetOptions) Marshal() (dAtA []byte, err error)
func (*GetOptions) ProtoMessage ¶
func (*GetOptions) ProtoMessage()
func (*GetOptions) Reset ¶
func (m *GetOptions) Reset()
func (*GetOptions) Size ¶
func (m *GetOptions) Size() (n int)
func (*GetOptions) String ¶
func (this *GetOptions) String() string
func (GetOptions) SwaggerDoc ¶
func (GetOptions) SwaggerDoc() map[string]string
func (*GetOptions) Unmarshal ¶
func (m *GetOptions) Unmarshal(dAtA []byte) error
type GroupKind ¶
type GroupKind struct { Group string `json:"group" protobuf:"bytes,1,opt,name=group"` Kind string `json:"kind" protobuf:"bytes,2,opt,name=kind"` }
GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types
+protobuf.options.(gogoproto.goproto_stringer)=false
func (*GroupKind) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupKind.
func (*GroupKind) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GroupKind) Descriptor ¶
func (*GroupKind) ProtoMessage ¶
func (*GroupKind) ProtoMessage()
type GroupResource ¶
type GroupResource struct { Group string `json:"group" protobuf:"bytes,1,opt,name=group"` Resource string `json:"resource" protobuf:"bytes,2,opt,name=resource"` }
GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types
+protobuf.options.(gogoproto.goproto_stringer)=false
func (*GroupResource) DeepCopy ¶
func (in *GroupResource) DeepCopy() *GroupResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupResource.
func (*GroupResource) DeepCopyInto ¶
func (in *GroupResource) DeepCopyInto(out *GroupResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GroupResource) Descriptor ¶
func (*GroupResource) Descriptor() ([]byte, []int)
func (*GroupResource) Marshal ¶
func (m *GroupResource) Marshal() (dAtA []byte, err error)
func (*GroupResource) ProtoMessage ¶
func (*GroupResource) ProtoMessage()
func (*GroupResource) Reset ¶
func (m *GroupResource) Reset()
func (*GroupResource) Size ¶
func (m *GroupResource) Size() (n int)
func (*GroupResource) String ¶
func (gr *GroupResource) String() string
func (*GroupResource) Unmarshal ¶
func (m *GroupResource) Unmarshal(dAtA []byte) error
type GroupVersion ¶
type GroupVersion struct { Group string `json:"group" protobuf:"bytes,1,opt,name=group"` Version string `json:"version" protobuf:"bytes,2,opt,name=version"` }
GroupVersion contains the "group" and the "version", which uniquely identifies the API.
+protobuf.options.(gogoproto.goproto_stringer)=false
func (*GroupVersion) DeepCopy ¶
func (in *GroupVersion) DeepCopy() *GroupVersion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVersion.
func (*GroupVersion) DeepCopyInto ¶
func (in *GroupVersion) DeepCopyInto(out *GroupVersion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GroupVersion) Descriptor ¶
func (*GroupVersion) Descriptor() ([]byte, []int)
func (GroupVersion) Empty ¶
func (gv GroupVersion) Empty() bool
Empty returns true if group and version are empty
func (*GroupVersion) Marshal ¶
func (m *GroupVersion) Marshal() (dAtA []byte, err error)
func (GroupVersion) MarshalJSON ¶
func (gv GroupVersion) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface.
func (*GroupVersion) ProtoMessage ¶
func (*GroupVersion) ProtoMessage()
func (*GroupVersion) Reset ¶
func (m *GroupVersion) Reset()
func (*GroupVersion) Size ¶
func (m *GroupVersion) Size() (n int)
func (GroupVersion) String ¶
func (gv GroupVersion) String() string
String puts "group" and "version" into a single "group/version" string. For the legacy v1 it returns "v1".
func (*GroupVersion) Unmarshal ¶
func (m *GroupVersion) Unmarshal(dAtA []byte) error
func (*GroupVersion) UnmarshalJSON ¶
func (gv *GroupVersion) UnmarshalJSON(value []byte) error
UnmarshalJSON implements the json.Unmarshaller interface.
func (*GroupVersion) UnmarshalText ¶
func (gv *GroupVersion) UnmarshalText(value []byte) error
UnmarshalTEXT implements the Ugorji's encoding.TextUnmarshaler interface.
type GroupVersionForDiscovery ¶
type GroupVersionForDiscovery struct { // groupVersion specifies the API group and version in the form "group/version" GroupVersion string `json:"groupVersion" protobuf:"bytes,1,opt,name=groupVersion"` // version specifies the version in the form of "version". This is to save // the clients the trouble of splitting the GroupVersion. Version string `json:"version" protobuf:"bytes,2,opt,name=version"` }
GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility.
func (*GroupVersionForDiscovery) DeepCopy ¶
func (in *GroupVersionForDiscovery) DeepCopy() *GroupVersionForDiscovery
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVersionForDiscovery.
func (*GroupVersionForDiscovery) DeepCopyInto ¶
func (in *GroupVersionForDiscovery) DeepCopyInto(out *GroupVersionForDiscovery)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GroupVersionForDiscovery) Descriptor ¶
func (*GroupVersionForDiscovery) Descriptor() ([]byte, []int)
func (*GroupVersionForDiscovery) Marshal ¶
func (m *GroupVersionForDiscovery) Marshal() (dAtA []byte, err error)
func (*GroupVersionForDiscovery) MarshalTo ¶
func (m *GroupVersionForDiscovery) MarshalTo(dAtA []byte) (int, error)
func (*GroupVersionForDiscovery) ProtoMessage ¶
func (*GroupVersionForDiscovery) ProtoMessage()
func (*GroupVersionForDiscovery) Reset ¶
func (m *GroupVersionForDiscovery) Reset()
func (*GroupVersionForDiscovery) Size ¶
func (m *GroupVersionForDiscovery) Size() (n int)
func (*GroupVersionForDiscovery) String ¶
func (this *GroupVersionForDiscovery) String() string
func (GroupVersionForDiscovery) SwaggerDoc ¶
func (GroupVersionForDiscovery) SwaggerDoc() map[string]string
func (*GroupVersionForDiscovery) Unmarshal ¶
func (m *GroupVersionForDiscovery) Unmarshal(dAtA []byte) error
type GroupVersionKind ¶
type GroupVersionKind struct { Group string `json:"group" protobuf:"bytes,1,opt,name=group"` Version string `json:"version" protobuf:"bytes,2,opt,name=version"` Kind string `json:"kind" protobuf:"bytes,3,opt,name=kind"` }
GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling
+protobuf.options.(gogoproto.goproto_stringer)=false
func (*GroupVersionKind) DeepCopy ¶
func (in *GroupVersionKind) DeepCopy() *GroupVersionKind
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVersionKind.
func (*GroupVersionKind) DeepCopyInto ¶
func (in *GroupVersionKind) DeepCopyInto(out *GroupVersionKind)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GroupVersionKind) Descriptor ¶
func (*GroupVersionKind) Descriptor() ([]byte, []int)
func (*GroupVersionKind) Marshal ¶
func (m *GroupVersionKind) Marshal() (dAtA []byte, err error)
func (*GroupVersionKind) ProtoMessage ¶
func (*GroupVersionKind) ProtoMessage()
func (*GroupVersionKind) Reset ¶
func (m *GroupVersionKind) Reset()
func (*GroupVersionKind) Size ¶
func (m *GroupVersionKind) Size() (n int)
func (GroupVersionKind) String ¶
func (gvk GroupVersionKind) String() string
func (*GroupVersionKind) Unmarshal ¶
func (m *GroupVersionKind) Unmarshal(dAtA []byte) error
type GroupVersionResource ¶
type GroupVersionResource struct { Group string `json:"group" protobuf:"bytes,1,opt,name=group"` Version string `json:"version" protobuf:"bytes,2,opt,name=version"` Resource string `json:"resource" protobuf:"bytes,3,opt,name=resource"` }
GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling
+protobuf.options.(gogoproto.goproto_stringer)=false
func (*GroupVersionResource) DeepCopy ¶
func (in *GroupVersionResource) DeepCopy() *GroupVersionResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVersionResource.
func (*GroupVersionResource) DeepCopyInto ¶
func (in *GroupVersionResource) DeepCopyInto(out *GroupVersionResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GroupVersionResource) Descriptor ¶
func (*GroupVersionResource) Descriptor() ([]byte, []int)
func (*GroupVersionResource) Marshal ¶
func (m *GroupVersionResource) Marshal() (dAtA []byte, err error)
func (*GroupVersionResource) MarshalTo ¶
func (m *GroupVersionResource) MarshalTo(dAtA []byte) (int, error)
func (*GroupVersionResource) ProtoMessage ¶
func (*GroupVersionResource) ProtoMessage()
func (*GroupVersionResource) Reset ¶
func (m *GroupVersionResource) Reset()
func (*GroupVersionResource) Size ¶
func (m *GroupVersionResource) Size() (n int)
func (*GroupVersionResource) String ¶
func (gvr *GroupVersionResource) String() string
func (*GroupVersionResource) Unmarshal ¶
func (m *GroupVersionResource) Unmarshal(dAtA []byte) error
type Initializer ¶
type Initializer struct { // name of the process that is responsible for initializing this object. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` }
Initializer is information about an initializer that has not yet completed.
func (*Initializer) DeepCopy ¶
func (in *Initializer) DeepCopy() *Initializer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Initializer.
func (*Initializer) DeepCopyInto ¶
func (in *Initializer) DeepCopyInto(out *Initializer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Initializer) Descriptor ¶
func (*Initializer) Descriptor() ([]byte, []int)
func (*Initializer) Marshal ¶
func (m *Initializer) Marshal() (dAtA []byte, err error)
func (*Initializer) ProtoMessage ¶
func (*Initializer) ProtoMessage()
func (*Initializer) Reset ¶
func (m *Initializer) Reset()
func (*Initializer) Size ¶
func (m *Initializer) Size() (n int)
func (*Initializer) String ¶
func (this *Initializer) String() string
func (Initializer) SwaggerDoc ¶
func (Initializer) SwaggerDoc() map[string]string
func (*Initializer) Unmarshal ¶
func (m *Initializer) Unmarshal(dAtA []byte) error
type Initializers ¶
type Initializers struct { // Pending is a list of initializers that must execute in order before this object is visible. // When the last pending initializer is removed, and no failing result is set, the initializers // struct will be set to nil and the object is considered as initialized and visible to all // clients. // +patchMergeKey=name // +patchStrategy=merge Pending []Initializer `json:"pending" protobuf:"bytes,1,rep,name=pending" patchStrategy:"merge" patchMergeKey:"name"` // If result is set with the Failure field, the object will be persisted to storage and then deleted, // ensuring that other clients can observe the deletion. Result *Status `json:"result,omitempty" protobuf:"bytes,2,opt,name=result"` }
Initializers tracks the progress of initialization.
func (*Initializers) DeepCopy ¶
func (in *Initializers) DeepCopy() *Initializers
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Initializers.
func (*Initializers) DeepCopyInto ¶
func (in *Initializers) DeepCopyInto(out *Initializers)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Initializers) Descriptor ¶
func (*Initializers) Descriptor() ([]byte, []int)
func (*Initializers) Marshal ¶
func (m *Initializers) Marshal() (dAtA []byte, err error)
func (*Initializers) ProtoMessage ¶
func (*Initializers) ProtoMessage()
func (*Initializers) Reset ¶
func (m *Initializers) Reset()
func (*Initializers) Size ¶
func (m *Initializers) Size() (n int)
func (*Initializers) String ¶
func (this *Initializers) String() string
func (Initializers) SwaggerDoc ¶
func (Initializers) SwaggerDoc() map[string]string
func (*Initializers) Unmarshal ¶
func (m *Initializers) Unmarshal(dAtA []byte) error
type InternalEvent ¶
InternalEvent makes watch.Event versioned +protobuf=false
func (*InternalEvent) DeepCopy ¶
func (in *InternalEvent) DeepCopy() *InternalEvent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalEvent.
func (*InternalEvent) DeepCopyInto ¶
func (in *InternalEvent) DeepCopyInto(out *InternalEvent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InternalEvent) DeepCopyObject ¶
func (e *InternalEvent) DeepCopyObject() runtime.Object
func (*InternalEvent) GetObjectKind ¶
func (e *InternalEvent) GetObjectKind() schema.ObjectKind
type LabelSelector ¶
type LabelSelector struct { // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels // map is equivalent to an element of matchExpressions, whose key field is "key", the // operator is "In", and the values array contains only "value". The requirements are ANDed. // +optional MatchLabels map[string]string `json:"matchLabels,omitempty" protobuf:"bytes,1,rep,name=matchLabels"` // matchExpressions is a list of label selector requirements. The requirements are ANDed. // +optional MatchExpressions []LabelSelectorRequirement `json:"matchExpressions,omitempty" protobuf:"bytes,2,rep,name=matchExpressions"` }
A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
func AddLabelToSelector ¶
func AddLabelToSelector(selector *LabelSelector, labelKey, labelValue string) *LabelSelector
AddLabelToSelector returns a selector with the given key and value added to the given selector's MatchLabels.
func CloneSelectorAndAddLabel ¶
func CloneSelectorAndAddLabel(selector *LabelSelector, labelKey, labelValue string) *LabelSelector
Clones the given selector and returns a new selector with the given key and value added. Returns the given selector, if labelKey is empty.
func ParseToLabelSelector ¶
func ParseToLabelSelector(selector string) (*LabelSelector, error)
ParseToLabelSelector parses a string representing a selector into a LabelSelector object. Note: This function should be kept in sync with the parser in pkg/labels/selector.go
func SetAsLabelSelector ¶
func SetAsLabelSelector(ls labels.Set) *LabelSelector
SetAsLabelSelector converts the labels.Set object into a LabelSelector api object.
func (*LabelSelector) DeepCopy ¶
func (in *LabelSelector) DeepCopy() *LabelSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelector.
func (*LabelSelector) DeepCopyInto ¶
func (in *LabelSelector) DeepCopyInto(out *LabelSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LabelSelector) Descriptor ¶
func (*LabelSelector) Descriptor() ([]byte, []int)
func (*LabelSelector) Marshal ¶
func (m *LabelSelector) Marshal() (dAtA []byte, err error)
func (*LabelSelector) ProtoMessage ¶
func (*LabelSelector) ProtoMessage()
func (*LabelSelector) Reset ¶
func (m *LabelSelector) Reset()
func (*LabelSelector) Size ¶
func (m *LabelSelector) Size() (n int)
func (*LabelSelector) String ¶
func (this *LabelSelector) String() string
func (LabelSelector) SwaggerDoc ¶
func (LabelSelector) SwaggerDoc() map[string]string
func (*LabelSelector) Unmarshal ¶
func (m *LabelSelector) Unmarshal(dAtA []byte) error
type LabelSelectorOperator ¶
type LabelSelectorOperator string
A label selector operator is the set of operators that can be used in a selector requirement.
const ( LabelSelectorOpIn LabelSelectorOperator = "In" LabelSelectorOpNotIn LabelSelectorOperator = "NotIn" LabelSelectorOpExists LabelSelectorOperator = "Exists" LabelSelectorOpDoesNotExist LabelSelectorOperator = "DoesNotExist" )
type LabelSelectorRequirement ¶
type LabelSelectorRequirement struct { // key is the label key that the selector applies to. // +patchMergeKey=key // +patchStrategy=merge Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key" protobuf:"bytes,1,opt,name=key"` // operator represents a key's relationship to a set of values. // Valid operators are In, NotIn, Exists and DoesNotExist. Operator LabelSelectorOperator `json:"operator" protobuf:"bytes,2,opt,name=operator,casttype=LabelSelectorOperator"` // values is an array of string values. If the operator is In or NotIn, // the values array must be non-empty. If the operator is Exists or DoesNotExist, // the values array must be empty. This array is replaced during a strategic // merge patch. // +optional Values []string `json:"values,omitempty" protobuf:"bytes,3,rep,name=values"` }
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
func (*LabelSelectorRequirement) DeepCopy ¶
func (in *LabelSelectorRequirement) DeepCopy() *LabelSelectorRequirement
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelectorRequirement.
func (*LabelSelectorRequirement) DeepCopyInto ¶
func (in *LabelSelectorRequirement) DeepCopyInto(out *LabelSelectorRequirement)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LabelSelectorRequirement) Descriptor ¶
func (*LabelSelectorRequirement) Descriptor() ([]byte, []int)
func (*LabelSelectorRequirement) Marshal ¶
func (m *LabelSelectorRequirement) Marshal() (dAtA []byte, err error)
func (*LabelSelectorRequirement) MarshalTo ¶
func (m *LabelSelectorRequirement) MarshalTo(dAtA []byte) (int, error)
func (*LabelSelectorRequirement) ProtoMessage ¶
func (*LabelSelectorRequirement) ProtoMessage()
func (*LabelSelectorRequirement) Reset ¶
func (m *LabelSelectorRequirement) Reset()
func (*LabelSelectorRequirement) Size ¶
func (m *LabelSelectorRequirement) Size() (n int)
func (*LabelSelectorRequirement) String ¶
func (this *LabelSelectorRequirement) String() string
func (LabelSelectorRequirement) SwaggerDoc ¶
func (LabelSelectorRequirement) SwaggerDoc() map[string]string
func (*LabelSelectorRequirement) Unmarshal ¶
func (m *LabelSelectorRequirement) Unmarshal(dAtA []byte) error
type List ¶
type List struct { TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new List.
func (*List) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*List) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*List) Descriptor ¶
func (*List) ProtoMessage ¶
func (*List) ProtoMessage()
func (List) SwaggerDoc ¶
type ListInterface ¶
type ListInterface interface { GetResourceVersion() string SetResourceVersion(version string) GetSelfLink() string SetSelfLink(selfLink string) GetContinue() string SetContinue(c string) }
ListInterface lets you work with list metadata from any of the versioned or internal API objects. Attempting to set or retrieve a field on an object that does not support that field will be a no-op and return a default value. TODO: move this, and TypeMeta and ListMeta, to a different package
type ListMeta ¶
type ListMeta struct { // selfLink is a URL representing this object. // Populated by the system. // Read-only. // +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/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 // 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. Continue string `json:"continue,omitempty" protobuf:"bytes,3,opt,name=continue"` }
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListMeta.
func (*ListMeta) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ListMeta) Descriptor ¶
func (*ListMeta) GetContinue ¶
func (*ListMeta) GetListMeta ¶
func (obj *ListMeta) GetListMeta() ListInterface
func (*ListMeta) GetResourceVersion ¶
func (*ListMeta) GetSelfLink ¶
func (*ListMeta) ProtoMessage ¶
func (*ListMeta) ProtoMessage()
func (*ListMeta) SetContinue ¶
func (*ListMeta) SetResourceVersion ¶
func (*ListMeta) SetSelfLink ¶
func (ListMeta) SwaggerDoc ¶
type ListMetaAccessor ¶
type ListMetaAccessor interface {
GetListMeta() ListInterface
}
ListMetaAccessor retrieves the list interface from an object
type ListOptions ¶
type ListOptions struct { TypeMeta `json:",inline"` // A selector to restrict the list of returned objects by their labels. // Defaults to everything. // +optional LabelSelector string `json:"labelSelector,omitempty" protobuf:"bytes,1,opt,name=labelSelector"` // A selector to restrict the list of returned objects by their fields. // Defaults to everything. // +optional FieldSelector string `json:"fieldSelector,omitempty" protobuf:"bytes,2,opt,name=fieldSelector"` // If true, partially initialized resources are included in the response. // +optional IncludeUninitialized bool `json:"includeUninitialized,omitempty" protobuf:"varint,6,opt,name=includeUninitialized"` // 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"` // 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 indicating the client must restart their list without // the continue field. This field is not supported when watch is true. Clients may start a watch from // the last resourceVersion value returned by the server and not miss any modifications. Continue string `json:"continue,omitempty" protobuf:"bytes,8,opt,name=continue"` }
ListOptions is the query options to a standard REST list call.
func SingleObject ¶
func SingleObject(meta ObjectMeta) ListOptions
SingleObject returns a ListOptions for watching a single object.
func (*ListOptions) DeepCopy ¶
func (in *ListOptions) DeepCopy() *ListOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListOptions.
func (*ListOptions) DeepCopyInto ¶
func (in *ListOptions) DeepCopyInto(out *ListOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ListOptions) DeepCopyObject ¶
func (in *ListOptions) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ListOptions) Descriptor ¶
func (*ListOptions) Descriptor() ([]byte, []int)
func (*ListOptions) Marshal ¶
func (m *ListOptions) Marshal() (dAtA []byte, err error)
func (*ListOptions) ProtoMessage ¶
func (*ListOptions) ProtoMessage()
func (*ListOptions) Reset ¶
func (m *ListOptions) Reset()
func (*ListOptions) Size ¶
func (m *ListOptions) Size() (n int)
func (*ListOptions) String ¶
func (this *ListOptions) String() string
func (ListOptions) SwaggerDoc ¶
func (ListOptions) SwaggerDoc() map[string]string
func (*ListOptions) Unmarshal ¶
func (m *ListOptions) Unmarshal(dAtA []byte) error
type MicroTime ¶
MicroTime is version of Time with microsecond level precision.
+protobuf.options.marshal=false +protobuf.as=Timestamp +protobuf.options.(gogoproto.goproto_stringer)=false
func DateMicro ¶
func DateMicro(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) MicroTime
DateMicro returns the MicroTime corresponding to the supplied parameters by wrapping time.Date.
func NewMicroTime ¶
NewMicroTime returns a wrapped instance of the provided time
func UnixMicro ¶
UnixMicro returns the local time corresponding to the given Unix time by wrapping time.Unix.
func (*MicroTime) BeforeTime ¶
BeforeTime reports whether the time instant t is before second-lever precision u.
func (*MicroTime) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MicroTime.
func (*MicroTime) DeepCopyInto ¶
DeepCopy returns a deep-copy of the MicroTime value. The underlying time.Time type is effectively immutable in the time API, so it is safe to copy-by-assign, despite the presence of (unexported) Pointer fields.
func (*MicroTime) Descriptor ¶
func (*MicroTime) EqualTime ¶
EqualTime reports whether the time instant t is equal to second-lever precision u.
func (MicroTime) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (MicroTime) MarshalQueryParameter ¶
MarshalQueryParameter converts to a URL query parameter value
func (MicroTime) OpenAPISchemaFormat ¶
OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
func (MicroTime) OpenAPISchemaType ¶
OpenAPISchemaType is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
See: https://github.com/kubernetes/kube-openapi/tree/master/pkg/generators
func (*MicroTime) ProtoMessage ¶
func (*MicroTime) ProtoMessage()
func (*MicroTime) ProtoMicroTime ¶
Timestamp returns the Time as a new Timestamp value.
func (*MicroTime) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface.
func (*MicroTime) UnmarshalQueryParameter ¶
UnmarshalQueryParameter converts from a URL query parameter value to an object
type Object ¶
type Object interface { GetNamespace() string SetNamespace(namespace string) GetName() string SetName(name string) GetGenerateName() string SetGenerateName(name string) GetUID() types.UID SetUID(uid types.UID) GetResourceVersion() string SetResourceVersion(version string) GetGeneration() int64 SetGeneration(generation int64) GetSelfLink() string SetSelfLink(selfLink string) GetCreationTimestamp() Time SetCreationTimestamp(timestamp Time) GetDeletionTimestamp() *Time SetDeletionTimestamp(timestamp *Time) GetDeletionGracePeriodSeconds() *int64 SetDeletionGracePeriodSeconds(*int64) GetLabels() map[string]string SetLabels(labels map[string]string) GetAnnotations() map[string]string SetAnnotations(annotations map[string]string) GetInitializers() *Initializers SetInitializers(initializers *Initializers) GetFinalizers() []string SetFinalizers(finalizers []string) GetOwnerReferences() []OwnerReference SetOwnerReferences([]OwnerReference) GetClusterName() string SetClusterName(clusterName string) }
Object lets you work with object metadata from any of the versioned or internal API objects. Attempting to set or retrieve a field on an object that does not support that field (Name, UID, Namespace on lists) will be a no-op and return a default value.
type ObjectMeta ¶
type ObjectMeta struct { // Name must be unique within a namespace. Is required when creating resources, although // some resources may allow a client to request the generation of an appropriate name // automatically. Name is primarily intended for creation idempotence and configuration // definition. // Cannot be updated. // More info: http://kubernetes.io/docs/user-guide/identifiers#names // +optional Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` // GenerateName is an optional prefix, used by the server, to generate a unique // name ONLY IF the Name field has not been provided. // If this field is used, the name returned to the client will be different // than the name passed. This value will also be combined with a unique suffix. // The provided value has the same validation rules as the Name field, // and may be truncated by the length of the suffix required to make the value // unique on the server. // // If this field is specified and the generated name exists, the server will // NOT return a 409 - instead, it will either return 201 Created or 500 with Reason // ServerTimeout indicating a unique name could not be found in the time allotted, and the client // should retry (optionally after the time indicated in the Retry-After header). // // Applied only if Name is not specified. // More info: https://git.k8s.io/community/contributors/devel/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. // +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/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/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/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"` // An initializer is a controller which enforces some system invariant at object creation time. // This field is a list of initializers that have not yet acted on this object. If nil or empty, // this object has been completely initialized. Otherwise, the object is considered uninitialized // and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to // observe uninitialized objects. // // When an object is created, the system will populate this list with the current set of initializers. // Only privileged users may set or modify this list. Once it is empty, it may not be modified further // by any user. Initializers *Initializers `json:"initializers,omitempty" protobuf:"bytes,16,opt,name=initializers"` // 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. // +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"` }
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
func (*ObjectMeta) DeepCopy ¶
func (in *ObjectMeta) DeepCopy() *ObjectMeta
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMeta.
func (*ObjectMeta) DeepCopyInto ¶
func (in *ObjectMeta) DeepCopyInto(out *ObjectMeta)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ObjectMeta) Descriptor ¶
func (*ObjectMeta) Descriptor() ([]byte, []int)
func (*ObjectMeta) GetAnnotations ¶
func (meta *ObjectMeta) GetAnnotations() map[string]string
func (*ObjectMeta) GetClusterName ¶
func (meta *ObjectMeta) GetClusterName() string
func (*ObjectMeta) GetCreationTimestamp ¶
func (meta *ObjectMeta) GetCreationTimestamp() Time
func (*ObjectMeta) GetDeletionGracePeriodSeconds ¶
func (meta *ObjectMeta) GetDeletionGracePeriodSeconds() *int64
func (*ObjectMeta) GetDeletionTimestamp ¶
func (meta *ObjectMeta) GetDeletionTimestamp() *Time
func (*ObjectMeta) GetFinalizers ¶
func (meta *ObjectMeta) GetFinalizers() []string
func (*ObjectMeta) GetGenerateName ¶
func (meta *ObjectMeta) GetGenerateName() string
func (*ObjectMeta) GetGeneration ¶
func (meta *ObjectMeta) GetGeneration() int64
func (*ObjectMeta) GetInitializers ¶
func (meta *ObjectMeta) GetInitializers() *Initializers
func (*ObjectMeta) GetLabels ¶
func (meta *ObjectMeta) GetLabels() map[string]string
func (*ObjectMeta) GetName ¶
func (meta *ObjectMeta) GetName() string
func (*ObjectMeta) GetNamespace ¶
func (meta *ObjectMeta) GetNamespace() string
Namespace implements metav1.Object for any object with an ObjectMeta typed field. Allows fast, direct access to metadata fields for API objects.
func (*ObjectMeta) GetObjectMeta ¶
func (obj *ObjectMeta) GetObjectMeta() Object
func (*ObjectMeta) GetOwnerReferences ¶
func (meta *ObjectMeta) GetOwnerReferences() []OwnerReference
func (*ObjectMeta) GetResourceVersion ¶
func (meta *ObjectMeta) GetResourceVersion() string
func (*ObjectMeta) GetSelfLink ¶
func (meta *ObjectMeta) GetSelfLink() string
func (*ObjectMeta) GetUID ¶
func (meta *ObjectMeta) GetUID() types.UID
func (*ObjectMeta) Marshal ¶
func (m *ObjectMeta) Marshal() (dAtA []byte, err error)
func (*ObjectMeta) ProtoMessage ¶
func (*ObjectMeta) ProtoMessage()
func (*ObjectMeta) Reset ¶
func (m *ObjectMeta) Reset()
func (*ObjectMeta) SetAnnotations ¶
func (meta *ObjectMeta) SetAnnotations(annotations map[string]string)
func (*ObjectMeta) SetClusterName ¶
func (meta *ObjectMeta) SetClusterName(clusterName string)
func (*ObjectMeta) SetCreationTimestamp ¶
func (meta *ObjectMeta) SetCreationTimestamp(creationTimestamp Time)
func (*ObjectMeta) SetDeletionGracePeriodSeconds ¶
func (meta *ObjectMeta) SetDeletionGracePeriodSeconds(deletionGracePeriodSeconds *int64)
func (*ObjectMeta) SetDeletionTimestamp ¶
func (meta *ObjectMeta) SetDeletionTimestamp(deletionTimestamp *Time)
func (*ObjectMeta) SetFinalizers ¶
func (meta *ObjectMeta) SetFinalizers(finalizers []string)
func (*ObjectMeta) SetGenerateName ¶
func (meta *ObjectMeta) SetGenerateName(generateName string)
func (*ObjectMeta) SetGeneration ¶
func (meta *ObjectMeta) SetGeneration(generation int64)
func (*ObjectMeta) SetInitializers ¶
func (meta *ObjectMeta) SetInitializers(initializers *Initializers)
func (*ObjectMeta) SetLabels ¶
func (meta *ObjectMeta) SetLabels(labels map[string]string)
func (*ObjectMeta) SetName ¶
func (meta *ObjectMeta) SetName(name string)
func (*ObjectMeta) SetNamespace ¶
func (meta *ObjectMeta) SetNamespace(namespace string)
func (*ObjectMeta) SetOwnerReferences ¶
func (meta *ObjectMeta) SetOwnerReferences(references []OwnerReference)
func (*ObjectMeta) SetResourceVersion ¶
func (meta *ObjectMeta) SetResourceVersion(version string)
func (*ObjectMeta) SetSelfLink ¶
func (meta *ObjectMeta) SetSelfLink(selfLink string)
func (*ObjectMeta) SetUID ¶
func (meta *ObjectMeta) SetUID(uid types.UID)
func (*ObjectMeta) Size ¶
func (m *ObjectMeta) Size() (n int)
func (*ObjectMeta) String ¶
func (this *ObjectMeta) String() string
func (ObjectMeta) SwaggerDoc ¶
func (ObjectMeta) SwaggerDoc() map[string]string
func (*ObjectMeta) Unmarshal ¶
func (m *ObjectMeta) Unmarshal(dAtA []byte) error
type ObjectMetaAccessor ¶
type ObjectMetaAccessor interface {
GetObjectMeta() Object
}
TODO: move this, Object, List, and Type to a different package
type OwnerReference ¶
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/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. Currently, an owning object must be in the same namespace, so there is no namespace field.
func GetControllerOf ¶
func GetControllerOf(controllee Object) *OwnerReference
GetControllerOf returns a pointer to a copy of the controllerRef if controllee has a controller
func NewControllerRef ¶
func NewControllerRef(owner Object, gvk schema.GroupVersionKind) *OwnerReference
NewControllerRef creates an OwnerReference pointing to the given owner.
func (*OwnerReference) DeepCopy ¶
func (in *OwnerReference) DeepCopy() *OwnerReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnerReference.
func (*OwnerReference) DeepCopyInto ¶
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 ¶
func (*OwnerReference) Descriptor() ([]byte, []int)
func (*OwnerReference) Marshal ¶
func (m *OwnerReference) Marshal() (dAtA []byte, err error)
func (*OwnerReference) ProtoMessage ¶
func (*OwnerReference) ProtoMessage()
func (*OwnerReference) Reset ¶
func (m *OwnerReference) Reset()
func (*OwnerReference) Size ¶
func (m *OwnerReference) Size() (n int)
func (*OwnerReference) String ¶
func (this *OwnerReference) String() string
func (OwnerReference) SwaggerDoc ¶
func (OwnerReference) SwaggerDoc() map[string]string
func (*OwnerReference) Unmarshal ¶
func (m *OwnerReference) Unmarshal(dAtA []byte) error
type Patch ¶
type Patch struct{}
Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.
func (*Patch) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Patch.
func (*Patch) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Patch) Descriptor ¶
func (*Patch) ProtoMessage ¶
func (*Patch) ProtoMessage()
func (Patch) SwaggerDoc ¶
type Preconditions ¶
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"` }
Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.
func NewUIDPreconditions ¶
func NewUIDPreconditions(uid string) *Preconditions
NewUIDPreconditions returns a Preconditions with UID set.
func (*Preconditions) DeepCopy ¶
func (in *Preconditions) DeepCopy() *Preconditions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Preconditions.
func (*Preconditions) DeepCopyInto ¶
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 ¶
func (*Preconditions) Descriptor() ([]byte, []int)
func (*Preconditions) Marshal ¶
func (m *Preconditions) Marshal() (dAtA []byte, err error)
func (*Preconditions) ProtoMessage ¶
func (*Preconditions) ProtoMessage()
func (*Preconditions) Reset ¶
func (m *Preconditions) Reset()
func (*Preconditions) Size ¶
func (m *Preconditions) Size() (n int)
func (*Preconditions) String ¶
func (this *Preconditions) String() string
func (Preconditions) SwaggerDoc ¶
func (Preconditions) SwaggerDoc() map[string]string
func (*Preconditions) Unmarshal ¶
func (m *Preconditions) Unmarshal(dAtA []byte) error
type RootPaths ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RootPaths.
func (*RootPaths) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RootPaths) Descriptor ¶
func (*RootPaths) ProtoMessage ¶
func (*RootPaths) ProtoMessage()
func (RootPaths) SwaggerDoc ¶
type ServerAddressByClientCIDR ¶
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 ¶
func (in *ServerAddressByClientCIDR) DeepCopy() *ServerAddressByClientCIDR
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerAddressByClientCIDR.
func (*ServerAddressByClientCIDR) DeepCopyInto ¶
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 ¶
func (*ServerAddressByClientCIDR) Descriptor() ([]byte, []int)
func (*ServerAddressByClientCIDR) Marshal ¶
func (m *ServerAddressByClientCIDR) Marshal() (dAtA []byte, err error)
func (*ServerAddressByClientCIDR) MarshalTo ¶
func (m *ServerAddressByClientCIDR) MarshalTo(dAtA []byte) (int, error)
func (*ServerAddressByClientCIDR) ProtoMessage ¶
func (*ServerAddressByClientCIDR) ProtoMessage()
func (*ServerAddressByClientCIDR) Reset ¶
func (m *ServerAddressByClientCIDR) Reset()
func (*ServerAddressByClientCIDR) Size ¶
func (m *ServerAddressByClientCIDR) Size() (n int)
func (*ServerAddressByClientCIDR) String ¶
func (this *ServerAddressByClientCIDR) String() string
func (ServerAddressByClientCIDR) SwaggerDoc ¶
func (ServerAddressByClientCIDR) SwaggerDoc() map[string]string
func (*ServerAddressByClientCIDR) Unmarshal ¶
func (m *ServerAddressByClientCIDR) Unmarshal(dAtA []byte) error
type Status ¶
type Status struct { TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/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/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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.
func (*Status) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Status) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Status) Descriptor ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (Status) SwaggerDoc ¶
type StatusCause ¶
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 ¶
func (in *StatusCause) DeepCopy() *StatusCause
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatusCause.
func (*StatusCause) DeepCopyInto ¶
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 ¶
func (*StatusCause) Descriptor() ([]byte, []int)
func (*StatusCause) Marshal ¶
func (m *StatusCause) Marshal() (dAtA []byte, err error)
func (*StatusCause) ProtoMessage ¶
func (*StatusCause) ProtoMessage()
func (*StatusCause) Reset ¶
func (m *StatusCause) Reset()
func (*StatusCause) Size ¶
func (m *StatusCause) Size() (n int)
func (*StatusCause) String ¶
func (this *StatusCause) String() string
func (StatusCause) SwaggerDoc ¶
func (StatusCause) SwaggerDoc() map[string]string
func (*StatusCause) Unmarshal ¶
func (m *StatusCause) Unmarshal(dAtA []byte) error
type StatusDetails ¶
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/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 ¶
func (in *StatusDetails) DeepCopy() *StatusDetails
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatusDetails.
func (*StatusDetails) DeepCopyInto ¶
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 ¶
func (*StatusDetails) Descriptor() ([]byte, []int)
func (*StatusDetails) Marshal ¶
func (m *StatusDetails) Marshal() (dAtA []byte, err error)
func (*StatusDetails) ProtoMessage ¶
func (*StatusDetails) ProtoMessage()
func (*StatusDetails) Reset ¶
func (m *StatusDetails) Reset()
func (*StatusDetails) Size ¶
func (m *StatusDetails) Size() (n int)
func (*StatusDetails) String ¶
func (this *StatusDetails) String() string
func (StatusDetails) SwaggerDoc ¶
func (StatusDetails) SwaggerDoc() map[string]string
func (*StatusDetails) Unmarshal ¶
func (m *StatusDetails) Unmarshal(dAtA []byte) error
type StatusReason ¶
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 = "" // 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. 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. 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" // 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" // but the requested service is unavailable at this time. // Retrying the request after some time might succeed. // Status code 503 StatusReasonServiceUnavailable StatusReason = "ServiceUnavailable" )
type Time ¶
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 (*Time) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Time.
func (*Time) DeepCopyInto ¶
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 ¶
func (Time) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (Time) MarshalQueryParameter ¶
MarshalQueryParameter converts to a URL query parameter value
func (Time) OpenAPISchemaFormat ¶
OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
func (Time) OpenAPISchemaType ¶
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 ¶
func (*Time) ProtoMessage()
func (Time) Rfc3339Copy ¶
Rfc3339Copy returns a copy of the Time at second-level precision.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface.
func (*Time) UnmarshalQueryParameter ¶
UnmarshalQueryParameter converts from a URL query parameter value to an object
type Timestamp ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Timestamp.
func (*Timestamp) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Timestamp) Descriptor ¶
func (*Timestamp) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
type Type ¶
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 ¶
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/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/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 ¶
func (*TypeMeta) GetObjectKind ¶
func (obj *TypeMeta) GetObjectKind() schema.ObjectKind
func (*TypeMeta) GroupVersionKind ¶
func (obj *TypeMeta) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta
func (*TypeMeta) ProtoMessage ¶
func (*TypeMeta) ProtoMessage()
func (*TypeMeta) SetGroupVersionKind ¶
func (obj *TypeMeta) SetGroupVersionKind(gvk schema.GroupVersionKind)
SetGroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta
func (TypeMeta) SwaggerDoc ¶
type Verbs ¶
type Verbs []string
Verbs masks the value so protobuf can generate
+protobuf.nullable=true +protobuf.options.(gogoproto.goproto_stringer)=false
func (Verbs) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Verbs.
func (Verbs) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Verbs) Descriptor ¶
func (*Verbs) ProtoMessage ¶
func (*Verbs) ProtoMessage()
type WatchEvent ¶
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 // depending on context. Object runtime.RawExtension `json:"object" protobuf:"bytes,2,opt,name=object"` }
Event represents a single event to a watched resource.
+protobuf=true +k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*WatchEvent) DeepCopy ¶
func (in *WatchEvent) DeepCopy() *WatchEvent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WatchEvent.
func (*WatchEvent) DeepCopyInto ¶
func (in *WatchEvent) DeepCopyInto(out *WatchEvent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WatchEvent) DeepCopyObject ¶
func (in *WatchEvent) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*WatchEvent) Descriptor ¶
func (*WatchEvent) Descriptor() ([]byte, []int)
func (*WatchEvent) GetObjectKind ¶
func (e *WatchEvent) GetObjectKind() schema.ObjectKind
func (*WatchEvent) Marshal ¶
func (m *WatchEvent) Marshal() (dAtA []byte, err error)
func (*WatchEvent) ProtoMessage ¶
func (*WatchEvent) ProtoMessage()
func (*WatchEvent) Reset ¶
func (m *WatchEvent) Reset()
func (*WatchEvent) Size ¶
func (m *WatchEvent) Size() (n int)
func (*WatchEvent) String ¶
func (this *WatchEvent) String() string
func (*WatchEvent) Unmarshal ¶
func (m *WatchEvent) Unmarshal(dAtA []byte) error