Documentation ¶
Index ¶
- Constants
- Variables
- func CreateCustomResourceDefinition(namespace string, clientSet apiextensionsclientset.Interface) (*apiextensionsv1.CustomResourceDefinition, error)
- func Resource(resource string) schema.GroupResource
- type SnapshotClaim
- type SnapshotGroup
- type SnapshotGroupList
- type SnapshotGroupSpec
- type SnapshotGroupStatus
- type SnapshotSchedule
- type SnapshotTemplate
Constants ¶
Variables ¶
var ( // SchemeGroupVersion is the group version used to register these objects. SchemeGroupVersion = schema.GroupVersion{ Group: GroupName, Version: GroupVersion, } SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func CreateCustomResourceDefinition ¶
func CreateCustomResourceDefinition(namespace string, clientSet apiextensionsclientset.Interface) (*apiextensionsv1.CustomResourceDefinition, error)
CreateCustomResourceDefinition creates the CRD and add it into Kubernetes. If there is error, it will do some clean up.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type SnapshotClaim ¶
type SnapshotClaim struct { Spec corev1.PersistentVolumeClaimSpec `json:"spec"` Name string `json:"claimName"` }
type SnapshotGroup ¶
type SnapshotGroup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec SnapshotGroupSpec `json:"spec"` Status SnapshotGroupStatus `json:"status"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*SnapshotGroup) DeepCopy ¶
func (in *SnapshotGroup) DeepCopy() *SnapshotGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotGroup.
func (*SnapshotGroup) DeepCopyInto ¶
func (in *SnapshotGroup) DeepCopyInto(out *SnapshotGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SnapshotGroup) DeepCopyObject ¶
func (in *SnapshotGroup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SnapshotGroupList ¶
type SnapshotGroupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []SnapshotGroup `json:"items"` }
SnapshotGroupList is the list of SnapshotGroups.
func (*SnapshotGroupList) DeepCopy ¶
func (in *SnapshotGroupList) DeepCopy() *SnapshotGroupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotGroupList.
func (*SnapshotGroupList) DeepCopyInto ¶
func (in *SnapshotGroupList) DeepCopyInto(out *SnapshotGroupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SnapshotGroupList) DeepCopyObject ¶
func (in *SnapshotGroupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SnapshotGroupSpec ¶
type SnapshotGroupSpec struct { Claim SnapshotClaim `json:"persistentVolumeClaim"` Template SnapshotTemplate `json:"template"` Schedule []SnapshotSchedule `json:"schedule"` }
func (*SnapshotGroupSpec) DeepCopy ¶
func (in *SnapshotGroupSpec) DeepCopy() *SnapshotGroupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotGroupSpec.
func (*SnapshotGroupSpec) DeepCopyInto ¶
func (in *SnapshotGroupSpec) DeepCopyInto(out *SnapshotGroupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnapshotGroupStatus ¶
type SnapshotGroupStatus struct{}
func (*SnapshotGroupStatus) DeepCopy ¶
func (in *SnapshotGroupStatus) DeepCopy() *SnapshotGroupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotGroupStatus.
func (*SnapshotGroupStatus) DeepCopyInto ¶
func (in *SnapshotGroupStatus) DeepCopyInto(out *SnapshotGroupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnapshotSchedule ¶
type SnapshotTemplate ¶
type SnapshotTemplate struct {
Spec snapshotsv1.VolumeSnapshotSpec `json:"spec"`
}
Directories ¶
Path | Synopsis |
---|---|
apis
|
|
clientset/versioned
This package has the automatically generated clientset.
|
This package has the automatically generated clientset. |
clientset/versioned/fake
This package has the automatically generated fake clientset.
|
This package has the automatically generated fake clientset. |
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
|
This package contains the scheme of the automatically generated clientset. |
clientset/versioned/typed/snapshotgroup/v1
This package has the automatically generated typed clients.
|
This package has the automatically generated typed clients. |
clientset/versioned/typed/snapshotgroup/v1/fake
Package fake has the automatically generated clients.
|
Package fake has the automatically generated clients. |