v1

package
v1.12.17 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 17 Imported by: 32

Documentation ¶

Overview ¶

Package types contains slimmer versions of k8s types.

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

The package contains two categories of types:

  • external (serialized) types that lack their own version (e.g TypeMeta)
  • internal (never-serialized) types that are needed by several different api groups, and so live here, to avoid duplication and/or import loops (e.g. LabelSelector).

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

Index ¶

Constants ¶

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

GroupName is the group name for this API.

Variables ¶

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

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

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

SchemeGroupVersion is group version used to register these objects

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

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

Functions ¶

func AddMetaToScheme ¶

func AddMetaToScheme(scheme *runtime.Scheme) error

AddMetaToScheme registers base meta types into schemas.

func FormatLabelSelector ¶

func FormatLabelSelector(labelSelector *LabelSelector) string

FormatLabelSelector convert labelSelector into plain string

func FullOwnerReferences ¶

func FullOwnerReferences(references []OwnerReference) []metav1.OwnerReference

FullOwnerReferences converts slim OwnerReferences to original OwnerReferences

func Kind ¶

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

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

Types ¶

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.
	//
	// +kubebuilder:validation:Optional
	MatchLabels map[string]MatchLabelsValue `json:"matchLabels,omitempty" protobuf:"bytes,1,rep,name=matchLabels"`
	// matchExpressions is a list of label selector requirements. The requirements are ANDed.
	// +kubebuilder:validation:Optional
	MatchExpressions []LabelSelectorRequirement `json:"matchExpressions,omitempty" protobuf:"bytes,2,rep,name=matchExpressions"`
}

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

func (*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) DeepEqual ¶

func (in *LabelSelector) DeepEqual(other *LabelSelector) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

func (*LabelSelector) Descriptor ¶

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

func (*LabelSelector) Marshal ¶

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

func (*LabelSelector) MarshalTo ¶

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

func (*LabelSelector) MarshalToSizedBuffer ¶

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

func (*LabelSelector) ProtoMessage ¶

func (*LabelSelector) ProtoMessage()

func (*LabelSelector) Reset ¶

func (m *LabelSelector) Reset()

func (*LabelSelector) Size ¶

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

func (*LabelSelector) String ¶

func (this *LabelSelector) String() string

func (*LabelSelector) Unmarshal ¶

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

func (*LabelSelector) XXX_DiscardUnknown ¶

func (m *LabelSelector) XXX_DiscardUnknown()

func (*LabelSelector) XXX_Marshal ¶

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

func (*LabelSelector) XXX_Merge ¶

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

func (*LabelSelector) XXX_Size ¶

func (m *LabelSelector) XXX_Size() int

func (*LabelSelector) XXX_Unmarshal ¶

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

type LabelSelectorOperator ¶

type LabelSelectorOperator string

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

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

type LabelSelectorRequirement ¶

type LabelSelectorRequirement struct {
	// key is the label key that the selector applies to.
	// +patchMergeKey=key
	// +patchStrategy=merge
	Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key" protobuf:"bytes,1,opt,name=key"`
	// operator represents a key's relationship to a set of values.
	// Valid operators are In, NotIn, Exists and DoesNotExist.
	//
	// +kubebuilder:validation:Enum=In;NotIn;Exists;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.
	//
	// +kubebuilder:validation:Optional
	Values []string `json:"values,omitempty" protobuf:"bytes,3,rep,name=values"`
}

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

func (*LabelSelectorRequirement) DeepCopy ¶

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

func (*LabelSelectorRequirement) DeepCopyInto ¶

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

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

func (*LabelSelectorRequirement) DeepEqual ¶

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

func (*LabelSelectorRequirement) Descriptor ¶

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

func (*LabelSelectorRequirement) Marshal ¶

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

func (*LabelSelectorRequirement) MarshalTo ¶

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

func (*LabelSelectorRequirement) MarshalToSizedBuffer ¶

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

func (*LabelSelectorRequirement) ProtoMessage ¶

func (*LabelSelectorRequirement) ProtoMessage()

func (*LabelSelectorRequirement) Reset ¶

func (m *LabelSelectorRequirement) Reset()

func (*LabelSelectorRequirement) Size ¶

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

func (*LabelSelectorRequirement) String ¶

func (this *LabelSelectorRequirement) String() string

func (*LabelSelectorRequirement) Unmarshal ¶

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

func (*LabelSelectorRequirement) XXX_DiscardUnknown ¶

func (m *LabelSelectorRequirement) XXX_DiscardUnknown()

func (*LabelSelectorRequirement) XXX_Marshal ¶

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

func (*LabelSelectorRequirement) XXX_Merge ¶

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

func (*LabelSelectorRequirement) XXX_Size ¶

func (m *LabelSelectorRequirement) XXX_Size() int

func (*LabelSelectorRequirement) XXX_Unmarshal ¶

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

type ListMeta ¶

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

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

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

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

func (*ListMeta) DeepCopy ¶

func (in *ListMeta) DeepCopy() *ListMeta

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

func (*ListMeta) DeepCopyInto ¶

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

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

func (*ListMeta) DeepEqual ¶

func (in *ListMeta) DeepEqual(other *ListMeta) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

func (*ListMeta) Descriptor ¶

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

func (*ListMeta) GetContinue ¶

func (meta *ListMeta) GetContinue() string

func (*ListMeta) GetListMeta ¶

func (obj *ListMeta) GetListMeta() metav1.ListInterface

func (*ListMeta) GetRemainingItemCount ¶

func (meta *ListMeta) GetRemainingItemCount() *int64

func (*ListMeta) GetResourceVersion ¶

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

func (*ListMeta) Marshal ¶

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

func (*ListMeta) MarshalTo ¶

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

func (*ListMeta) MarshalToSizedBuffer ¶

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

func (*ListMeta) ProtoMessage ¶

func (*ListMeta) ProtoMessage()

func (*ListMeta) Reset ¶

func (m *ListMeta) Reset()

func (*ListMeta) SetContinue ¶

func (meta *ListMeta) SetContinue(c string)

func (*ListMeta) SetRemainingItemCount ¶

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

func (*ListMeta) SetResourceVersion ¶

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

func (*ListMeta) Size ¶

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

func (*ListMeta) String ¶

func (this *ListMeta) String() string

func (*ListMeta) Unmarshal ¶

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

func (*ListMeta) XXX_DiscardUnknown ¶

func (m *ListMeta) XXX_DiscardUnknown()

func (*ListMeta) XXX_Marshal ¶

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

func (*ListMeta) XXX_Merge ¶

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

func (*ListMeta) XXX_Size ¶

func (m *ListMeta) XXX_Size() int

func (*ListMeta) XXX_Unmarshal ¶

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

type MatchLabelsValue ¶

type MatchLabelsValue = string

MatchLabelsValue represents the value from the MatchLabels {key,value} pair.

+kubebuilder:validation:MaxLength=63 +kubebuilder:validation:Pattern=`^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$`

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 return a 409.
	//
	// Applied only if Name is not specified.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
	// +optional
	GenerateName string `json:"generateName,omitempty" protobuf:"bytes,2,opt,name=generateName"`

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

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

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

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

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

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) DeepEqual ¶

func (in *ObjectMeta) DeepEqual(other *ObjectMeta) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. 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) GetCreationTimestamp ¶

func (meta *ObjectMeta) GetCreationTimestamp() metav1.Time

func (*ObjectMeta) GetDeletionGracePeriodSeconds ¶

func (meta *ObjectMeta) GetDeletionGracePeriodSeconds() *int64

func (*ObjectMeta) GetDeletionTimestamp ¶

func (meta *ObjectMeta) GetDeletionTimestamp() *metav1.Time

func (*ObjectMeta) GetFinalizers ¶

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

func (*ObjectMeta) GetGenerateName ¶

func (meta *ObjectMeta) GetGenerateName() string

func (*ObjectMeta) GetGeneration ¶

func (meta *ObjectMeta) GetGeneration() int64

func (*ObjectMeta) GetLabels ¶

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

func (*ObjectMeta) GetManagedFields ¶

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

func (*ObjectMeta) GetName ¶

func (meta *ObjectMeta) GetName() string

func (*ObjectMeta) GetNamespace ¶

func (meta *ObjectMeta) GetNamespace() string

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

func (*ObjectMeta) GetObjectMeta ¶

func (obj *ObjectMeta) GetObjectMeta() metav1.Object

func (*ObjectMeta) GetOwnerReferences ¶

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

func (*ObjectMeta) GetResourceVersion ¶

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

func (*ObjectMeta) GetUID ¶

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

func (*ObjectMeta) GetZZZ_DeprecatedClusterName ¶

func (meta *ObjectMeta) GetZZZ_DeprecatedClusterName() string

func (*ObjectMeta) Marshal ¶

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

func (*ObjectMeta) MarshalTo ¶

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

func (*ObjectMeta) MarshalToSizedBuffer ¶

func (m *ObjectMeta) MarshalToSizedBuffer(dAtA []byte) (int, 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) SetCreationTimestamp ¶

func (meta *ObjectMeta) SetCreationTimestamp(_ metav1.Time)

func (*ObjectMeta) SetDeletionGracePeriodSeconds ¶

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

func (*ObjectMeta) SetDeletionTimestamp ¶

func (meta *ObjectMeta) SetDeletionTimestamp(_ *metav1.Time)

func (*ObjectMeta) SetFinalizers ¶

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

func (*ObjectMeta) SetGenerateName ¶

func (meta *ObjectMeta) SetGenerateName(string)

func (*ObjectMeta) SetGeneration ¶

func (meta *ObjectMeta) SetGeneration(_ int64)

func (*ObjectMeta) SetLabels ¶

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

func (*ObjectMeta) SetManagedFields ¶

func (meta *ObjectMeta) SetManagedFields(_ []metav1.ManagedFieldsEntry)

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 []metav1.OwnerReference)

func (*ObjectMeta) SetResourceVersion ¶

func (meta *ObjectMeta) SetResourceVersion(ver string)
func (meta *ObjectMeta) SetSelfLink(_ string)

func (*ObjectMeta) SetUID ¶

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

func (*ObjectMeta) SetZZZ_DeprecatedClusterName ¶

func (meta *ObjectMeta) SetZZZ_DeprecatedClusterName(_ string)

func (*ObjectMeta) Size ¶

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

func (*ObjectMeta) String ¶

func (this *ObjectMeta) String() string

func (*ObjectMeta) Unmarshal ¶

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

func (*ObjectMeta) XXX_DiscardUnknown ¶

func (m *ObjectMeta) XXX_DiscardUnknown()

func (*ObjectMeta) XXX_Marshal ¶

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

func (*ObjectMeta) XXX_Merge ¶

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

func (*ObjectMeta) XXX_Size ¶

func (m *ObjectMeta) XXX_Size() int

func (*ObjectMeta) XXX_Unmarshal ¶

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

type OwnerReference ¶

type OwnerReference struct {
	// Kind of the referent.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"`
	// Name of the referent.
	// More info: http://kubernetes.io/docs/user-guide/identifiers#names
	Name string `json:"name" protobuf:"bytes,3,opt,name=name"`
	// If true, this reference points to the managing controller.
	// +optional
	Controller *bool `json:"controller,omitempty" protobuf:"varint,6,opt,name=controller"`
}

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

func SlimOwnerReferences ¶

func SlimOwnerReferences(references []metav1.OwnerReference) []OwnerReference

SlimOwnerReferences converts original OwnerReferences to slim OwnerReferences

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) DeepEqual ¶

func (in *OwnerReference) DeepEqual(other *OwnerReference) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. 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) MarshalTo ¶

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

func (*OwnerReference) MarshalToSizedBuffer ¶

func (m *OwnerReference) MarshalToSizedBuffer(dAtA []byte) (int, 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) Unmarshal ¶

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

func (*OwnerReference) XXX_DiscardUnknown ¶

func (m *OwnerReference) XXX_DiscardUnknown()

func (*OwnerReference) XXX_Marshal ¶

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

func (*OwnerReference) XXX_Merge ¶

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

func (*OwnerReference) XXX_Size ¶

func (m *OwnerReference) XXX_Size() int

func (*OwnerReference) XXX_Unmarshal ¶

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

type PartialObjectMetadata ¶

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

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

func (*PartialObjectMetadata) DeepCopy ¶

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

func (*PartialObjectMetadata) DeepCopyInto ¶

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

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

func (*PartialObjectMetadata) DeepCopyObject ¶

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

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

func (*PartialObjectMetadata) DeepEqual ¶

func (in *PartialObjectMetadata) DeepEqual(other *PartialObjectMetadata) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

func (*PartialObjectMetadata) Descriptor ¶

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

func (*PartialObjectMetadata) Marshal ¶

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

func (*PartialObjectMetadata) MarshalTo ¶

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

func (*PartialObjectMetadata) MarshalToSizedBuffer ¶

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

func (*PartialObjectMetadata) ProtoMessage ¶

func (*PartialObjectMetadata) ProtoMessage()

func (*PartialObjectMetadata) Reset ¶

func (m *PartialObjectMetadata) Reset()

func (*PartialObjectMetadata) Size ¶

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

func (*PartialObjectMetadata) String ¶

func (this *PartialObjectMetadata) String() string

func (*PartialObjectMetadata) Unmarshal ¶

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

func (*PartialObjectMetadata) XXX_DiscardUnknown ¶

func (m *PartialObjectMetadata) XXX_DiscardUnknown()

func (*PartialObjectMetadata) XXX_Marshal ¶

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

func (*PartialObjectMetadata) XXX_Merge ¶

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

func (*PartialObjectMetadata) XXX_Size ¶

func (m *PartialObjectMetadata) XXX_Size() int

func (*PartialObjectMetadata) XXX_Unmarshal ¶

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

type PartialObjectMetadataList ¶

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

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

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

func (*PartialObjectMetadataList) DeepCopy ¶

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

func (*PartialObjectMetadataList) DeepCopyInto ¶

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

func (*PartialObjectMetadataList) DeepCopyObject ¶

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

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

func (*PartialObjectMetadataList) DeepEqual ¶

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

func (*PartialObjectMetadataList) Descriptor ¶

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

func (*PartialObjectMetadataList) Marshal ¶

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

func (*PartialObjectMetadataList) MarshalTo ¶

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

func (*PartialObjectMetadataList) MarshalToSizedBuffer ¶

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

func (*PartialObjectMetadataList) ProtoMessage ¶

func (*PartialObjectMetadataList) ProtoMessage()

func (*PartialObjectMetadataList) Reset ¶

func (m *PartialObjectMetadataList) Reset()

func (*PartialObjectMetadataList) Size ¶

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

func (*PartialObjectMetadataList) String ¶

func (this *PartialObjectMetadataList) String() string

func (*PartialObjectMetadataList) Unmarshal ¶

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

func (*PartialObjectMetadataList) XXX_DiscardUnknown ¶

func (m *PartialObjectMetadataList) XXX_DiscardUnknown()

func (*PartialObjectMetadataList) XXX_Marshal ¶

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

func (*PartialObjectMetadataList) XXX_Merge ¶

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

func (*PartialObjectMetadataList) XXX_Size ¶

func (m *PartialObjectMetadataList) XXX_Size() int

func (*PartialObjectMetadataList) XXX_Unmarshal ¶

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

type Time ¶

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

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

+kubebuilder:validation:Format=date-time +kubebuilder:validation:Type=string

func Date ¶

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

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

func NewTime ¶

func NewTime(time time.Time) Time

NewTime returns a wrapped instance of the provided time

func Now ¶

func Now() Time

Now returns the current local time.

func Unix ¶

func Unix(sec int64, nsec int64) Time

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

func (*Time) Before ¶

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

Before reports whether the time instant t is before u.

func (*Time) DeepCopy ¶

func (in *Time) DeepCopy() *Time

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

func (*Time) DeepCopyInto ¶

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

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

func (*Time) DeepEqual ¶

func (in *Time) DeepEqual(other *Time) bool

func (*Time) Descriptor ¶

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

func (*Time) Equal ¶

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

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

func (*Time) IsZero ¶

func (t *Time) IsZero() bool

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

func (*Time) Marshal ¶

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

Marshal implements the protobuf marshaling interface.

func (Time) MarshalJSON ¶

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

MarshalJSON implements the json.Marshaler interface.

func (Time) MarshalQueryParameter ¶

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

MarshalQueryParameter converts to a URL query parameter value

func (*Time) MarshalTo ¶

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

MarshalTo implements the protobuf marshaling interface.

func (*Time) MarshalToSizedBuffer ¶

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

MarshalToSizedBuffer implements the protobuf reverse marshaling interface.

func (Time) OpenAPISchemaFormat ¶

func (_ Time) OpenAPISchemaFormat() string

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

func (Time) OpenAPISchemaType ¶

func (_ Time) OpenAPISchemaType() []string

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

See: https://github.com/kubernetes/kube-openapi/tree/master/pkg/generators

func (*Time) ProtoMessage ¶

func (*Time) ProtoMessage()

func (*Time) ProtoTime ¶

func (m *Time) ProtoTime() *Timestamp

Timestamp returns the Time as a new Timestamp value.

func (*Time) Reset ¶

func (m *Time) Reset()

func (Time) Rfc3339Copy ¶

func (t Time) Rfc3339Copy() Time

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

func (*Time) Size ¶

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

Size implements the protobuf marshalling interface.

func (Time) ToUnstructured ¶

func (t Time) ToUnstructured() interface{}

ToUnstructured implements the value.UnstructuredConverter interface.

func (*Time) Unmarshal ¶

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

Reset implements the protobuf marshalling interface.

func (*Time) UnmarshalJSON ¶

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

UnmarshalJSON implements the json.Unmarshaller interface.

func (*Time) UnmarshalQueryParameter ¶

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

UnmarshalQueryParameter converts from a URL query parameter value to an object

func (*Time) XXX_DiscardUnknown ¶

func (m *Time) XXX_DiscardUnknown()

func (*Time) XXX_Marshal ¶

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

func (*Time) XXX_Merge ¶

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

func (*Time) XXX_Size ¶

func (m *Time) XXX_Size() int

func (*Time) XXX_Unmarshal ¶

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

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 ¶

func (in *Timestamp) DeepCopy() *Timestamp

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

func (*Timestamp) DeepCopyInto ¶

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

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

func (*Timestamp) DeepEqual ¶

func (in *Timestamp) DeepEqual(other *Timestamp) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

func (*Timestamp) Descriptor ¶

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

func (*Timestamp) Marshal ¶

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

func (*Timestamp) MarshalTo ¶

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

func (*Timestamp) MarshalToSizedBuffer ¶

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

func (*Timestamp) ProtoMessage ¶

func (*Timestamp) ProtoMessage()

func (*Timestamp) Reset ¶

func (m *Timestamp) Reset()

func (*Timestamp) Size ¶

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

func (*Timestamp) String ¶

func (this *Timestamp) String() string

func (*Timestamp) Unmarshal ¶

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

func (*Timestamp) XXX_DiscardUnknown ¶

func (m *Timestamp) XXX_DiscardUnknown()

func (*Timestamp) XXX_Marshal ¶

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

func (*Timestamp) XXX_Merge ¶

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

func (*Timestamp) XXX_Size ¶

func (m *Timestamp) XXX_Size() int

func (*Timestamp) XXX_Unmarshal ¶

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

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/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"`

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

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

+k8s:deepcopy-gen=false

func (*TypeMeta) DeepEqual ¶

func (in *TypeMeta) DeepEqual(other *TypeMeta) bool

DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.

func (*TypeMeta) Descriptor ¶

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

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) Marshal ¶

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

func (*TypeMeta) MarshalTo ¶

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

func (*TypeMeta) MarshalToSizedBuffer ¶

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

func (*TypeMeta) ProtoMessage ¶

func (*TypeMeta) ProtoMessage()

func (*TypeMeta) Reset ¶

func (m *TypeMeta) Reset()

func (*TypeMeta) SetGroupVersionKind ¶

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

SetGroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta

func (*TypeMeta) Size ¶

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

func (*TypeMeta) String ¶

func (this *TypeMeta) String() string

func (*TypeMeta) Unmarshal ¶

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

func (*TypeMeta) XXX_DiscardUnknown ¶

func (m *TypeMeta) XXX_DiscardUnknown()

func (*TypeMeta) XXX_Marshal ¶

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

func (*TypeMeta) XXX_Merge ¶

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

func (*TypeMeta) XXX_Size ¶

func (m *TypeMeta) XXX_Size() int

func (*TypeMeta) XXX_Unmarshal ¶

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

Directories ¶

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL