Documentation ¶
Overview ¶
+groupName=snapshot.alicloud.kubeform.com
Index ¶
- Variables
- func GetDecoder() map[string]jsoniter.ValDecoder
- func GetEncoder() map[string]jsoniter.ValEncoder
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Policy
- func (in *Policy) DeepCopy() *Policy
- func (in *Policy) DeepCopyInto(out *Policy)
- func (in *Policy) DeepCopyObject() runtime.Object
- func (r *Policy) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Policy) ValidateCreate() error
- func (r *Policy) ValidateDelete() error
- func (r *Policy) ValidateUpdate(old runtime.Object) error
- type PolicyList
- type PolicySpec
- type PolicySpecResource
- type PolicyStatus
- type Snapshot
- func (in *Snapshot) DeepCopy() *Snapshot
- func (in *Snapshot) DeepCopyInto(out *Snapshot)
- func (in *Snapshot) DeepCopyObject() runtime.Object
- func (r *Snapshot) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Snapshot) ValidateCreate() error
- func (r *Snapshot) ValidateDelete() error
- func (r *Snapshot) ValidateUpdate(old runtime.Object) error
- type SnapshotList
- type SnapshotSpec
- type SnapshotSpecResource
- type SnapshotStatus
Constants ¶
This section is empty.
Variables ¶
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: snapshot.GroupName, Version: "v1alpha1"}
Functions ¶
func GetDecoder ¶
func GetDecoder() map[string]jsoniter.ValDecoder
func GetEncoder ¶
func GetEncoder() map[string]jsoniter.ValEncoder
func Kind ¶
Kind takes an unqualified kind and returns a Group qualified GroupKind
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Policy ¶
type Policy struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PolicySpec `json:"spec,omitempty"` Status PolicyStatus `json:"status,omitempty"` }
func (*Policy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Policy.
func (*Policy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Policy) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Policy) SetupWebhookWithManager ¶
func (*Policy) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Policy) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type PolicyList ¶
type PolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of Policy CRD objects Items []Policy `json:"items,omitempty"` }
PolicyList is a list of Policys
func (*PolicyList) DeepCopy ¶
func (in *PolicyList) DeepCopy() *PolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyList.
func (*PolicyList) DeepCopyInto ¶
func (in *PolicyList) DeepCopyInto(out *PolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PolicyList) DeepCopyObject ¶
func (in *PolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PolicySpec ¶
type PolicySpec struct { State *PolicySpecResource `json:"state,omitempty" tf:"-"` Resource PolicySpecResource `json:"resource" tf:"resource"` UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"` TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"` ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"` BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"` }
func (*PolicySpec) DeepCopy ¶
func (in *PolicySpec) DeepCopy() *PolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicySpec.
func (*PolicySpec) DeepCopyInto ¶
func (in *PolicySpec) DeepCopyInto(out *PolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicySpecResource ¶
type PolicySpecResource struct { Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"` ID string `json:"id,omitempty" tf:"id,omitempty"` // +optional CopiedSnapshotsRetentionDays *int64 `json:"copiedSnapshotsRetentionDays,omitempty" tf:"copied_snapshots_retention_days"` // +optional EnableCrossRegionCopy *bool `json:"enableCrossRegionCopy,omitempty" tf:"enable_cross_region_copy"` // +optional Name *string `json:"name,omitempty" tf:"name"` RepeatWeekdays []string `json:"repeatWeekdays" tf:"repeat_weekdays"` RetentionDays *int64 `json:"retentionDays" tf:"retention_days"` // +optional Status *string `json:"status,omitempty" tf:"status"` // +optional Tags map[string]string `json:"tags,omitempty" tf:"tags"` // +optional TargetCopyRegions []string `json:"targetCopyRegions,omitempty" tf:"target_copy_regions"` TimePoints []string `json:"timePoints" tf:"time_points"` }
func (*PolicySpecResource) DeepCopy ¶
func (in *PolicySpecResource) DeepCopy() *PolicySpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicySpecResource.
func (*PolicySpecResource) DeepCopyInto ¶
func (in *PolicySpecResource) DeepCopyInto(out *PolicySpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicyStatus ¶
type PolicyStatus struct { // Resource generation, which is updated on mutation by the API Server. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // +optional Phase status.Status `json:"phase,omitempty"` // +optional Conditions []kmapi.Condition `json:"conditions,omitempty"` }
func (*PolicyStatus) DeepCopy ¶
func (in *PolicyStatus) DeepCopy() *PolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyStatus.
func (*PolicyStatus) DeepCopyInto ¶
func (in *PolicyStatus) DeepCopyInto(out *PolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Snapshot ¶
type Snapshot struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SnapshotSpec `json:"spec,omitempty"` Status SnapshotStatus `json:"status,omitempty"` }
func (*Snapshot) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Snapshot.
func (*Snapshot) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Snapshot) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Snapshot) SetupWebhookWithManager ¶
func (*Snapshot) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Snapshot) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type SnapshotList ¶
type SnapshotList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of Snapshot CRD objects Items []Snapshot `json:"items,omitempty"` }
SnapshotList is a list of Snapshots
func (*SnapshotList) DeepCopy ¶
func (in *SnapshotList) DeepCopy() *SnapshotList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotList.
func (*SnapshotList) DeepCopyInto ¶
func (in *SnapshotList) DeepCopyInto(out *SnapshotList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SnapshotList) DeepCopyObject ¶
func (in *SnapshotList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SnapshotSpec ¶
type SnapshotSpec struct { State *SnapshotSpecResource `json:"state,omitempty" tf:"-"` Resource SnapshotSpecResource `json:"resource" tf:"resource"` UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"` TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"` ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"` BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"` }
func (*SnapshotSpec) DeepCopy ¶
func (in *SnapshotSpec) DeepCopy() *SnapshotSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotSpec.
func (*SnapshotSpec) DeepCopyInto ¶
func (in *SnapshotSpec) DeepCopyInto(out *SnapshotSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnapshotSpecResource ¶
type SnapshotSpecResource struct { Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"` ID string `json:"id,omitempty" tf:"id,omitempty"` // +optional Category *string `json:"category,omitempty" tf:"category"` // +optional Description *string `json:"description,omitempty" tf:"description"` DiskID *string `json:"diskID" tf:"disk_id"` // +optional Force *bool `json:"force,omitempty" tf:"force"` // +optional InstantAccess *bool `json:"instantAccess,omitempty" tf:"instant_access"` // +optional InstantAccessRetentionDays *int64 `json:"instantAccessRetentionDays,omitempty" tf:"instant_access_retention_days"` // +optional // Deprecated Name *string `json:"name,omitempty" tf:"name"` // +optional ResourceGroupID *string `json:"resourceGroupID,omitempty" tf:"resource_group_id"` // +optional RetentionDays *int64 `json:"retentionDays,omitempty" tf:"retention_days"` // +optional SnapshotName *string `json:"snapshotName,omitempty" tf:"snapshot_name"` // +optional Status *string `json:"status,omitempty" tf:"status"` // +optional Tags map[string]string `json:"tags,omitempty" tf:"tags"` }
func (*SnapshotSpecResource) DeepCopy ¶
func (in *SnapshotSpecResource) DeepCopy() *SnapshotSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotSpecResource.
func (*SnapshotSpecResource) DeepCopyInto ¶
func (in *SnapshotSpecResource) DeepCopyInto(out *SnapshotSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnapshotStatus ¶
type SnapshotStatus struct { // Resource generation, which is updated on mutation by the API Server. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // +optional Phase status.Status `json:"phase,omitempty"` // +optional Conditions []kmapi.Condition `json:"conditions,omitempty"` }
func (*SnapshotStatus) DeepCopy ¶
func (in *SnapshotStatus) DeepCopy() *SnapshotStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotStatus.
func (*SnapshotStatus) DeepCopyInto ¶
func (in *SnapshotStatus) DeepCopyInto(out *SnapshotStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.