Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=stork.libopenstorage.org
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ApplicationBackup
- type ApplicationBackupList
- type ApplicationBackupReclaimPolicyType
- type ApplicationBackupResourceInfo
- type ApplicationBackupSchedule
- type ApplicationBackupScheduleList
- type ApplicationBackupScheduleSpec
- type ApplicationBackupScheduleStatus
- type ApplicationBackupSpec
- type ApplicationBackupStageType
- type ApplicationBackupStatus
- type ApplicationBackupStatusType
- type ApplicationBackupTemplateSpec
- type ApplicationBackupVolumeInfo
- type ApplicationClone
- type ApplicationCloneList
- type ApplicationCloneReplacePolicyType
- type ApplicationCloneResourceInfo
- type ApplicationCloneSpec
- type ApplicationCloneStageType
- type ApplicationCloneStatus
- type ApplicationCloneStatusType
- type ApplicationCloneVolumeInfo
- type ApplicationRestore
- type ApplicationRestoreList
- type ApplicationRestoreReplacePolicyType
- type ApplicationRestoreResourceInfo
- type ApplicationRestoreSpec
- type ApplicationRestoreStageType
- type ApplicationRestoreStatus
- type ApplicationRestoreStatusType
- type ApplicationRestoreVolumeInfo
- type AzureConfig
- type BackupLocation
- type BackupLocationItem
- type BackupLocationList
- type BackupLocationType
- type ClusterDomainInfo
- type ClusterDomainState
- type ClusterDomainSyncStatus
- type ClusterDomainUpdate
- type ClusterDomainUpdateList
- type ClusterDomainUpdateSpec
- type ClusterDomainUpdateStatus
- type ClusterDomainUpdateStatusType
- type ClusterDomains
- type ClusterDomainsStatus
- type ClusterDomainsStatusList
- type ClusterPair
- type ClusterPairList
- type ClusterPairSpec
- type ClusterPairStatus
- type ClusterPairStatusType
- type DailyPolicy
- type GoogleConfig
- type GroupVolumeSnapshot
- type GroupVolumeSnapshotList
- type GroupVolumeSnapshotSpec
- type GroupVolumeSnapshotStageType
- type GroupVolumeSnapshotStatus
- type GroupVolumeSnapshotStatusType
- type IntervalPolicy
- type Migration
- type MigrationList
- type MigrationResourceInfo
- type MigrationSchedule
- type MigrationScheduleList
- type MigrationScheduleSpec
- type MigrationScheduleStatus
- type MigrationSpec
- type MigrationStageType
- type MigrationStatus
- type MigrationStatusType
- type MigrationTemplateSpec
- type MigrationVolumeInfo
- type MonthlyPolicy
- type PVCSelectorSpec
- type ReclaimPolicyType
- type RestoreVolumeInfo
- type Retain
- type Rule
- type RuleAction
- type RuleActionType
- type RuleItem
- type RuleList
- type S3Config
- type SchedulePolicy
- type SchedulePolicyItem
- type SchedulePolicyList
- type SchedulePolicyType
- type ScheduledApplicationBackupStatus
- type ScheduledMigrationStatus
- type ScheduledVolumeSnapshotStatus
- type VolumeSnapshotRestore
- type VolumeSnapshotRestoreList
- type VolumeSnapshotRestoreSpec
- type VolumeSnapshotRestoreStatus
- type VolumeSnapshotRestoreStatusType
- type VolumeSnapshotSchedule
- type VolumeSnapshotScheduleList
- type VolumeSnapshotScheduleSpec
- type VolumeSnapshotScheduleStatus
- type VolumeSnapshotStatus
- type VolumeSnapshotTemplateSpec
- type WeeklyPolicy
Constants ¶
const ( // ApplicationBackupResourceName is name for "applicationbackup" resource ApplicationBackupResourceName = "applicationbackup" // ApplicationBackupResourcePlural is plural for "applicationbackup" resource ApplicationBackupResourcePlural = "applicationbackups" )
const ( // ApplicationBackupScheduleResourceName is name for "applicationbackupschedule" resource ApplicationBackupScheduleResourceName = "applicationbackupschedule" // ApplicationBackupScheduleResourcePlural is plural for "applicationbackupschedule" resource ApplicationBackupScheduleResourcePlural = "applicationbackupschedules" )
const ( // ApplicationCloneResourceName is the name for the application clone resource ApplicationCloneResourceName = "applicationclone" // ApplicationCloneResourcePlural is the name in plural for the application clone resources ApplicationCloneResourcePlural = "applicationclones" )
const ( // ApplicationRestoreResourceName is name for "applicationrestore" resource ApplicationRestoreResourceName = "applicationrestore" // ApplicationRestoreResourcePlural is plural for "applicationrestore" resource ApplicationRestoreResourcePlural = "applicationrestores" )
const ( // BackupLocationResourceName is name for "backuplocation" resource BackupLocationResourceName = "backuplocation" // BackupLocationResourcePlural is plural for "backuplocation" resource BackupLocationResourcePlural = "backuplocations" )
const ( // ClusterDomainsStatusResourceName is name for "clusterdomainsstatus" resource ClusterDomainsStatusResourceName = "clusterdomainsstatus" // ClusterDomainsStatusPlural is plural for "clusterdomainsstatus" resource ClusterDomainsStatusPlural = "clusterdomainsstatuses" // ClusterDomainsStatusShortName is the shortname for "clusterdomainsstatus" resource ClusterDomainsStatusShortName = "cds" )
const ( // ClusterDomainUpdateResourceName is name for "clusterdomainupdate" resource ClusterDomainUpdateResourceName = "clusterdomainupdate" // ClusterDomainUpdatePlural is plural for "clusterdomainupdate" resource ClusterDomainUpdatePlural = "clusterdomainupdates" // ClusterDomainUpdateShortName is the short name for clusterdomainupdate ClusterDomainUpdateShortName = "cdu" )
const ( // ClusterPairResourceName is name for "clusterpair" resource ClusterPairResourceName = "clusterpair" // ClusterPairResourcePlural is plural for "clusterpair" resource ClusterPairResourcePlural = "clusterpairs" )
const ( // GroupVolumeSnapshotResourceName is name for "groupvolumesnapshot" resource GroupVolumeSnapshotResourceName = "groupvolumesnapshot" // GroupVolumeSnapshotResourcePlural is plural for the "groupvolumesnapshot" resource GroupVolumeSnapshotResourcePlural = "groupvolumesnapshots" )
const ( // MigrationResourceName is name for "migration" resource MigrationResourceName = "migration" // MigrationResourcePlural is plural for "migration" resource MigrationResourcePlural = "migrations" )
const ( // MigrationScheduleResourceName is name for "migrationschedule" resource MigrationScheduleResourceName = "migrationschedule" // MigrationScheduleResourcePlural is plural for "migrationschedule" resource MigrationScheduleResourcePlural = "migrationschedules" )
const ( // SchedulePolicyResourceName is name for "schedulepolicy" resource SchedulePolicyResourceName = "schedulepolicy" // SchedulePolicyResourcePlural is plural for "schedulepolicy" resource SchedulePolicyResourcePlural = "schedulepolicies" )
const ( // SnapshotRestoreResourceName is name for "volumesnapshotrestore" resource SnapshotRestoreResourceName = "volumesnapshotrestore" // SnapshotRestoreResourcePlural is plural for "volumesnapshotrestore" resource SnapshotRestoreResourcePlural = "volumesnapshotrestores" )
const ( // VolumeSnapshotScheduleResourceName is name for "volumesnapshotschedule" resource VolumeSnapshotScheduleResourceName = "volumesnapshotschedule" // VolumeSnapshotScheduleResourcePlural is plural for "volumesnapshotschedule" resource VolumeSnapshotScheduleResourcePlural = "volumesnapshotschedules" )
const DefaultDailyPolicyRetain = Retain(30)
DefaultDailyPolicyRetain Default for objects to be retained for the daily policy
const DefaultIntervalPolicyRetain = Retain(10)
DefaultIntervalPolicyRetain Default for objects to be retained for the interval policy
const DefaultMonthlyPolicyRetain = Retain(12)
DefaultMonthlyPolicyRetain Default for objects to be retained for the monthly policy
const DefaultWeeklyPolicyRetain = Retain(7)
DefaultWeeklyPolicyRetain Default for objects to be retained for the weekly policy
Variables ¶
var ( // SchemeBuilder is the scheme builder for the types SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme applies all the stored functions to the scheme AddToScheme = SchemeBuilder.AddToScheme )
var Days = map[string]time.Weekday{ "Sunday": time.Sunday, "Sun": time.Sunday, "Monday": time.Monday, "Mon": time.Monday, "Tuesday": time.Tuesday, "Tue": time.Tuesday, "Wednesday": time.Wednesday, "Wed": time.Wednesday, "Thursday": time.Thursday, "Thu": time.Thursday, "Thur": time.Thursday, "Thurs": time.Thursday, "Friday": time.Friday, "Fri": time.Friday, "Saturday": time.Saturday, "Sat": time.Saturday, }
Days is a map of valid Day strings
var SchemeGroupVersion = schema.GroupVersion{Group: stork.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 ApplicationBackup ¶
type ApplicationBackup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ApplicationBackupSpec `json:"spec"` Status ApplicationBackupStatus `json:"status"` }
ApplicationBackup represents applicationbackup object
func (*ApplicationBackup) DeepCopy ¶
func (in *ApplicationBackup) DeepCopy() *ApplicationBackup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationBackup.
func (*ApplicationBackup) DeepCopyInto ¶
func (in *ApplicationBackup) DeepCopyInto(out *ApplicationBackup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationBackup) DeepCopyObject ¶
func (in *ApplicationBackup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationBackupList ¶
type ApplicationBackupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ApplicationBackup `json:"items"` }
ApplicationBackupList is a list of ApplicationBackups
func (*ApplicationBackupList) DeepCopy ¶
func (in *ApplicationBackupList) DeepCopy() *ApplicationBackupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationBackupList.
func (*ApplicationBackupList) DeepCopyInto ¶
func (in *ApplicationBackupList) DeepCopyInto(out *ApplicationBackupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationBackupList) DeepCopyObject ¶
func (in *ApplicationBackupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationBackupReclaimPolicyType ¶
type ApplicationBackupReclaimPolicyType string
ApplicationBackupReclaimPolicyType is the reclaim policy for the application backup
const ( // ApplicationBackupReclaimPolicyDelete is to specify that the backup should // be deleted when the object is deleted ApplicationBackupReclaimPolicyDelete ApplicationBackupReclaimPolicyType = "Delete" // ApplicationBackupReclaimPolicyRetain is to specify that the backup should // be retained when the object is deleted ApplicationBackupReclaimPolicyRetain ApplicationBackupReclaimPolicyType = "Retain" )
type ApplicationBackupResourceInfo ¶
type ApplicationBackupResourceInfo struct { Name string `json:"name"` Namespace string `json:"namespace"` metav1.GroupVersionKind `json:",inline"` }
ApplicationBackupResourceInfo is the info for the backup of a resource
func (*ApplicationBackupResourceInfo) DeepCopy ¶
func (in *ApplicationBackupResourceInfo) DeepCopy() *ApplicationBackupResourceInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationBackupResourceInfo.
func (*ApplicationBackupResourceInfo) DeepCopyInto ¶
func (in *ApplicationBackupResourceInfo) DeepCopyInto(out *ApplicationBackupResourceInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationBackupSchedule ¶
type ApplicationBackupSchedule struct { meta.TypeMeta `json:",inline"` meta.ObjectMeta `json:"metadata,omitempty"` Spec ApplicationBackupScheduleSpec `json:"spec"` Status ApplicationBackupScheduleStatus `json:"status"` }
ApplicationBackupSchedule represents a scheduled applicationbackup object
func (*ApplicationBackupSchedule) DeepCopy ¶
func (in *ApplicationBackupSchedule) DeepCopy() *ApplicationBackupSchedule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationBackupSchedule.
func (*ApplicationBackupSchedule) DeepCopyInto ¶
func (in *ApplicationBackupSchedule) DeepCopyInto(out *ApplicationBackupSchedule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationBackupSchedule) DeepCopyObject ¶
func (in *ApplicationBackupSchedule) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationBackupScheduleList ¶
type ApplicationBackupScheduleList struct { meta.TypeMeta `json:",inline"` meta.ListMeta `json:"metadata,omitempty"` Items []ApplicationBackupSchedule `json:"items"` }
ApplicationBackupScheduleList is a list of ApplicationBackupSchedules
func (*ApplicationBackupScheduleList) DeepCopy ¶
func (in *ApplicationBackupScheduleList) DeepCopy() *ApplicationBackupScheduleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationBackupScheduleList.
func (*ApplicationBackupScheduleList) DeepCopyInto ¶
func (in *ApplicationBackupScheduleList) DeepCopyInto(out *ApplicationBackupScheduleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationBackupScheduleList) DeepCopyObject ¶
func (in *ApplicationBackupScheduleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationBackupScheduleSpec ¶
type ApplicationBackupScheduleSpec struct { Template ApplicationBackupTemplateSpec `json:"template"` SchedulePolicyName string `json:"schedulePolicyName"` Suspend *bool `json:"suspend"` ReclaimPolicy ReclaimPolicyType `json:"reclaimPolicy"` }
ApplicationBackupScheduleSpec is the spec used to schedule applicationbackups
func (*ApplicationBackupScheduleSpec) DeepCopy ¶
func (in *ApplicationBackupScheduleSpec) DeepCopy() *ApplicationBackupScheduleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationBackupScheduleSpec.
func (*ApplicationBackupScheduleSpec) DeepCopyInto ¶
func (in *ApplicationBackupScheduleSpec) DeepCopyInto(out *ApplicationBackupScheduleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationBackupScheduleStatus ¶
type ApplicationBackupScheduleStatus struct {
Items map[SchedulePolicyType][]*ScheduledApplicationBackupStatus `json:"items"`
}
ApplicationBackupScheduleStatus is the status of a applicationbackup schedule
func (*ApplicationBackupScheduleStatus) DeepCopy ¶
func (in *ApplicationBackupScheduleStatus) DeepCopy() *ApplicationBackupScheduleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationBackupScheduleStatus.
func (*ApplicationBackupScheduleStatus) DeepCopyInto ¶
func (in *ApplicationBackupScheduleStatus) DeepCopyInto(out *ApplicationBackupScheduleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationBackupSpec ¶
type ApplicationBackupSpec struct { Namespaces []string `json:"namespaces"` BackupLocation string `json:"backupLocation"` Selectors map[string]string `json:"selectors"` PreExecRule string `json:"preExecRule"` PostExecRule string `json:"postExecRule"` ReclaimPolicy ApplicationBackupReclaimPolicyType `json:"reclaimPolicy"` }
ApplicationBackupSpec is the spec used to backup applications
func (*ApplicationBackupSpec) DeepCopy ¶
func (in *ApplicationBackupSpec) DeepCopy() *ApplicationBackupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationBackupSpec.
func (*ApplicationBackupSpec) DeepCopyInto ¶
func (in *ApplicationBackupSpec) DeepCopyInto(out *ApplicationBackupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationBackupStageType ¶
type ApplicationBackupStageType string
ApplicationBackupStageType is the stage of the backup
const ( // ApplicationBackupStageInitial for when backup is created ApplicationBackupStageInitial ApplicationBackupStageType = "" // ApplicationBackupStagePreExecRule for when the PreExecRule is being executed ApplicationBackupStagePreExecRule ApplicationBackupStageType = "PreExecRule" // ApplicationBackupStagePostExecRule for when the PostExecRule is being executed ApplicationBackupStagePostExecRule ApplicationBackupStageType = "PostExecRule" // ApplicationBackupStageVolumes for when volumes are being backed up ApplicationBackupStageVolumes ApplicationBackupStageType = "Volumes" // ApplicationBackupStageApplications for when applications are being backed up ApplicationBackupStageApplications ApplicationBackupStageType = "Applications" // ApplicationBackupStageFinal is the final stage for backup ApplicationBackupStageFinal ApplicationBackupStageType = "Final" )
type ApplicationBackupStatus ¶
type ApplicationBackupStatus struct { Stage ApplicationBackupStageType `json:"stage"` Status ApplicationBackupStatusType `json:"status"` Resources []*ApplicationBackupResourceInfo `json:"resources"` Volumes []*ApplicationBackupVolumeInfo `json:"volumes"` BackupPath string `json:"backupPath"` TriggerTimestamp metav1.Time `json:"triggerTimestamp"` FinishTimestamp metav1.Time `json:"finishTimestamp"` }
ApplicationBackupStatus is the status of a application backup operation
func (*ApplicationBackupStatus) DeepCopy ¶
func (in *ApplicationBackupStatus) DeepCopy() *ApplicationBackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationBackupStatus.
func (*ApplicationBackupStatus) DeepCopyInto ¶
func (in *ApplicationBackupStatus) DeepCopyInto(out *ApplicationBackupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationBackupStatusType ¶
type ApplicationBackupStatusType string
ApplicationBackupStatusType is the status of the application backup
const ( // ApplicationBackupStatusInitial is the initial state when backup is created ApplicationBackupStatusInitial ApplicationBackupStatusType = "" // ApplicationBackupStatusPending for when backup is still pending ApplicationBackupStatusPending ApplicationBackupStatusType = "Pending" // ApplicationBackupStatusCaptured for when backup specs have been captured ApplicationBackupStatusCaptured ApplicationBackupStatusType = "Captured" // ApplicationBackupStatusInProgress for when backup is in progress ApplicationBackupStatusInProgress ApplicationBackupStatusType = "InProgress" // ApplicationBackupStatusFailed for when backup has failed ApplicationBackupStatusFailed ApplicationBackupStatusType = "Failed" // ApplicationBackupStatusPartialSuccess for when backup was partially successful ApplicationBackupStatusPartialSuccess ApplicationBackupStatusType = "PartialSuccess" // ApplicationBackupStatusSuccessful for when backup has completed successfully ApplicationBackupStatusSuccessful ApplicationBackupStatusType = "Successful" )
type ApplicationBackupTemplateSpec ¶
type ApplicationBackupTemplateSpec struct {
Spec ApplicationBackupSpec `json:"spec"`
}
ApplicationBackupTemplateSpec describes the data a ApplicationBackup should have when created from a template
func (*ApplicationBackupTemplateSpec) DeepCopy ¶
func (in *ApplicationBackupTemplateSpec) DeepCopy() *ApplicationBackupTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationBackupTemplateSpec.
func (*ApplicationBackupTemplateSpec) DeepCopyInto ¶
func (in *ApplicationBackupTemplateSpec) DeepCopyInto(out *ApplicationBackupTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationBackupVolumeInfo ¶
type ApplicationBackupVolumeInfo struct { PersistentVolumeClaim string `json:"persistentVolumeClaim"` Namespace string `json:"namespace"` Volume string `json:"volume"` BackupID string `json:"backupID"` Status ApplicationBackupStatusType `json:"status"` Reason string `json:"reason"` }
ApplicationBackupVolumeInfo is the info for the backup of a volume
func (*ApplicationBackupVolumeInfo) DeepCopy ¶
func (in *ApplicationBackupVolumeInfo) DeepCopy() *ApplicationBackupVolumeInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationBackupVolumeInfo.
func (*ApplicationBackupVolumeInfo) DeepCopyInto ¶
func (in *ApplicationBackupVolumeInfo) DeepCopyInto(out *ApplicationBackupVolumeInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationClone ¶
type ApplicationClone struct { meta.TypeMeta `json:",inline"` meta.ObjectMeta `json:"metadata,omitempty"` Spec ApplicationCloneSpec `json:"spec"` Status ApplicationCloneStatus `json:"status,omitempty"` }
ApplicationClone represents the cloning of application in different namespaces
func (*ApplicationClone) DeepCopy ¶
func (in *ApplicationClone) DeepCopy() *ApplicationClone
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationClone.
func (*ApplicationClone) DeepCopyInto ¶
func (in *ApplicationClone) DeepCopyInto(out *ApplicationClone)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationClone) DeepCopyObject ¶
func (in *ApplicationClone) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationCloneList ¶
type ApplicationCloneList struct { meta.TypeMeta `json:",inline"` meta.ListMeta `json:"metadata,omitempty"` Items []ApplicationClone `json:"items"` }
ApplicationCloneList is a list of ApplicationClones
func (*ApplicationCloneList) DeepCopy ¶
func (in *ApplicationCloneList) DeepCopy() *ApplicationCloneList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationCloneList.
func (*ApplicationCloneList) DeepCopyInto ¶
func (in *ApplicationCloneList) DeepCopyInto(out *ApplicationCloneList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationCloneList) DeepCopyObject ¶
func (in *ApplicationCloneList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationCloneReplacePolicyType ¶
type ApplicationCloneReplacePolicyType string
ApplicationCloneReplacePolicyType defines the policy for objects that might already exist in the destination namespace, should they be replaced, deleted, retained or overwritten
const ( // ApplicationCloneReplacePolicyDelete will delete any conflicts in objects in the // destination namespace ApplicationCloneReplacePolicyDelete ApplicationCloneReplacePolicyType = "Delete" // ApplicationCloneReplacePolicyRetain will retain any conflicts and not change/clone ApplicationCloneReplacePolicyRetain ApplicationCloneReplacePolicyType = "Retain" // ApplicationCloneReplacePolicyFail will trigger a clone failure on conflicts ApplicationCloneReplacePolicyFail ApplicationCloneReplacePolicyType = "Fail" )
type ApplicationCloneResourceInfo ¶
type ApplicationCloneResourceInfo struct { Name string `json:"name"` Reason string `json:"reason"` Status ApplicationCloneStatusType `json:"status"` meta.GroupVersionKind `json:",inline"` }
ApplicationCloneResourceInfo is the info for the cloning of a resource
func (*ApplicationCloneResourceInfo) DeepCopy ¶
func (in *ApplicationCloneResourceInfo) DeepCopy() *ApplicationCloneResourceInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationCloneResourceInfo.
func (*ApplicationCloneResourceInfo) DeepCopyInto ¶
func (in *ApplicationCloneResourceInfo) DeepCopyInto(out *ApplicationCloneResourceInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationCloneSpec ¶
type ApplicationCloneSpec struct { // SourceNamespace can be optional, and we can check in the code that we are using // the same namespace in which we are creating the cloning object // +optional SourceNamespace string `json:"sourceNamespace,omitempty"` // DestinationNamespace is a must parameter to tell the cloning object // where to place the application objects DestinationNamespace string `json:"destinationNamespace"` // Selectors for label on objects Selectors map[string]string `json:"selectors"` PreExecRule string `json:"preExecRule"` PostExecRule string `json:"postExecRule"` // ReplacePolicy to decide how to react when a object conflict occurs in the cloning process ReplacePolicy ApplicationCloneReplacePolicyType `json:"replacePolicy"` }
ApplicationCloneSpec defines the spec to create an application clone
func (*ApplicationCloneSpec) DeepCopy ¶
func (in *ApplicationCloneSpec) DeepCopy() *ApplicationCloneSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationCloneSpec.
func (*ApplicationCloneSpec) DeepCopyInto ¶
func (in *ApplicationCloneSpec) DeepCopyInto(out *ApplicationCloneSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationCloneStageType ¶
type ApplicationCloneStageType string
ApplicationCloneStageType defines the stage of the cloning process
const ( // ApplicationCloneStageInitial when the cloning was started ApplicationCloneStageInitial ApplicationCloneStageType = "" // ApplicationCloneStagePreExecRule stage when pre-exec rules are being executed ApplicationCloneStagePreExecRule ApplicationCloneStageType = "PreExecRule" // ApplicationCloneStagePostExecRule stage when post-exec rules are being executed ApplicationCloneStagePostExecRule ApplicationCloneStageType = "PostExecRule" // ApplicationCloneStageVolumes stage where the volumes are being cloned ApplicationCloneStageVolumes ApplicationCloneStageType = "Volumes" // ApplicationCloneStageApplications stage when applications are being cloned ApplicationCloneStageApplications ApplicationCloneStageType = "Applications" // ApplicationCloneStageFinal is the final stage for backup ApplicationCloneStageFinal ApplicationCloneStageType = "Final" )
type ApplicationCloneStatus ¶
type ApplicationCloneStatus struct { // Status of the cloning process Status ApplicationCloneStatusType `json:"status"` // Stage of the cloning process Stage ApplicationCloneStageType `json:"stage"` Resources []*ApplicationCloneResourceInfo `json:"resources"` Volumes []*ApplicationCloneVolumeInfo `json:"volumes"` FinishTimestamp meta.Time `json:"finishTimestamp"` }
ApplicationCloneStatus defines the status of the clone
func (*ApplicationCloneStatus) DeepCopy ¶
func (in *ApplicationCloneStatus) DeepCopy() *ApplicationCloneStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationCloneStatus.
func (*ApplicationCloneStatus) DeepCopyInto ¶
func (in *ApplicationCloneStatus) DeepCopyInto(out *ApplicationCloneStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationCloneStatusType ¶
type ApplicationCloneStatusType string
ApplicationCloneStatusType defines status of the application being cloned
const ( // ApplicationCloneStatusInitial initial state when the cloning will start ApplicationCloneStatusInitial ApplicationCloneStatusType = "" // ApplicationCloneStatusPending when cloning is still pending ApplicationCloneStatusPending ApplicationCloneStatusType = "Pending" // ApplicationCloneStatusInProgress cloning in progress ApplicationCloneStatusInProgress ApplicationCloneStatusType = "InProgress" // ApplicationCloneStatusFailed when cloning has failed ApplicationCloneStatusFailed ApplicationCloneStatusType = "Failed" // ApplicationCloneStatusSuccessful when cloning was a success ApplicationCloneStatusSuccessful ApplicationCloneStatusType = "Successful" // ApplicationCloneStatusRetained for when clone was skipped to retain an already existing resource ApplicationCloneStatusRetained ApplicationCloneStatusType = "Retained" // ApplicationCloneStatusPartialSuccess when cloning was only partially successful ApplicationCloneStatusPartialSuccess ApplicationCloneStatusType = "PartialSuccess" )
type ApplicationCloneVolumeInfo ¶
type ApplicationCloneVolumeInfo struct { PersistentVolumeClaim string `json:"persistentVolumeClaim"` Volume string `json:"volume"` CloneVolume string `json:"cloneVolume"` Status ApplicationCloneStatusType `json:"status"` Reason string `json:"reason"` }
ApplicationCloneVolumeInfo is the info for the cloning of a volume
func (*ApplicationCloneVolumeInfo) DeepCopy ¶
func (in *ApplicationCloneVolumeInfo) DeepCopy() *ApplicationCloneVolumeInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationCloneVolumeInfo.
func (*ApplicationCloneVolumeInfo) DeepCopyInto ¶
func (in *ApplicationCloneVolumeInfo) DeepCopyInto(out *ApplicationCloneVolumeInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationRestore ¶
type ApplicationRestore struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ApplicationRestoreSpec `json:"spec"` Status ApplicationRestoreStatus `json:"status"` }
ApplicationRestore represents applicationrestore object
func (*ApplicationRestore) DeepCopy ¶
func (in *ApplicationRestore) DeepCopy() *ApplicationRestore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationRestore.
func (*ApplicationRestore) DeepCopyInto ¶
func (in *ApplicationRestore) DeepCopyInto(out *ApplicationRestore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationRestore) DeepCopyObject ¶
func (in *ApplicationRestore) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationRestoreList ¶
type ApplicationRestoreList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ApplicationRestore `json:"items"` }
ApplicationRestoreList is a list of ApplicationRestores
func (*ApplicationRestoreList) DeepCopy ¶
func (in *ApplicationRestoreList) DeepCopy() *ApplicationRestoreList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationRestoreList.
func (*ApplicationRestoreList) DeepCopyInto ¶
func (in *ApplicationRestoreList) DeepCopyInto(out *ApplicationRestoreList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ApplicationRestoreList) DeepCopyObject ¶
func (in *ApplicationRestoreList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ApplicationRestoreReplacePolicyType ¶
type ApplicationRestoreReplacePolicyType string
ApplicationRestoreReplacePolicyType is the replace policy for the application restore in case there are conflicting resources already present on the cluster
const ( // ApplicationRestoreReplacePolicyDelete is to specify that the restore // should delete existing resources that conflict with resources being // restored ApplicationRestoreReplacePolicyDelete ApplicationRestoreReplacePolicyType = "Delete" // ApplicationRestoreReplacePolicyRetain is to specify that the restore // should retain existing resources that conflict with resources being // restored ApplicationRestoreReplacePolicyRetain ApplicationRestoreReplacePolicyType = "Retain" )
type ApplicationRestoreResourceInfo ¶
type ApplicationRestoreResourceInfo struct { Name string `json:"name"` Namespace string `json:"namespace"` metav1.GroupVersionKind `json:",inline"` Status ApplicationRestoreStatusType `json:"status"` Reason string `json:"reason"` }
ApplicationRestoreResourceInfo is the info for the restore of a resource
func (*ApplicationRestoreResourceInfo) DeepCopy ¶
func (in *ApplicationRestoreResourceInfo) DeepCopy() *ApplicationRestoreResourceInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationRestoreResourceInfo.
func (*ApplicationRestoreResourceInfo) DeepCopyInto ¶
func (in *ApplicationRestoreResourceInfo) DeepCopyInto(out *ApplicationRestoreResourceInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationRestoreSpec ¶
type ApplicationRestoreSpec struct { BackupName string `json:"backupName"` BackupLocation string `json:"backupLocation"` NamespaceMapping map[string]string `json:"namespaceMapping"` Selectors map[string]string `json:"selectors"` EncryptionKey *corev1.EnvVarSource `json:"encryptionKey"` ReplacePolicy ApplicationRestoreReplacePolicyType `json:"replacePolicy"` }
ApplicationRestoreSpec is the spec used to restore applications
func (*ApplicationRestoreSpec) DeepCopy ¶
func (in *ApplicationRestoreSpec) DeepCopy() *ApplicationRestoreSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationRestoreSpec.
func (*ApplicationRestoreSpec) DeepCopyInto ¶
func (in *ApplicationRestoreSpec) DeepCopyInto(out *ApplicationRestoreSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationRestoreStageType ¶
type ApplicationRestoreStageType string
ApplicationRestoreStageType is the stage of the restore
const ( // ApplicationRestoreStageInitial for when restore is created ApplicationRestoreStageInitial ApplicationRestoreStageType = "" // ApplicationRestoreStageVolumes for when volumes are being restored ApplicationRestoreStageVolumes ApplicationRestoreStageType = "Volumes" // ApplicationRestoreStageApplications for when applications are being // restored ApplicationRestoreStageApplications ApplicationRestoreStageType = "Applications" // ApplicationRestoreStageFinal is the final stage for restore ApplicationRestoreStageFinal ApplicationRestoreStageType = "Final" )
type ApplicationRestoreStatus ¶
type ApplicationRestoreStatus struct { Stage ApplicationRestoreStageType `json:"stage"` Status ApplicationRestoreStatusType `json:"status"` Resources []*ApplicationRestoreResourceInfo `json:"resources"` Volumes []*ApplicationRestoreVolumeInfo `json:"volumes"` FinishTimestamp metav1.Time `json:"finishTimestamp"` }
ApplicationRestoreStatus is the status of a application restore operation
func (*ApplicationRestoreStatus) DeepCopy ¶
func (in *ApplicationRestoreStatus) DeepCopy() *ApplicationRestoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationRestoreStatus.
func (*ApplicationRestoreStatus) DeepCopyInto ¶
func (in *ApplicationRestoreStatus) DeepCopyInto(out *ApplicationRestoreStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ApplicationRestoreStatusType ¶
type ApplicationRestoreStatusType string
ApplicationRestoreStatusType is the status of the application restore
const ( // ApplicationRestoreStatusInitial is the initial state when restore is created ApplicationRestoreStatusInitial ApplicationRestoreStatusType = "" // ApplicationRestoreStatusPending for when restore is still pending ApplicationRestoreStatusPending ApplicationRestoreStatusType = "Pending" // ApplicationRestoreStatusInProgress for when restore is in progress ApplicationRestoreStatusInProgress ApplicationRestoreStatusType = "InProgress" // ApplicationRestoreStatusFailed for when restore has failed ApplicationRestoreStatusFailed ApplicationRestoreStatusType = "Failed" // ApplicationRestoreStatusPartialSuccess for when restore was partially successful ApplicationRestoreStatusPartialSuccess ApplicationRestoreStatusType = "PartialSuccess" // ApplicationRestoreStatusRetained for when restore was skipped to retain an already existing resource ApplicationRestoreStatusRetained ApplicationRestoreStatusType = "Retained" // ApplicationRestoreStatusSuccessful for when restore has completed successfully ApplicationRestoreStatusSuccessful ApplicationRestoreStatusType = "Successful" )
type ApplicationRestoreVolumeInfo ¶
type ApplicationRestoreVolumeInfo struct { PersistentVolumeClaim string `json:"persistentVolumeClaim"` SourceNamespace string `json:"sourceNamespace"` SourceVolume string `json:"sourceVolume"` RestoreVolume string `json:"restoreVolume"` Status ApplicationRestoreStatusType `json:"status"` Reason string `json:"reason"` }
ApplicationRestoreVolumeInfo is the info for the restore of a volume
func (*ApplicationRestoreVolumeInfo) DeepCopy ¶
func (in *ApplicationRestoreVolumeInfo) DeepCopy() *ApplicationRestoreVolumeInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationRestoreVolumeInfo.
func (*ApplicationRestoreVolumeInfo) DeepCopyInto ¶
func (in *ApplicationRestoreVolumeInfo) DeepCopyInto(out *ApplicationRestoreVolumeInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureConfig ¶
type AzureConfig struct { StorageAccountName string `json:"storageAccountName"` StorageAccountKey string `json:"storageAccountKey"` }
AzureConfig specifies the config required to connect to Azure Blob Storage
func (*AzureConfig) DeepCopy ¶
func (in *AzureConfig) DeepCopy() *AzureConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureConfig.
func (*AzureConfig) DeepCopyInto ¶
func (in *AzureConfig) DeepCopyInto(out *AzureConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupLocation ¶
type BackupLocation struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Location BackupLocationItem `json:"location"` }
BackupLocation represents a backuplocation object
func (*BackupLocation) DeepCopy ¶
func (in *BackupLocation) DeepCopy() *BackupLocation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupLocation.
func (*BackupLocation) DeepCopyInto ¶
func (in *BackupLocation) DeepCopyInto(out *BackupLocation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupLocation) DeepCopyObject ¶
func (in *BackupLocation) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BackupLocation) UpdateFromSecret ¶
func (bl *BackupLocation) UpdateFromSecret(client kubernetes.Interface) error
UpdateFromSecret updated the config information from the secret if not provided inline
type BackupLocationItem ¶
type BackupLocationItem struct { Type BackupLocationType `json:"type"` // Path is either the bucket or any other path for the backup location Path string `json:"path"` EncryptionKey string `json:"encryptionKey"` S3Config *S3Config `json:"s3Config,omitempty"` AzureConfig *AzureConfig `json:"azureConfig,omitempty"` GoogleConfig *GoogleConfig `json:"googleConfig,omitempty"` SecretConfig string `json:"secretConfig"` Sync bool `json:"sync"` }
BackupLocationItem is the spec used to store a backup location Only one of S3Config, AzureConfig or GoogleConfig should be specified and should match the Type field. Members of the config can be specified inline or through the SecretConfig
func (*BackupLocationItem) DeepCopy ¶
func (in *BackupLocationItem) DeepCopy() *BackupLocationItem
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupLocationItem.
func (*BackupLocationItem) DeepCopyInto ¶
func (in *BackupLocationItem) DeepCopyInto(out *BackupLocationItem)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupLocationList ¶
type BackupLocationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BackupLocation `json:"items"` }
BackupLocationList is a list of ApplicationBackups
func (*BackupLocationList) DeepCopy ¶
func (in *BackupLocationList) DeepCopy() *BackupLocationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupLocationList.
func (*BackupLocationList) DeepCopyInto ¶
func (in *BackupLocationList) DeepCopyInto(out *BackupLocationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupLocationList) DeepCopyObject ¶
func (in *BackupLocationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackupLocationType ¶
type BackupLocationType string
BackupLocationType is the type of the backup location
const ( // BackupLocationS3 stores the backup in an S3-compliant objectstore BackupLocationS3 BackupLocationType = "s3" // BackupLocationAzure stores the backup in Azure Blob Storage BackupLocationAzure BackupLocationType = "azure" // BackupLocationGoogle stores the backup in Google Cloud Storage BackupLocationGoogle BackupLocationType = "google" )
type ClusterDomainInfo ¶
type ClusterDomainInfo struct { Name string `json:"name"` State ClusterDomainState `json:"state"` SyncStatus ClusterDomainSyncStatus `json:"syncStatus"` }
ClusterDomainInfo provides more information about a cluster domain
func (*ClusterDomainInfo) DeepCopy ¶
func (in *ClusterDomainInfo) DeepCopy() *ClusterDomainInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDomainInfo.
func (*ClusterDomainInfo) DeepCopyInto ¶
func (in *ClusterDomainInfo) DeepCopyInto(out *ClusterDomainInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterDomainState ¶
type ClusterDomainState string
ClusterDomainState defines the state of the cluster domain
const ( // ClusterDomainActive indicates that the cluster domain is active ClusterDomainActive ClusterDomainState = "Active" // ClusterDomainInactive indicates that the cluster domain is inactive ClusterDomainInactive ClusterDomainState = "Inactive" )
type ClusterDomainSyncStatus ¶
type ClusterDomainSyncStatus string
ClusterDomainSyncStatus defines the current sync progress status of a cluster domain
const ( // ClusterDomainSyncStatusInSync indicates the cluster domain is in sync ClusterDomainSyncStatusInSync ClusterDomainSyncStatus = "InSync" // ClusterDomainSyncStatusInProgress indicates the cluster domain sync is in progress ClusterDomainSyncStatusInProgress ClusterDomainSyncStatus = "SyncInProgress" // ClusterDomainSyncStatusNotInSync indicates the cluster domain is not in sync ClusterDomainSyncStatusNotInSync ClusterDomainSyncStatus = "NotInSync" // ClusterDomainSyncStatusUnknown indicates the cluster domain sync status is currently not known ClusterDomainSyncStatusUnknown ClusterDomainSyncStatus = "SyncStatusUnknown" )
type ClusterDomainUpdate ¶
type ClusterDomainUpdate struct { meta.TypeMeta `json:",inline"` meta.ObjectMeta `json:"metadata,omitempty"` Spec ClusterDomainUpdateSpec `json:"spec"` Status ClusterDomainUpdateStatus `json:"status"` }
ClusterDomainUpdate indicates the update need to be done on a ClusterDomain
func (*ClusterDomainUpdate) DeepCopy ¶
func (in *ClusterDomainUpdate) DeepCopy() *ClusterDomainUpdate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDomainUpdate.
func (*ClusterDomainUpdate) DeepCopyInto ¶
func (in *ClusterDomainUpdate) DeepCopyInto(out *ClusterDomainUpdate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterDomainUpdate) DeepCopyObject ¶
func (in *ClusterDomainUpdate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterDomainUpdateList ¶
type ClusterDomainUpdateList struct { meta.TypeMeta `json:",inline"` meta.ListMeta `json:"metadata,omitempty"` Items []ClusterDomainUpdate `json:"items"` }
ClusterDomainUpdateList is a list of statuses for cluster domains
func (*ClusterDomainUpdateList) DeepCopy ¶
func (in *ClusterDomainUpdateList) DeepCopy() *ClusterDomainUpdateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDomainUpdateList.
func (*ClusterDomainUpdateList) DeepCopyInto ¶
func (in *ClusterDomainUpdateList) DeepCopyInto(out *ClusterDomainUpdateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterDomainUpdateList) DeepCopyObject ¶
func (in *ClusterDomainUpdateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterDomainUpdateSpec ¶
type ClusterDomainUpdateSpec struct { ClusterDomain string `json:"clusterdomain"` Active bool `json:"active"` }
ClusterDomainUpdateSpec is the spec used to update a cluster domain
func (*ClusterDomainUpdateSpec) DeepCopy ¶
func (in *ClusterDomainUpdateSpec) DeepCopy() *ClusterDomainUpdateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDomainUpdateSpec.
func (*ClusterDomainUpdateSpec) DeepCopyInto ¶
func (in *ClusterDomainUpdateSpec) DeepCopyInto(out *ClusterDomainUpdateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterDomainUpdateStatus ¶
type ClusterDomainUpdateStatus struct { Status ClusterDomainUpdateStatusType `json:"status"` Reason string `json:"reason"` }
ClusterDomainUpdateStatus indicates the status of ClusterDomainUpdate resource
func (*ClusterDomainUpdateStatus) DeepCopy ¶
func (in *ClusterDomainUpdateStatus) DeepCopy() *ClusterDomainUpdateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDomainUpdateStatus.
func (*ClusterDomainUpdateStatus) DeepCopyInto ¶
func (in *ClusterDomainUpdateStatus) DeepCopyInto(out *ClusterDomainUpdateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterDomainUpdateStatusType ¶
type ClusterDomainUpdateStatusType string
ClusterDomainUpdateStatusType is the status of cluster domain update operation
const ( // ClusterDomainUpdateStatusInitial is the initial state when clusterdomainsupdate is created ClusterDomainUpdateStatusInitial ClusterDomainUpdateStatusType = "" // ClusterDomainUpdateStatusPending is state when clusterdomainsupdate is still pending ClusterDomainUpdateStatusPending ClusterDomainUpdateStatusType = "Pending" // ClusterDomainUpdateStatusFailed is state when clusterdomainsupdate has failed ClusterDomainUpdateStatusFailed ClusterDomainUpdateStatusType = "Failed" // ClusterDomainUpdateStatusSuccessful is state when clusterdomainsupdate has completed successfully ClusterDomainUpdateStatusSuccessful ClusterDomainUpdateStatusType = "Successful" )
type ClusterDomains ¶
type ClusterDomains struct { LocalDomain string `json:"localDomain"` ClusterDomainInfos []ClusterDomainInfo `json:"clusterDomainInfos"` }
ClusterDomains provides a list of activated cluster domains and a list of inactive cluster domains
func (*ClusterDomains) DeepCopy ¶
func (in *ClusterDomains) DeepCopy() *ClusterDomains
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDomains.
func (*ClusterDomains) DeepCopyInto ¶
func (in *ClusterDomains) DeepCopyInto(out *ClusterDomains)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterDomainsStatus ¶
type ClusterDomainsStatus struct { meta.TypeMeta `json:",inline"` meta.ObjectMeta `json:"metadata,omitempty"` Status ClusterDomains `json:"status"` }
ClusterDomainsStatus represents the status of all cluster domains
func (*ClusterDomainsStatus) DeepCopy ¶
func (in *ClusterDomainsStatus) DeepCopy() *ClusterDomainsStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDomainsStatus.
func (*ClusterDomainsStatus) DeepCopyInto ¶
func (in *ClusterDomainsStatus) DeepCopyInto(out *ClusterDomainsStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterDomainsStatus) DeepCopyObject ¶
func (in *ClusterDomainsStatus) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterDomainsStatusList ¶
type ClusterDomainsStatusList struct { meta.TypeMeta `json:",inline"` meta.ListMeta `json:"metadata,omitempty"` Items []ClusterDomainsStatus `json:"items"` }
ClusterDomainsStatusList is a list of statuses for cluster domains
func (*ClusterDomainsStatusList) DeepCopy ¶
func (in *ClusterDomainsStatusList) DeepCopy() *ClusterDomainsStatusList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDomainsStatusList.
func (*ClusterDomainsStatusList) DeepCopyInto ¶
func (in *ClusterDomainsStatusList) DeepCopyInto(out *ClusterDomainsStatusList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterDomainsStatusList) DeepCopyObject ¶
func (in *ClusterDomainsStatusList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterPair ¶
type ClusterPair struct { meta.TypeMeta `json:",inline"` meta.ObjectMeta `json:"metadata,omitempty"` Spec ClusterPairSpec `json:"spec"` Status ClusterPairStatus `json:"status,omitempty"` }
ClusterPair represents pairing with other clusters
func (*ClusterPair) DeepCopy ¶
func (in *ClusterPair) DeepCopy() *ClusterPair
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPair.
func (*ClusterPair) DeepCopyInto ¶
func (in *ClusterPair) DeepCopyInto(out *ClusterPair)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterPair) DeepCopyObject ¶
func (in *ClusterPair) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterPairList ¶
type ClusterPairList struct { meta.TypeMeta `json:",inline"` meta.ListMeta `json:"metadata,omitempty"` Items []ClusterPair `json:"items"` }
ClusterPairList is a list of cluster pairs
func (*ClusterPairList) DeepCopy ¶
func (in *ClusterPairList) DeepCopy() *ClusterPairList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPairList.
func (*ClusterPairList) DeepCopyInto ¶
func (in *ClusterPairList) DeepCopyInto(out *ClusterPairList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterPairList) DeepCopyObject ¶
func (in *ClusterPairList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterPairSpec ¶
type ClusterPairSpec struct { Config api.Config `json:"config"` Options map[string]string `json:"options"` }
ClusterPairSpec is the spec to create the cluster pair
func (*ClusterPairSpec) DeepCopy ¶
func (in *ClusterPairSpec) DeepCopy() *ClusterPairSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPairSpec.
func (*ClusterPairSpec) DeepCopyInto ¶
func (in *ClusterPairSpec) DeepCopyInto(out *ClusterPairSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterPairStatus ¶
type ClusterPairStatus struct { // Status of the pairing with the scheduler // +optional SchedulerStatus ClusterPairStatusType `json:"schedulerStatus"` // Status of pairing with the storage driver // +optional StorageStatus ClusterPairStatusType `json:"storageStatus"` // ID of the remote storage which is paired // +optional RemoteStorageID string `json:"remoteStorageId"` }
ClusterPairStatus is the status of the cluster pair
func (*ClusterPairStatus) DeepCopy ¶
func (in *ClusterPairStatus) DeepCopy() *ClusterPairStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPairStatus.
func (*ClusterPairStatus) DeepCopyInto ¶
func (in *ClusterPairStatus) DeepCopyInto(out *ClusterPairStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterPairStatusType ¶
type ClusterPairStatusType string
ClusterPairStatusType is the status of the pair
const ( // ClusterPairStatusInitial is the initial state when pairing is created ClusterPairStatusInitial ClusterPairStatusType = "" // ClusterPairStatusPending for when pairing is still pending ClusterPairStatusPending ClusterPairStatusType = "Pending" // ClusterPairStatusReady for when pair is ready ClusterPairStatusReady ClusterPairStatusType = "Ready" // ClusterPairStatusError for when pairing is in error state ClusterPairStatusError ClusterPairStatusType = "Error" // ClusterPairStatusDegraded for when pairing is degraded ClusterPairStatusDegraded ClusterPairStatusType = "Degraded" // ClusterPairStatusDeleting for when pairing is being deleted ClusterPairStatusDeleting ClusterPairStatusType = "Deleting" // ClusterPairStatusNotProvided for when pairing information is not // provided ClusterPairStatusNotProvided ClusterPairStatusType = "NotProvided" )
type DailyPolicy ¶
type DailyPolicy struct { // Time when the policy should be triggered. Expected format is // time.Kitchen eg 12:04PM or 12:04pm Time string `json:"time"` // Retain Number of objects to retain for daily policy. Defaults to // @DefaultDailyPolicyRetain Retain Retain `json:"retain"` }
DailyPolicy contains the time in the day where an action should be executed
func (*DailyPolicy) DeepCopy ¶
func (in *DailyPolicy) DeepCopy() *DailyPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DailyPolicy.
func (*DailyPolicy) DeepCopyInto ¶
func (in *DailyPolicy) DeepCopyInto(out *DailyPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DailyPolicy) GetHourMinute ¶
func (d *DailyPolicy) GetHourMinute() (int, int, error)
GetHourMinute parses and return the hour and minute specified in the policy
func (*DailyPolicy) Validate ¶
func (d *DailyPolicy) Validate() error
Validate validates a DailyPolicy
type GoogleConfig ¶
type GoogleConfig struct { ProjectID string `json:"projectID"` AccountKey string `json:"accountKey"` }
GoogleConfig specifies the config required to connect to Google Cloud Storage
func (*GoogleConfig) DeepCopy ¶
func (in *GoogleConfig) DeepCopy() *GoogleConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GoogleConfig.
func (*GoogleConfig) DeepCopyInto ¶
func (in *GoogleConfig) DeepCopyInto(out *GoogleConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GroupVolumeSnapshot ¶
type GroupVolumeSnapshot struct { meta.TypeMeta `json:",inline"` meta.ObjectMeta `json:"metadata,omitempty"` Spec GroupVolumeSnapshotSpec `json:"spec"` Status GroupVolumeSnapshotStatus `json:"status"` }
GroupVolumeSnapshot represents a group snapshot
func (*GroupVolumeSnapshot) DeepCopy ¶
func (in *GroupVolumeSnapshot) DeepCopy() *GroupVolumeSnapshot
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVolumeSnapshot.
func (*GroupVolumeSnapshot) DeepCopyInto ¶
func (in *GroupVolumeSnapshot) DeepCopyInto(out *GroupVolumeSnapshot)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GroupVolumeSnapshot) DeepCopyObject ¶
func (in *GroupVolumeSnapshot) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GroupVolumeSnapshotList ¶
type GroupVolumeSnapshotList struct { meta.TypeMeta `json:",inline"` meta.ListMeta `json:"metadata,omitempty"` Items []GroupVolumeSnapshot `json:"items"` }
GroupVolumeSnapshotList is a list of group volume snapshots
func (*GroupVolumeSnapshotList) DeepCopy ¶
func (in *GroupVolumeSnapshotList) DeepCopy() *GroupVolumeSnapshotList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVolumeSnapshotList.
func (*GroupVolumeSnapshotList) DeepCopyInto ¶
func (in *GroupVolumeSnapshotList) DeepCopyInto(out *GroupVolumeSnapshotList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GroupVolumeSnapshotList) DeepCopyObject ¶
func (in *GroupVolumeSnapshotList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GroupVolumeSnapshotSpec ¶
type GroupVolumeSnapshotSpec struct { // PreExecRule is the name of rule applied before taking the snapshot. The rule needs to be // in the same namespace as the group volumesnapshot PreExecRule string `json:"preExecRule"` // PreExecRule is the name of rule applied after taking the snapshot. The rule needs to be // in the same namespace as the group volumesnapshot PostExecRule string `json:"postExecRule"` // PVCSelector selects the PVCs that are part of the group snapshot PVCSelector PVCSelectorSpec `json:"pvcSelector"` // RestoreNamespaces is a list of namespaces to which the snapshots can be restored to RestoreNamespaces []string `json:"restoreNamespaces"` // MaxRetries is the number of times to retry the groupvolumesnapshot on failure. default: 0 MaxRetries int `json:"maxRetries"` // Options are pass-through parameters that are passed to the driver handling the group snapshot Options map[string]string `json:"options"` }
GroupVolumeSnapshotSpec represents the spec for a group snapshot
func (*GroupVolumeSnapshotSpec) DeepCopy ¶
func (in *GroupVolumeSnapshotSpec) DeepCopy() *GroupVolumeSnapshotSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVolumeSnapshotSpec.
func (*GroupVolumeSnapshotSpec) DeepCopyInto ¶
func (in *GroupVolumeSnapshotSpec) DeepCopyInto(out *GroupVolumeSnapshotSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GroupVolumeSnapshotStageType ¶
type GroupVolumeSnapshotStageType string
GroupVolumeSnapshotStageType is the stage of the group snapshot
const ( // GroupSnapshotStageInitial is when the group snapshot is just created GroupSnapshotStageInitial GroupVolumeSnapshotStageType = "" // GroupSnapshotStagePreChecks is when the group snapshot is going through prechecks GroupSnapshotStagePreChecks GroupVolumeSnapshotStageType = "PreChecks" // GroupSnapshotStagePreSnapshot is when the pre-snapshot rule is executing for the group snapshot GroupSnapshotStagePreSnapshot GroupVolumeSnapshotStageType = "PreSnapshot" // GroupSnapshotStageSnapshot is when the snapshots are being taken for the group snapshot GroupSnapshotStageSnapshot GroupVolumeSnapshotStageType = "Snapshot" // GroupSnapshotStagePostSnapshot is when the post-snapshot rule is executing for the group snapshot GroupSnapshotStagePostSnapshot GroupVolumeSnapshotStageType = "PostSnapshot" // GroupSnapshotStageFinal is when all stages are done for the group snapshot GroupSnapshotStageFinal GroupVolumeSnapshotStageType = "Final" )
type GroupVolumeSnapshotStatus ¶
type GroupVolumeSnapshotStatus struct { Stage GroupVolumeSnapshotStageType `json:"stage"` Status GroupVolumeSnapshotStatusType `json:"status"` NumRetries int `json:"numRetries"` VolumeSnapshots []*VolumeSnapshotStatus `json:"volumeSnapshots"` }
GroupVolumeSnapshotStatus is status for the group snapshot
func (*GroupVolumeSnapshotStatus) DeepCopy ¶
func (in *GroupVolumeSnapshotStatus) DeepCopy() *GroupVolumeSnapshotStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVolumeSnapshotStatus.
func (*GroupVolumeSnapshotStatus) DeepCopyInto ¶
func (in *GroupVolumeSnapshotStatus) DeepCopyInto(out *GroupVolumeSnapshotStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GroupVolumeSnapshotStatusType ¶
type GroupVolumeSnapshotStatusType string
GroupVolumeSnapshotStatusType is types of statuses of a group snapshot operation
const ( // GroupSnapshotInitial is when the group snapshot is created and no action has yet been performed GroupSnapshotInitial GroupVolumeSnapshotStatusType = "" // GroupSnapshotPending is when the group snapshot is in pending state waiting for another event GroupSnapshotPending GroupVolumeSnapshotStatusType = "Pending" // GroupSnapshotInProgress is when the group snapshot is in progress GroupSnapshotInProgress GroupVolumeSnapshotStatusType = "InProgress" // GroupSnapshotFailed is when the group snapshot has failed GroupSnapshotFailed GroupVolumeSnapshotStatusType = "Failed" // GroupSnapshotSuccessful is when the group snapshot has succeeded GroupSnapshotSuccessful GroupVolumeSnapshotStatusType = "Successful" )
type IntervalPolicy ¶
type IntervalPolicy struct { IntervalMinutes int `json:"intervalMinutes"` // Retain Number of objects to retain for interval policy. Defaults to // @DefaultIntervalPolicyRetain Retain Retain `json:"retain"` }
IntervalPolicy contains the interval at which an action should be triggered
func (*IntervalPolicy) DeepCopy ¶
func (in *IntervalPolicy) DeepCopy() *IntervalPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntervalPolicy.
func (*IntervalPolicy) DeepCopyInto ¶
func (in *IntervalPolicy) DeepCopyInto(out *IntervalPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IntervalPolicy) Validate ¶
func (i *IntervalPolicy) Validate() error
Validate validates an IntervalPolicy
type Migration ¶
type Migration struct { meta.TypeMeta `json:",inline"` meta.ObjectMeta `json:"metadata,omitempty"` Spec MigrationSpec `json:"spec"` Status MigrationStatus `json:"status"` }
Migration represents migration status
func (*Migration) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Migration.
func (*Migration) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Migration) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MigrationList ¶
type MigrationList struct { meta.TypeMeta `json:",inline"` meta.ListMeta `json:"metadata,omitempty"` Items []Migration `json:"items"` }
MigrationList is a list of Migrations
func (*MigrationList) DeepCopy ¶
func (in *MigrationList) DeepCopy() *MigrationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationList.
func (*MigrationList) DeepCopyInto ¶
func (in *MigrationList) DeepCopyInto(out *MigrationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MigrationList) DeepCopyObject ¶
func (in *MigrationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MigrationResourceInfo ¶
type MigrationResourceInfo struct { Name string `json:"name"` Namespace string `json:"namespace"` meta.GroupVersionKind `json:",inline"` Status MigrationStatusType `json:"status"` Reason string `json:"reason"` }
MigrationResourceInfo is the info for the migration of a resource
func (*MigrationResourceInfo) DeepCopy ¶
func (in *MigrationResourceInfo) DeepCopy() *MigrationResourceInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationResourceInfo.
func (*MigrationResourceInfo) DeepCopyInto ¶
func (in *MigrationResourceInfo) DeepCopyInto(out *MigrationResourceInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MigrationSchedule ¶
type MigrationSchedule struct { meta.TypeMeta `json:",inline"` meta.ObjectMeta `json:"metadata,omitempty"` Spec MigrationScheduleSpec `json:"spec"` Status MigrationScheduleStatus `json:"status"` }
MigrationSchedule represents a scheduled migration object
func (*MigrationSchedule) DeepCopy ¶
func (in *MigrationSchedule) DeepCopy() *MigrationSchedule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationSchedule.
func (*MigrationSchedule) DeepCopyInto ¶
func (in *MigrationSchedule) DeepCopyInto(out *MigrationSchedule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MigrationSchedule) DeepCopyObject ¶
func (in *MigrationSchedule) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MigrationScheduleList ¶
type MigrationScheduleList struct { meta.TypeMeta `json:",inline"` meta.ListMeta `json:"metadata,omitempty"` Items []MigrationSchedule `json:"items"` }
MigrationScheduleList is a list of MigrationSchedules
func (*MigrationScheduleList) DeepCopy ¶
func (in *MigrationScheduleList) DeepCopy() *MigrationScheduleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationScheduleList.
func (*MigrationScheduleList) DeepCopyInto ¶
func (in *MigrationScheduleList) DeepCopyInto(out *MigrationScheduleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MigrationScheduleList) DeepCopyObject ¶
func (in *MigrationScheduleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MigrationScheduleSpec ¶
type MigrationScheduleSpec struct { Template MigrationTemplateSpec `json:"template"` SchedulePolicyName string `json:"schedulePolicyName"` Suspend *bool `json:"suspend"` }
MigrationScheduleSpec is the spec used to schedule migrations
func (*MigrationScheduleSpec) DeepCopy ¶
func (in *MigrationScheduleSpec) DeepCopy() *MigrationScheduleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationScheduleSpec.
func (*MigrationScheduleSpec) DeepCopyInto ¶
func (in *MigrationScheduleSpec) DeepCopyInto(out *MigrationScheduleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MigrationScheduleStatus ¶
type MigrationScheduleStatus struct {
Items map[SchedulePolicyType][]*ScheduledMigrationStatus `json:"items"`
}
MigrationScheduleStatus is the status of a migration schedule
func (*MigrationScheduleStatus) DeepCopy ¶
func (in *MigrationScheduleStatus) DeepCopy() *MigrationScheduleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationScheduleStatus.
func (*MigrationScheduleStatus) DeepCopyInto ¶
func (in *MigrationScheduleStatus) DeepCopyInto(out *MigrationScheduleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MigrationSpec ¶
type MigrationSpec struct { ClusterPair string `json:"clusterPair"` AdminClusterPair string `json:"adminClusterPair"` Namespaces []string `json:"namespaces"` IncludeResources *bool `json:"includeResources"` IncludeVolumes *bool `json:"includeVolumes"` StartApplications *bool `json:"startApplications"` PurgeDeletedResources *bool `json:"purgeDeletedResources"` Selectors map[string]string `json:"selectors"` PreExecRule string `json:"preExecRule"` PostExecRule string `json:"postExecRule"` }
MigrationSpec is the spec used to migrate apps between clusterpairs
func (*MigrationSpec) DeepCopy ¶
func (in *MigrationSpec) DeepCopy() *MigrationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationSpec.
func (*MigrationSpec) DeepCopyInto ¶
func (in *MigrationSpec) DeepCopyInto(out *MigrationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MigrationStageType ¶
type MigrationStageType string
MigrationStageType is the stage of the migration
const ( // MigrationStageInitial for when migration is created MigrationStageInitial MigrationStageType = "" // MigrationStagePreExecRule for when the PreExecRule is being executed MigrationStagePreExecRule MigrationStageType = "PreExecRule" // MigrationStagePostExecRule for when the PostExecRule is being executed MigrationStagePostExecRule MigrationStageType = "PostExecRule" // MigrationStageVolumes for when volumes are being migrated MigrationStageVolumes MigrationStageType = "Volumes" // MigrationStageApplications for when applications are being migrated MigrationStageApplications MigrationStageType = "Applications" // MigrationStageFinal is the final stage for migration MigrationStageFinal MigrationStageType = "Final" )
type MigrationStatus ¶
type MigrationStatus struct { Stage MigrationStageType `json:"stage"` Status MigrationStatusType `json:"status"` Resources []*MigrationResourceInfo `json:"resources"` Volumes []*MigrationVolumeInfo `json:"volumes"` FinishTimestamp meta.Time `json:"finishTimestamp"` }
MigrationStatus is the status of a migration operation
func (*MigrationStatus) DeepCopy ¶
func (in *MigrationStatus) DeepCopy() *MigrationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationStatus.
func (*MigrationStatus) DeepCopyInto ¶
func (in *MigrationStatus) DeepCopyInto(out *MigrationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MigrationStatusType ¶
type MigrationStatusType string
MigrationStatusType is the status of the migration
const ( // MigrationStatusInitial is the initial state when migration is created MigrationStatusInitial MigrationStatusType = "" // MigrationStatusPending for when migration is still pending MigrationStatusPending MigrationStatusType = "Pending" // MigrationStatusCaptured for when migration specs have been captured MigrationStatusCaptured MigrationStatusType = "Captured" // MigrationStatusInProgress for when migration is in progress MigrationStatusInProgress MigrationStatusType = "InProgress" // MigrationStatusFailed for when migration has failed MigrationStatusFailed MigrationStatusType = "Failed" // MigrationStatusPartialSuccess for when migration was partially successful MigrationStatusPartialSuccess MigrationStatusType = "PartialSuccess" // MigrationStatusSuccessful for when migration has completed successfully MigrationStatusSuccessful MigrationStatusType = "Successful" // MigrationStatusPurged for when migration objects has been deleted MigrationStatusPurged MigrationStatusType = "Purged" )
type MigrationTemplateSpec ¶
type MigrationTemplateSpec struct {
Spec MigrationSpec `json:"spec"`
}
MigrationTemplateSpec describes the data a Migration should have when created from a template
func (*MigrationTemplateSpec) DeepCopy ¶
func (in *MigrationTemplateSpec) DeepCopy() *MigrationTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationTemplateSpec.
func (*MigrationTemplateSpec) DeepCopyInto ¶
func (in *MigrationTemplateSpec) DeepCopyInto(out *MigrationTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MigrationVolumeInfo ¶
type MigrationVolumeInfo struct { PersistentVolumeClaim string `json:"persistentVolumeClaim"` Namespace string `json:"namespace"` Volume string `json:"volume"` Status MigrationStatusType `json:"status"` Reason string `json:"reason"` }
MigrationVolumeInfo is the info for the migration of a volume
func (*MigrationVolumeInfo) DeepCopy ¶
func (in *MigrationVolumeInfo) DeepCopy() *MigrationVolumeInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationVolumeInfo.
func (*MigrationVolumeInfo) DeepCopyInto ¶
func (in *MigrationVolumeInfo) DeepCopyInto(out *MigrationVolumeInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MonthlyPolicy ¶
type MonthlyPolicy struct { // Date of the month when the policy should be triggered. If a given date // doesn't exist in a month it'll rollover to the next date of the month. // For example if 31 is specified, it'll trigger on either 1st or 2nd March // depending on if it is a leap year. Date int `json:"date"` // Time when the policy should be triggered. Expected format is // time.Kitchen eg 12:04PM or 12:04pm Time string `json:"time"` // Retain Number of objects to retain for monthly policy. Defaults to // @DefaultMonthlyPolicyRetain Retain Retain `json:"retain"` }
MonthlyPolicy contains the date and time in a month when an action should be executed
func (*MonthlyPolicy) DeepCopy ¶
func (in *MonthlyPolicy) DeepCopy() *MonthlyPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonthlyPolicy.
func (*MonthlyPolicy) DeepCopyInto ¶
func (in *MonthlyPolicy) DeepCopyInto(out *MonthlyPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MonthlyPolicy) GetHourMinute ¶
func (m *MonthlyPolicy) GetHourMinute() (int, int, error)
GetHourMinute parses and return the hour and minute specified in the policy
func (*MonthlyPolicy) Validate ¶
func (m *MonthlyPolicy) Validate() error
Validate validates a MonthlyPolicy
type PVCSelectorSpec ¶
type PVCSelectorSpec struct {
meta.LabelSelector
}
PVCSelectorSpec is the spec to select the PVCs for group snapshot
func (*PVCSelectorSpec) DeepCopy ¶
func (in *PVCSelectorSpec) DeepCopy() *PVCSelectorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PVCSelectorSpec.
func (*PVCSelectorSpec) DeepCopyInto ¶
func (in *PVCSelectorSpec) DeepCopyInto(out *PVCSelectorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReclaimPolicyType ¶
type ReclaimPolicyType string
ReclaimPolicyType is the type of reclaim policy
const ( // ReclaimPolicyInvalid is an invalid schedule policy ReclaimPolicyInvalid ReclaimPolicyType = "Invalid" // ReclaimPolicyDelete is to specify that an object should be deleted ReclaimPolicyDelete ReclaimPolicyType = "Delete" // ReclaimPolicyRetain is to specify that an object should be retained ReclaimPolicyRetain ReclaimPolicyType = "Retain" )
type RestoreVolumeInfo ¶
type RestoreVolumeInfo struct { Volume string `json:"volume"` PVC string `json:"pvc"` Namespace string `json:"namespace"` Snapshot string `json:"snapshot"` RestoreStatus VolumeSnapshotRestoreStatusType `json:"status"` Reason string `json:"reason"` }
RestoreVolumeInfo is the info for the restore of a volume
func (*RestoreVolumeInfo) DeepCopy ¶
func (in *RestoreVolumeInfo) DeepCopy() *RestoreVolumeInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreVolumeInfo.
func (*RestoreVolumeInfo) DeepCopyInto ¶
func (in *RestoreVolumeInfo) DeepCopyInto(out *RestoreVolumeInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Retain ¶
type Retain int
Retain Type to specify how many objects should be retained for a policy
type Rule ¶
type Rule struct { meta.TypeMeta `json:",inline"` meta.ObjectMeta `json:"metadata,omitempty"` Rules []RuleItem `json:"rules"` }
Rule denotes an object to declare a rule that performs actions on pods
func (*Rule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
func (*Rule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Rule) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RuleAction ¶
type RuleAction struct { // Type is a type of the stork rule action Type RuleActionType `json:"type"` // Background indicates that the action needs to be performed in the background // +optional Background bool `json:"background,omitempty"` // RunInSinglePod indicates that the action needs to be performed in a single pod // from the list of pods that match the selector // +optional RunInSinglePod bool `json:"runInSinglePod,omitempty"` // Value is the actual action value for e.g the command to run Value string `json:"value"` }
RuleAction represents an action in a stork rule item
func (*RuleAction) DeepCopy ¶
func (in *RuleAction) DeepCopy() *RuleAction
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleAction.
func (*RuleAction) DeepCopyInto ¶
func (in *RuleAction) DeepCopyInto(out *RuleAction)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleActionType ¶
type RuleActionType string
RuleActionType is a type for actions that are supported in a stork rule
const ( // RuleActionCommand is a command action RuleActionCommand RuleActionType = "command" )
type RuleItem ¶
type RuleItem struct { // PodSelector is a map of key value pairs that are used to select the pods using their labels PodSelector map[string]string `json:"podSelector"` // Actions are actions to be performed on the pods selected using the selector Actions []RuleAction `json:"actions"` }
RuleItem represents one items in a stork rule spec
func (*RuleItem) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleItem.
func (*RuleItem) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleList ¶
type RuleList struct { meta.TypeMeta `json:",inline"` meta.ListMeta `json:"metadata,omitempty"` Items []Rule `json:"items"` }
RuleList is a list of stork rules
func (*RuleList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleList.
func (*RuleList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RuleList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type S3Config ¶
type S3Config struct { // Endpoint will be defaulted to s3.amazonaws.com by the controller if not provided Endpoint string `json:"endpoint"` AccessKeyID string `json:"accessKeyID"` SecretAccessKey string `json:"secretAccessKey"` // Region will be defaulted to us-east-1 by the controller if not provided Region string `json:"region"` // Disable SSL option if using with a non-AWS S3 objectstore which doesn't // have SSL enabled DisableSSL bool `json:"disableSSL"` }
S3Config speficies the config required to connect to an S3-compliant objectstore
func (*S3Config) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Config.
func (*S3Config) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SchedulePolicy ¶
type SchedulePolicy struct { meta.TypeMeta `json:",inline"` meta.ObjectMeta `json:"metadata,omitempty"` // Policy Policy SchedulePolicyItem `json:"policy"` }
SchedulePolicy represents a policy for executing actions on a schedule
func (*SchedulePolicy) DeepCopy ¶
func (in *SchedulePolicy) DeepCopy() *SchedulePolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulePolicy.
func (*SchedulePolicy) DeepCopyInto ¶
func (in *SchedulePolicy) DeepCopyInto(out *SchedulePolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SchedulePolicy) DeepCopyObject ¶
func (in *SchedulePolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SchedulePolicyItem ¶
type SchedulePolicyItem struct { // Interval policy that will be triggered at the specified interval Interval *IntervalPolicy `json:"interval"` // Daily policy that will be triggered daily at a specified time Daily *DailyPolicy `json:"daily"` // Weekly policy that will be triggered on the specified day of the week at // the specified time Weekly *WeeklyPolicy `json:"weekly"` // Monthly policy that will be triggered on the specified date of the month // at the specified time Monthly *MonthlyPolicy `json:"monthly"` }
SchedulePolicyItem represents the schedule for executing an action
func (*SchedulePolicyItem) DeepCopy ¶
func (in *SchedulePolicyItem) DeepCopy() *SchedulePolicyItem
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulePolicyItem.
func (*SchedulePolicyItem) DeepCopyInto ¶
func (in *SchedulePolicyItem) DeepCopyInto(out *SchedulePolicyItem)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SchedulePolicyList ¶
type SchedulePolicyList struct { meta.TypeMeta `json:",inline"` meta.ListMeta `json:"metadata,omitempty"` Items []SchedulePolicy `json:"items"` }
SchedulePolicyList is a list of schedule policies
func (*SchedulePolicyList) DeepCopy ¶
func (in *SchedulePolicyList) DeepCopy() *SchedulePolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulePolicyList.
func (*SchedulePolicyList) DeepCopyInto ¶
func (in *SchedulePolicyList) DeepCopyInto(out *SchedulePolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SchedulePolicyList) DeepCopyObject ¶
func (in *SchedulePolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SchedulePolicyType ¶
type SchedulePolicyType string
SchedulePolicyType is the type of schedule policy
const ( // SchedulePolicyTypeInvalid is an invalid schedule policy SchedulePolicyTypeInvalid SchedulePolicyType = "Invalid" // SchedulePolicyTypeInterval is the type for an interval schedule policy SchedulePolicyTypeInterval SchedulePolicyType = "Interval" // SchedulePolicyTypeDaily is the type for a daily schedule policy SchedulePolicyTypeDaily SchedulePolicyType = "Daily" // SchedulePolicyTypeWeekly is the type for a weekly schedule policy SchedulePolicyTypeWeekly SchedulePolicyType = "Weekly" // SchedulePolicyTypeMonthly is the type for a monthly schedule policy SchedulePolicyTypeMonthly SchedulePolicyType = "Monthly" )
func GetValidSchedulePolicyTypes ¶
func GetValidSchedulePolicyTypes() []SchedulePolicyType
GetValidSchedulePolicyTypes returns the valid types of schedule policies that can be configured
type ScheduledApplicationBackupStatus ¶
type ScheduledApplicationBackupStatus struct { Name string `json:"name"` CreationTimestamp meta.Time `json:"creationTimestamp"` FinishTimestamp meta.Time `json:"finishTimestamp"` Status ApplicationBackupStatusType `json:"status"` }
ScheduledApplicationBackupStatus keeps track of the applicationbackup that was triggered by a scheduled policy
func (*ScheduledApplicationBackupStatus) DeepCopy ¶
func (in *ScheduledApplicationBackupStatus) DeepCopy() *ScheduledApplicationBackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduledApplicationBackupStatus.
func (*ScheduledApplicationBackupStatus) DeepCopyInto ¶
func (in *ScheduledApplicationBackupStatus) DeepCopyInto(out *ScheduledApplicationBackupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScheduledMigrationStatus ¶
type ScheduledMigrationStatus struct { Name string `json:"name"` CreationTimestamp meta.Time `json:"creationTimestamp"` FinishTimestamp meta.Time `json:"finishTimestamp"` Status MigrationStatusType `json:"status"` }
ScheduledMigrationStatus keeps track of the migration that was triggered by a scheduled policy
func (*ScheduledMigrationStatus) DeepCopy ¶
func (in *ScheduledMigrationStatus) DeepCopy() *ScheduledMigrationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduledMigrationStatus.
func (*ScheduledMigrationStatus) DeepCopyInto ¶
func (in *ScheduledMigrationStatus) DeepCopyInto(out *ScheduledMigrationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScheduledVolumeSnapshotStatus ¶
type ScheduledVolumeSnapshotStatus struct { Name string `json:"name"` CreationTimestamp meta.Time `json:"creationTimestamp"` FinishTimestamp meta.Time `json:"finishTimestamp"` Status snapv1.VolumeSnapshotConditionType `json:"status"` }
ScheduledVolumeSnapshotStatus keeps track of the volumesnapshot that was triggered by a scheduled policy
func (*ScheduledVolumeSnapshotStatus) DeepCopy ¶
func (in *ScheduledVolumeSnapshotStatus) DeepCopy() *ScheduledVolumeSnapshotStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduledVolumeSnapshotStatus.
func (*ScheduledVolumeSnapshotStatus) DeepCopyInto ¶
func (in *ScheduledVolumeSnapshotStatus) DeepCopyInto(out *ScheduledVolumeSnapshotStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeSnapshotRestore ¶
type VolumeSnapshotRestore struct { meta.TypeMeta `json:",inline"` meta.ObjectMeta `json:"metadata,omitempty"` Spec VolumeSnapshotRestoreSpec `json:"spec"` Status VolumeSnapshotRestoreStatus `json:"status"` }
VolumeSnapshotRestore crd spec for in-place restore of volume
func (*VolumeSnapshotRestore) DeepCopy ¶
func (in *VolumeSnapshotRestore) DeepCopy() *VolumeSnapshotRestore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotRestore.
func (*VolumeSnapshotRestore) DeepCopyInto ¶
func (in *VolumeSnapshotRestore) DeepCopyInto(out *VolumeSnapshotRestore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumeSnapshotRestore) DeepCopyObject ¶
func (in *VolumeSnapshotRestore) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeSnapshotRestoreList ¶
type VolumeSnapshotRestoreList struct { meta.TypeMeta `json:",inline"` meta.ListMeta `json:"metadata,omitempty"` Items []VolumeSnapshotRestore `json:"items"` }
VolumeSnapshotRestoreList is list of snapshot restores
func (*VolumeSnapshotRestoreList) DeepCopy ¶
func (in *VolumeSnapshotRestoreList) DeepCopy() *VolumeSnapshotRestoreList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotRestoreList.
func (*VolumeSnapshotRestoreList) DeepCopyInto ¶
func (in *VolumeSnapshotRestoreList) DeepCopyInto(out *VolumeSnapshotRestoreList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumeSnapshotRestoreList) DeepCopyObject ¶
func (in *VolumeSnapshotRestoreList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeSnapshotRestoreSpec ¶
type VolumeSnapshotRestoreSpec struct { // SourceName of snapshot SourceName string `json:"sourceName"` // SourceNameSpace is snapshot namespace SourceNamespace string `json:"sourceNamespace"` // GroupSnapshot true if snapshot volumegroupsnapshot GroupSnapshot bool `json:"groupSnapshot"` // DestinationPVC list to restore snapshot DestinationPVC map[string]string `json:"pvcs,omitempty"` }
VolumeSnapshotRestoreSpec for in-place volume restore
func (*VolumeSnapshotRestoreSpec) DeepCopy ¶
func (in *VolumeSnapshotRestoreSpec) DeepCopy() *VolumeSnapshotRestoreSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotRestoreSpec.
func (*VolumeSnapshotRestoreSpec) DeepCopyInto ¶
func (in *VolumeSnapshotRestoreSpec) DeepCopyInto(out *VolumeSnapshotRestoreSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeSnapshotRestoreStatus ¶
type VolumeSnapshotRestoreStatus struct { // Status of volume restore Status VolumeSnapshotRestoreStatusType `json:"status"` // Volumes list of volume restore information Volumes []*RestoreVolumeInfo `json:"volumes"` }
VolumeSnapshotRestoreStatus of volume
func (*VolumeSnapshotRestoreStatus) DeepCopy ¶
func (in *VolumeSnapshotRestoreStatus) DeepCopy() *VolumeSnapshotRestoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotRestoreStatus.
func (*VolumeSnapshotRestoreStatus) DeepCopyInto ¶
func (in *VolumeSnapshotRestoreStatus) DeepCopyInto(out *VolumeSnapshotRestoreStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeSnapshotRestoreStatusType ¶
type VolumeSnapshotRestoreStatusType string
VolumeSnapshotRestoreStatusType is the status of volume in-place restore
const ( // VolumeSnapshotRestoreStatusInitial is the initial state when snapshot restore is initiated VolumeSnapshotRestoreStatusInitial VolumeSnapshotRestoreStatusType = "" // VolumeSnapshotRestoreStatusPending for when restore is in pending state VolumeSnapshotRestoreStatusPending VolumeSnapshotRestoreStatusType = "Pending" // VolumeSnapshotRestoreStatusStaged for when restore has been staged locally VolumeSnapshotRestoreStatusStaged VolumeSnapshotRestoreStatusType = "Staged" // VolumeSnapshotRestoreStatusSuccessful for when restore is completed VolumeSnapshotRestoreStatusSuccessful VolumeSnapshotRestoreStatusType = "Successful" // VolumeSnapshotRestoreStatusInProgress for when restore is in progress VolumeSnapshotRestoreStatusInProgress VolumeSnapshotRestoreStatusType = "InProgress" // VolumeSnapshotRestoreStatusFailed for when restore failed VolumeSnapshotRestoreStatusFailed VolumeSnapshotRestoreStatusType = "Failed" )
type VolumeSnapshotSchedule ¶
type VolumeSnapshotSchedule struct { meta.TypeMeta `json:",inline"` meta.ObjectMeta `json:"metadata,omitempty"` Spec VolumeSnapshotScheduleSpec `json:"spec"` Status VolumeSnapshotScheduleStatus `json:"status"` }
VolumeSnapshotSchedule represents a scheduled volumesnapshot object
func (*VolumeSnapshotSchedule) DeepCopy ¶
func (in *VolumeSnapshotSchedule) DeepCopy() *VolumeSnapshotSchedule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotSchedule.
func (*VolumeSnapshotSchedule) DeepCopyInto ¶
func (in *VolumeSnapshotSchedule) DeepCopyInto(out *VolumeSnapshotSchedule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumeSnapshotSchedule) DeepCopyObject ¶
func (in *VolumeSnapshotSchedule) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeSnapshotScheduleList ¶
type VolumeSnapshotScheduleList struct { meta.TypeMeta `json:",inline"` meta.ListMeta `json:"metadata,omitempty"` Items []VolumeSnapshotSchedule `json:"items"` }
VolumeSnapshotScheduleList is a list of VolumeSnapshotSchedules
func (*VolumeSnapshotScheduleList) DeepCopy ¶
func (in *VolumeSnapshotScheduleList) DeepCopy() *VolumeSnapshotScheduleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotScheduleList.
func (*VolumeSnapshotScheduleList) DeepCopyInto ¶
func (in *VolumeSnapshotScheduleList) DeepCopyInto(out *VolumeSnapshotScheduleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VolumeSnapshotScheduleList) DeepCopyObject ¶
func (in *VolumeSnapshotScheduleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VolumeSnapshotScheduleSpec ¶
type VolumeSnapshotScheduleSpec struct { Template VolumeSnapshotTemplateSpec `json:"template"` SchedulePolicyName string `json:"schedulePolicyName"` Suspend *bool `json:"suspend"` ReclaimPolicy ReclaimPolicyType `json:"reclaimPolicy"` PreExecRule string `json:"preExecRule"` PostExecRule string `json:"postExecRule"` }
VolumeSnapshotScheduleSpec is the spec used to schedule volumesnapshots
func (*VolumeSnapshotScheduleSpec) DeepCopy ¶
func (in *VolumeSnapshotScheduleSpec) DeepCopy() *VolumeSnapshotScheduleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotScheduleSpec.
func (*VolumeSnapshotScheduleSpec) DeepCopyInto ¶
func (in *VolumeSnapshotScheduleSpec) DeepCopyInto(out *VolumeSnapshotScheduleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeSnapshotScheduleStatus ¶
type VolumeSnapshotScheduleStatus struct {
Items map[SchedulePolicyType][]*ScheduledVolumeSnapshotStatus `json:"items"`
}
VolumeSnapshotScheduleStatus is the status of a volumesnapshot schedule
func (*VolumeSnapshotScheduleStatus) DeepCopy ¶
func (in *VolumeSnapshotScheduleStatus) DeepCopy() *VolumeSnapshotScheduleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotScheduleStatus.
func (*VolumeSnapshotScheduleStatus) DeepCopyInto ¶
func (in *VolumeSnapshotScheduleStatus) DeepCopyInto(out *VolumeSnapshotScheduleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeSnapshotStatus ¶
type VolumeSnapshotStatus struct { VolumeSnapshotName string TaskID string ParentVolumeID string DataSource *crdv1.VolumeSnapshotDataSource Conditions []crdv1.VolumeSnapshotCondition }
VolumeSnapshotStatus captures the status of a volume snapshot operation
func (*VolumeSnapshotStatus) DeepCopy ¶
func (in *VolumeSnapshotStatus) DeepCopy() *VolumeSnapshotStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotStatus.
func (*VolumeSnapshotStatus) DeepCopyInto ¶
func (in *VolumeSnapshotStatus) DeepCopyInto(out *VolumeSnapshotStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeSnapshotTemplateSpec ¶
type VolumeSnapshotTemplateSpec struct {
Spec snapv1.VolumeSnapshotSpec `json:"spec"`
}
VolumeSnapshotTemplateSpec describes the data a VolumeSnapshot should have when created from a template
func (*VolumeSnapshotTemplateSpec) DeepCopy ¶
func (in *VolumeSnapshotTemplateSpec) DeepCopy() *VolumeSnapshotTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotTemplateSpec.
func (*VolumeSnapshotTemplateSpec) DeepCopyInto ¶
func (in *VolumeSnapshotTemplateSpec) DeepCopyInto(out *VolumeSnapshotTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WeeklyPolicy ¶
type WeeklyPolicy struct { // Day of the week when the policy should be triggered. Valid format are // specified in `Days` above Day string `json:"day"` // Time when the policy should be triggered. Expected format is // time.Kitchen eg 12:04PM or 12:04pm Time string `json:"time"` // Retain Number of objects to retain for weekly policy. Defaults to // @DefaultWeeklyPolicyRetain Retain Retain `json:"retain"` }
WeeklyPolicy contains the day and time in a week when an action should be executed
func (*WeeklyPolicy) DeepCopy ¶
func (in *WeeklyPolicy) DeepCopy() *WeeklyPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WeeklyPolicy.
func (*WeeklyPolicy) DeepCopyInto ¶
func (in *WeeklyPolicy) DeepCopyInto(out *WeeklyPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WeeklyPolicy) GetHourMinute ¶
func (w *WeeklyPolicy) GetHourMinute() (int, int, error)
GetHourMinute parses and return the hour and minute specified in the policy
func (*WeeklyPolicy) Validate ¶
func (w *WeeklyPolicy) Validate() error
Validate validates a WeeklyPolicy
Source Files ¶
- applicationbackup.go
- applicationbackupschedule.go
- applicationclone.go
- applicationrestore.go
- backuplocation.go
- clusterdomainsstatus.go
- clusterdomainupdate.go
- clusterpair.go
- doc.go
- groupvolumesnapshot.go
- migration.go
- migrationschedule.go
- register.go
- rule.go
- schedulepolicy.go
- snapshotrestore.go
- volumesnapshotschedule.go
- zz_generated.deepcopy.go