Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
Constants ¶
const ( FieldName = "name" FieldNamespace = "namespace" )
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: storage.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type GenericSelector ¶
type GenericSelector struct { // FieldSelector is the field selector, which only supports "name" and "namespace" as key, and "In" and "NotIn" as operator. FieldSelector []metav1.FieldSelectorRequirement `json:"fieldSelector,omitempty"` // LabelSelector is the label selector LabelSelector []metav1.LabelSelectorRequirement `json:"labelSelector,omitempty"` }
GenericSelector supports field selector and label selector, they're ANDed requirements.
func (*GenericSelector) DeepCopy ¶
func (in *GenericSelector) DeepCopy() *GenericSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenericSelector.
func (*GenericSelector) DeepCopyInto ¶
func (in *GenericSelector) DeepCopyInto(out *GenericSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Initializer ¶
type Initializer struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec InitializerSpec `json:"spec"` Status InitializerStatus `json:"status"` }
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) DeepCopyObject ¶
func (in *Initializer) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InitializerList ¶
type InitializerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Initializer `json:"items"` }
func (*InitializerList) DeepCopy ¶
func (in *InitializerList) DeepCopy() *InitializerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InitializerList.
func (*InitializerList) DeepCopyInto ¶
func (in *InitializerList) DeepCopyInto(out *InitializerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InitializerList) DeepCopyObject ¶
func (in *InitializerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InitializerSpec ¶
type InitializerSpec struct { Enabled bool `json:"enabled,omitempty"` InitContainers []corev1.Container `json:"initContainers,omitempty"` PVCMatchers []PVCMatcher `json:"pvcMatchers,omitempty"` PVCInitializers []PVCInitializer `json:"pvcInitializers,omitempty"` }
func (*InitializerSpec) DeepCopy ¶
func (in *InitializerSpec) DeepCopy() *InitializerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InitializerSpec.
func (*InitializerSpec) DeepCopyInto ¶
func (in *InitializerSpec) DeepCopyInto(out *InitializerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InitializerStatus ¶
type InitializerStatus struct { }
func (*InitializerStatus) DeepCopy ¶
func (in *InitializerStatus) DeepCopy() *InitializerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InitializerStatus.
func (*InitializerStatus) DeepCopyInto ¶
func (in *InitializerStatus) DeepCopyInto(out *InitializerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PVCInitializer ¶
type PVCInitializer struct { // PVCMatcherName represents the name of PVCMatcher PVCMatcherName string `json:"pvcMatcherName,omitempty"` // InitContainerName represents the name of the init container InitContainerName string `json:"initContainerName,omitempty"` // MountPathRoot represents the root path of the mount point in the init container, default is "/". MountPathRoot string `json:"mountPathRoot,omitempty"` }
func (*PVCInitializer) DeepCopy ¶
func (in *PVCInitializer) DeepCopy() *PVCInitializer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PVCInitializer.
func (*PVCInitializer) DeepCopyInto ¶
func (in *PVCInitializer) DeepCopyInto(out *PVCInitializer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PVCMatcher ¶
type PVCMatcher struct { // Name is the matcher name Name string `json:"name,omitempty"` // PVC matches the PVC itself PVC *GenericSelector `json:"pvc,omitempty"` // Pod matches the pod which mounts the pvc Pod *GenericSelector `json:"pod,omitempty"` // StorageClass matches the PVC's storage class StorageClass *GenericSelector `json:"storageClass,omitempty"` // Namespace matches the PVC's namespace Namespace *GenericSelector `json:"namespace,omitempty"` // Workspace matches the PVC's workspace Workspace *GenericSelector `json:"workspace,omitempty"` }
PVCMatcher is used to filter PVCs. If no selector is specified, it will match any PVC.
func (*PVCMatcher) DeepCopy ¶
func (in *PVCMatcher) DeepCopy() *PVCMatcher
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PVCMatcher.
func (*PVCMatcher) DeepCopyInto ¶
func (in *PVCMatcher) DeepCopyInto(out *PVCMatcher)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.