Documentation
¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=backup.arangodb.com
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type ArangoBackup
- func (in *ArangoBackup) DeepCopy() *ArangoBackup
- func (in *ArangoBackup) DeepCopyInto(out *ArangoBackup)
- func (in *ArangoBackup) DeepCopyObject() runtime.Object
- func (a *ArangoBackup) GetStatus() ArangoBackupStatus
- func (a *ArangoBackup) SetStatus(status ArangoBackupStatus)
- func (a *ArangoBackup) Validate() error
- type ArangoBackupDetails
- type ArangoBackupList
- type ArangoBackupPolicy
- func (in *ArangoBackupPolicy) DeepCopy() *ArangoBackupPolicy
- func (in *ArangoBackupPolicy) DeepCopyInto(out *ArangoBackupPolicy)
- func (in *ArangoBackupPolicy) DeepCopyObject() runtime.Object
- func (a *ArangoBackupPolicy) NewBackup(d *api.ArangoDeployment) *ArangoBackup
- func (a *ArangoBackupPolicy) Validate() error
- type ArangoBackupPolicyList
- type ArangoBackupPolicySpec
- type ArangoBackupPolicyStatus
- type ArangoBackupProgress
- type ArangoBackupSpec
- type ArangoBackupSpecBackOff
- func (a *ArangoBackupSpecBackOff) Backoff(iteration int) time.Duration
- func (in *ArangoBackupSpecBackOff) DeepCopy() *ArangoBackupSpecBackOff
- func (in *ArangoBackupSpecBackOff) DeepCopyInto(out *ArangoBackupSpecBackOff)
- func (a *ArangoBackupSpecBackOff) Enabled() bool
- func (a *ArangoBackupSpecBackOff) GetIterations() int
- func (a *ArangoBackupSpecBackOff) GetMaxDelay() int
- func (a *ArangoBackupSpecBackOff) GetMinDelay() int
- type ArangoBackupSpecDeployment
- type ArangoBackupSpecDownload
- type ArangoBackupSpecOperation
- type ArangoBackupSpecOptions
- type ArangoBackupState
- type ArangoBackupStatus
- type ArangoBackupStatusBackOff
- func (a *ArangoBackupStatusBackOff) Backoff(spec *ArangoBackupSpecBackOff) *ArangoBackupStatusBackOff
- func (in *ArangoBackupStatusBackOff) DeepCopy() *ArangoBackupStatusBackOff
- func (in *ArangoBackupStatusBackOff) DeepCopyInto(out *ArangoBackupStatusBackOff)
- func (a *ArangoBackupStatusBackOff) GetIterations() int
- func (a *ArangoBackupStatusBackOff) GetNext() meta.Time
- func (a *ArangoBackupStatusBackOff) ShouldBackoff(spec *ArangoBackupSpecBackOff) bool
- type ArangoBackupTemplate
Constants ¶
const ( ArangoBackupStateNone state.State = "" ArangoBackupStatePending state.State = "Pending" ArangoBackupStateScheduled state.State = "Scheduled" ArangoBackupStateDownload state.State = "Download" ArangoBackupStateDownloadError state.State = "DownloadError" ArangoBackupStateDownloading state.State = "Downloading" ArangoBackupStateCreate state.State = "Create" ArangoBackupStateCreating state.State = "Creating" ArangoBackupStateCreateError state.State = "CreateError" ArangoBackupStateUpload state.State = "Upload" ArangoBackupStateUploading state.State = "Uploading" ArangoBackupStateUploadError state.State = "UploadError" ArangoBackupStateReady state.State = "Ready" ArangoBackupStateDeleted state.State = "Deleted" ArangoBackupStateFailed state.State = "Failed" )
const (
ArangoBackupVersion = string(utilConstants.VersionV1)
)
const (
FinalizerArangoBackup = backup.ArangoBackupCRDName + "/cleanup"
)
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme SchemeGroupVersion = schema.GroupVersion{Group: backup.ArangoBackupGroupName, Version: ArangoBackupVersion} )
var ArangoBackupStateMap = state.Map{ ArangoBackupStateNone: {ArangoBackupStatePending, ArangoBackupStateFailed}, ArangoBackupStatePending: {ArangoBackupStateScheduled, ArangoBackupStateFailed}, ArangoBackupStateScheduled: {ArangoBackupStateDownload, ArangoBackupStateCreate, ArangoBackupStateFailed}, ArangoBackupStateDownload: {ArangoBackupStateDownloading, ArangoBackupStateFailed, ArangoBackupStateDownloadError}, ArangoBackupStateDownloading: {ArangoBackupStateReady, ArangoBackupStateFailed, ArangoBackupStateDownloadError}, ArangoBackupStateDownloadError: {ArangoBackupStatePending, ArangoBackupStateFailed}, ArangoBackupStateCreate: {ArangoBackupStateReady, ArangoBackupStateFailed, ArangoBackupStateCreateError, ArangoBackupStateCreating}, ArangoBackupStateCreating: {ArangoBackupStateReady, ArangoBackupStateFailed, ArangoBackupStateCreateError}, ArangoBackupStateCreateError: {ArangoBackupStateFailed, ArangoBackupStateCreate}, ArangoBackupStateUpload: {ArangoBackupStateUploading, ArangoBackupStateFailed, ArangoBackupStateDeleted, ArangoBackupStateUploadError}, ArangoBackupStateUploading: {ArangoBackupStateReady, ArangoBackupStateFailed, ArangoBackupStateUploadError}, ArangoBackupStateUploadError: {ArangoBackupStateFailed, ArangoBackupStateReady}, ArangoBackupStateReady: {ArangoBackupStateDeleted, ArangoBackupStateFailed, ArangoBackupStateUpload, ArangoBackupStateUnavailable}, ArangoBackupStateDeleted: {ArangoBackupStateFailed, ArangoBackupStateReady}, ArangoBackupStateFailed: {ArangoBackupStatePending}, ArangoBackupStateUnavailable: {ArangoBackupStateReady, ArangoBackupStateDeleted, ArangoBackupStateFailed}, }
var ( FinalizersArangoBackup = []string{ FinalizerArangoBackup, } )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource gets an ArangoCluster GroupResource for a specified resource
Types ¶
type ArangoBackup ¶
type ArangoBackup struct {
meta.TypeMeta `json:",inline"`
meta.ObjectMeta `json:"metadata,omitempty"`
Spec ArangoBackupSpec `json:"spec"`
Status ArangoBackupStatus `json:"status"`
}
ArangoBackup contains definition and status of the ArangoDB Backup.
func (*ArangoBackup) DeepCopy ¶
func (in *ArangoBackup) DeepCopy() *ArangoBackup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackup.
func (*ArangoBackup) DeepCopyInto ¶
func (in *ArangoBackup) DeepCopyInto(out *ArangoBackup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArangoBackup) DeepCopyObject ¶
func (in *ArangoBackup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ArangoBackup) GetStatus ¶
func (a *ArangoBackup) GetStatus() ArangoBackupStatus
func (*ArangoBackup) SetStatus ¶
func (a *ArangoBackup) SetStatus(status ArangoBackupStatus)
func (*ArangoBackup) Validate ¶
func (a *ArangoBackup) Validate() error
type ArangoBackupDetails ¶
type ArangoBackupDetails struct {
ID string `json:"id"`
Version string `json:"version"`
PotentiallyInconsistent *bool `json:"potentiallyInconsistent,omitempty"`
// SizeInBytes Size of the Backup in ArangoDB.
SizeInBytes uint64 `json:"sizeInBytes,omitempty"`
// NumberOfDBServers Cluster size of the Backup in ArangoDB
NumberOfDBServers uint `json:"numberOfDBServers,omitempty"`
// Uploaded Determines if ArangoBackup has been uploaded
Uploaded *bool `json:"uploaded,omitempty"`
// Downloaded Determines if ArangoBackup has been downloaded.
Downloaded *bool `json:"downloaded,omitempty"`
Imported *bool `json:"imported,omitempty"`
// CreationTimestamp ArangoBackup Custom Resource creation time in UTC
CreationTimestamp meta.Time `json:"createdAt"`
Keys sharedApi.HashList `json:"keys,omitempty"`
}
func (*ArangoBackupDetails) DeepCopy ¶
func (in *ArangoBackupDetails) DeepCopy() *ArangoBackupDetails
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupDetails.
func (*ArangoBackupDetails) DeepCopyInto ¶
func (in *ArangoBackupDetails) DeepCopyInto(out *ArangoBackupDetails)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArangoBackupDetails) Equal ¶
func (a *ArangoBackupDetails) Equal(b *ArangoBackupDetails) bool
type ArangoBackupList ¶
type ArangoBackupList struct {
meta.TypeMeta `json:",inline"`
meta.ListMeta `json:"metadata,omitempty"`
Items []ArangoBackup `json:"items"`
}
ArangoBackupList is a list of ArangoDB backups.
func (*ArangoBackupList) DeepCopy ¶
func (in *ArangoBackupList) DeepCopy() *ArangoBackupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupList.
func (*ArangoBackupList) DeepCopyInto ¶
func (in *ArangoBackupList) DeepCopyInto(out *ArangoBackupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArangoBackupList) DeepCopyObject ¶
func (in *ArangoBackupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ArangoBackupList) GetItems ¶
func (a ArangoBackupList) GetItems() []ArangoBackup
type ArangoBackupPolicy ¶
type ArangoBackupPolicy struct {
meta.TypeMeta `json:",inline"`
meta.ObjectMeta `json:"metadata,omitempty"`
Spec ArangoBackupPolicySpec `json:"spec"`
Status ArangoBackupPolicyStatus `json:"status"`
}
ArangoBackupPolicy contains definition and status of the ArangoDB Backup Policy.
func (*ArangoBackupPolicy) DeepCopy ¶
func (in *ArangoBackupPolicy) DeepCopy() *ArangoBackupPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupPolicy.
func (*ArangoBackupPolicy) DeepCopyInto ¶
func (in *ArangoBackupPolicy) DeepCopyInto(out *ArangoBackupPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArangoBackupPolicy) DeepCopyObject ¶
func (in *ArangoBackupPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ArangoBackupPolicy) NewBackup ¶
func (a *ArangoBackupPolicy) NewBackup(d *api.ArangoDeployment) *ArangoBackup
func (*ArangoBackupPolicy) Validate ¶
func (a *ArangoBackupPolicy) Validate() error
type ArangoBackupPolicyList ¶
type ArangoBackupPolicyList struct {
meta.TypeMeta `json:",inline"`
meta.ListMeta `json:"metadata,omitempty"`
Items []ArangoBackupPolicy `json:"items"`
}
ArangoBackupPolicyList is a list of ArangoDB backup policy.
func (*ArangoBackupPolicyList) DeepCopy ¶
func (in *ArangoBackupPolicyList) DeepCopy() *ArangoBackupPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupPolicyList.
func (*ArangoBackupPolicyList) DeepCopyInto ¶
func (in *ArangoBackupPolicyList) DeepCopyInto(out *ArangoBackupPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArangoBackupPolicyList) DeepCopyObject ¶
func (in *ArangoBackupPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ArangoBackupPolicySpec ¶
type ArangoBackupPolicySpec struct {
// Schedule is cron-compatible specification of backup schedule
// Parsed by https://godoc.org/github.com/robfig/cron
Schedule string `json:"schedule"`
// AllowConcurrent if false, ArangoBackup will not be created when previous Backups are not finished
// +doc/default: true
AllowConcurrent *bool `json:"allowConcurrent,omitempty"`
// DeploymentSelector Selector definition for selecting matching ArangoDeployment Custom Resources.
// +doc/type: meta.LabelSelector
// +doc/link: Kubernetes Documentation|https://godoc.org/k8s.io/apimachinery/pkg/apis/meta/v1#LabelSelector
DeploymentSelector *meta.LabelSelector `json:"selector,omitempty"`
// MaxBackups defines how many backups should be kept in history (per deployment). Oldest healthy Backups will be deleted.
// If not specified or 0 then no limit is applied
// +doc/default: 0
MaxBackups int `json:"maxBackups,omitempty"`
// ArangoBackupTemplate specifies additional options for newly created ArangoBackup
BackupTemplate ArangoBackupTemplate `json:"template"`
}
func (*ArangoBackupPolicySpec) DeepCopy ¶
func (in *ArangoBackupPolicySpec) DeepCopy() *ArangoBackupPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupPolicySpec.
func (*ArangoBackupPolicySpec) DeepCopyInto ¶
func (in *ArangoBackupPolicySpec) DeepCopyInto(out *ArangoBackupPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ArangoBackupPolicySpec) GetAllowConcurrent ¶
func (a ArangoBackupPolicySpec) GetAllowConcurrent() bool
GetAllowConcurrent returns AllowConcurrent values. If AllowConcurrent is nil returns true
func (*ArangoBackupPolicySpec) Validate ¶
func (a *ArangoBackupPolicySpec) Validate() error
type ArangoBackupPolicyStatus ¶
type ArangoBackupPolicyStatus struct {
// Scheduled Next scheduled time in UTC
// +doc/type: meta.Time
Scheduled meta.Time `json:"scheduled,omitempty"`
// Message from the operator in case of failures - schedule not valid, ArangoBackupPolicy not valid
Message string `json:"message,omitempty"`
}
ArangoBackupPolicyStatus Status of the ArangoBackupPolicy Custom Resource managed by operator
func (*ArangoBackupPolicyStatus) DeepCopy ¶
func (in *ArangoBackupPolicyStatus) DeepCopy() *ArangoBackupPolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupPolicyStatus.
func (*ArangoBackupPolicyStatus) DeepCopyInto ¶
func (in *ArangoBackupPolicyStatus) DeepCopyInto(out *ArangoBackupPolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArangoBackupProgress ¶
type ArangoBackupProgress struct {
// JobID ArangoDB job ID for uploading or downloading
JobID string `json:"jobID"`
// Progress ArangoDB job progress in percents
// +doc/example: 90%
Progress string `json:"progress"`
}
func (*ArangoBackupProgress) DeepCopy ¶
func (in *ArangoBackupProgress) DeepCopy() *ArangoBackupProgress
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupProgress.
func (*ArangoBackupProgress) DeepCopyInto ¶
func (in *ArangoBackupProgress) DeepCopyInto(out *ArangoBackupProgress)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArangoBackupProgress) Equal ¶
func (a *ArangoBackupProgress) Equal(b *ArangoBackupProgress) bool
type ArangoBackupSpec ¶
type ArangoBackupSpec struct {
// Deployment describes the deployment which should have a backup
Deployment ArangoBackupSpecDeployment `json:"deployment,omitempty"`
// Options specifies backup options
Options *ArangoBackupSpecOptions `json:"options,omitempty"`
// Download Backup download settings
Download *ArangoBackupSpecDownload `json:"download,omitempty"`
// Upload Backup upload settings.
// This field can be removed and created again with different values. This operation will trigger upload again.
Upload *ArangoBackupSpecOperation `json:"upload,omitempty"`
// PolicyName name of the ArangoBackupPolicy which created this Custom Resource
// +doc/immutable: can't be changed after backup creation
PolicyName *string `json:"policyName,omitempty"`
// Backoff define the operation backoff policy
Backoff *ArangoBackupSpecBackOff `json:"backoff,omitempty"`
// Lifetime is the time after which the backup will be deleted. Format: "1.5h" or "2h45m".
Lifetime *meta.Duration `json:"lifetime,omitempty"`
}
ArangoBackupSpec Spec of the ArangoBackup Custom Resource
func (*ArangoBackupSpec) DeepCopy ¶
func (in *ArangoBackupSpec) DeepCopy() *ArangoBackupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupSpec.
func (*ArangoBackupSpec) DeepCopyInto ¶
func (in *ArangoBackupSpec) DeepCopyInto(out *ArangoBackupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArangoBackupSpec) Validate ¶
func (a *ArangoBackupSpec) Validate() error
type ArangoBackupSpecBackOff ¶
type ArangoBackupSpecBackOff struct {
// MinDelay defines minimum delay in seconds. Default to 30
// +doc/default: 30
MinDelay *int `json:"min_delay,omitempty"`
// MaxDelay defines maximum delay in seconds. Default to 600
// +doc/default: 600
MaxDelay *int `json:"max_delay,omitempty"`
// Iterations defines number of iterations before reaching MaxDelay. Default to 5
// +doc/default: 5
Iterations *int `json:"iterations,omitempty"`
// MaxIterations defines maximum number of iterations after backoff will be disabled. Default to nil (no limit)
MaxIterations *int `json:"max_iterations,omitempty"`
// Until defines the deadline of the retry mechanism in UTC
Until *meta.Time `json:"until,omitempty"`
}
func (*ArangoBackupSpecBackOff) Backoff ¶
func (a *ArangoBackupSpecBackOff) Backoff(iteration int) time.Duration
func (*ArangoBackupSpecBackOff) DeepCopy ¶
func (in *ArangoBackupSpecBackOff) DeepCopy() *ArangoBackupSpecBackOff
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupSpecBackOff.
func (*ArangoBackupSpecBackOff) DeepCopyInto ¶
func (in *ArangoBackupSpecBackOff) DeepCopyInto(out *ArangoBackupSpecBackOff)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArangoBackupSpecBackOff) Enabled ¶
func (a *ArangoBackupSpecBackOff) Enabled() bool
func (*ArangoBackupSpecBackOff) GetIterations ¶
func (a *ArangoBackupSpecBackOff) GetIterations() int
func (*ArangoBackupSpecBackOff) GetMaxDelay ¶
func (a *ArangoBackupSpecBackOff) GetMaxDelay() int
func (*ArangoBackupSpecBackOff) GetMinDelay ¶
func (a *ArangoBackupSpecBackOff) GetMinDelay() int
type ArangoBackupSpecDeployment ¶
type ArangoBackupSpecDeployment struct {
// Name of the ArangoDeployment Custom Resource within same namespace as ArangoBackup Custom Resource.
// +doc/immutable: can't be changed after backup creation
Name string `json:"name,omitempty"`
}
ArangoBackupSpecDeployment describes the deployment which should have a backup
func (*ArangoBackupSpecDeployment) DeepCopy ¶
func (in *ArangoBackupSpecDeployment) DeepCopy() *ArangoBackupSpecDeployment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupSpecDeployment.
func (*ArangoBackupSpecDeployment) DeepCopyInto ¶
func (in *ArangoBackupSpecDeployment) DeepCopyInto(out *ArangoBackupSpecDeployment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArangoBackupSpecDownload ¶
type ArangoBackupSpecDownload struct {
ArangoBackupSpecOperation `json:",inline"`
// ID of the ArangoBackup to be downloaded
// +doc/immutable: can't be changed after backup creation
ID string `json:"id"`
}
func (*ArangoBackupSpecDownload) DeepCopy ¶
func (in *ArangoBackupSpecDownload) DeepCopy() *ArangoBackupSpecDownload
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupSpecDownload.
func (*ArangoBackupSpecDownload) DeepCopyInto ¶
func (in *ArangoBackupSpecDownload) DeepCopyInto(out *ArangoBackupSpecDownload)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArangoBackupSpecDownload) Validate ¶
func (a *ArangoBackupSpecDownload) Validate() error
type ArangoBackupSpecOperation ¶
type ArangoBackupSpecOperation struct {
// RepositoryURL is the URL path for file storage
// Same repositoryURL needs to be defined in `credentialsSecretName` if protocol is other than local.
// Format: `<protocol>:/<path>`
// +doc/example: s3://my-bucket/test
// +doc/example: azure://test
// +doc/immutable: can't be changed after backup creation
// +doc/link: rclone.org|https://rclone.org/docs/#syntax-of-remote-paths
RepositoryURL string `json:"repositoryURL"`
// CredentialsSecretName is the name of the secret used while accessing repository
// +doc/immutable: can't be changed after backup creation
// +doc/link: Defining a secret for backup upload or download|../backup-resource.md#defining-a-secret-for-backup-upload-or-download
CredentialsSecretName string `json:"credentialsSecretName,omitempty"`
// AutoDelete removes the ArangoBackup resource (which removes the backup from the cluster) after successful upload
// +doc/default: false
AutoDelete *bool `json:"autoDelete,omitempty"`
}
func (*ArangoBackupSpecOperation) DeepCopy ¶
func (in *ArangoBackupSpecOperation) DeepCopy() *ArangoBackupSpecOperation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupSpecOperation.
func (*ArangoBackupSpecOperation) DeepCopyInto ¶
func (in *ArangoBackupSpecOperation) DeepCopyInto(out *ArangoBackupSpecOperation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArangoBackupSpecOperation) Validate ¶
func (a *ArangoBackupSpecOperation) Validate() error
type ArangoBackupSpecOptions ¶
type ArangoBackupSpecOptions struct {
// Timeout for Backup creation request in seconds. Works only when AsyncBackupCreation feature is set to false.
// +doc/immutable: can't be changed after backup creation
// +doc/default: 30
Timeout *float32 `json:"timeout,omitempty"`
// AllowInconsistent flag for Backup creation request.
// If this value is set to true, backup is taken even if we are not able to acquire lock.
// +doc/immutable: can't be changed after backup creation
// +doc/default: false
AllowInconsistent *bool `json:"allowInconsistent,omitempty"`
}
func (*ArangoBackupSpecOptions) DeepCopy ¶
func (in *ArangoBackupSpecOptions) DeepCopy() *ArangoBackupSpecOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupSpecOptions.
func (*ArangoBackupSpecOptions) DeepCopyInto ¶
func (in *ArangoBackupSpecOptions) DeepCopyInto(out *ArangoBackupSpecOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArangoBackupState ¶
type ArangoBackupState struct {
// State holds the current high level state of the backup
// +doc/enum: |state for un-initialized Custom Resource
// +doc/enum: Pending|state in which Custom Resource is queued. If Backup is possible changed to "Scheduled"
// +doc/enum: Scheduled|state which will start create/download process
// +doc/enum: Download|state in which download request will be created on ArangoDB
// +doc/enum: DownloadError|state when download failed
// +doc/enum: Downloading|state for downloading progress
// +doc/enum: Create|state for backup when it is scheduled for creation, field available set to true
// +doc/enum: Creating|state for backup when it is creating
// +doc/enum: CreateError|state for backup when it is creation failed
// +doc/enum: Upload|state in which upload request will be created on ArangoDB
// +doc/enum: Uploading|state for uploading progress
// +doc/enum: UploadError|state when uploading failed
// +doc/enum: Ready|state when Backup is finished
// +doc/enum: Deleted|state when Backup was once in ready, but has been deleted
// +doc/enum: Failed|state for failure
// +doc/enum: Unavailable|state when Backup is not available on the ArangoDB. It can happen in case of upgrades, node restarts etc.
State state.State `json:"state"`
// Time is the time in UTC when state of the ArangoBackup Custom Resource changed.
Time meta.Time `json:"time"`
// Message for the state this object is in.
Message string `json:"message,omitempty"`
// Progress info of the uploading and downloading process
Progress *ArangoBackupProgress `json:"progress,omitempty"`
}
func (*ArangoBackupState) DeepCopy ¶
func (in *ArangoBackupState) DeepCopy() *ArangoBackupState
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupState.
func (*ArangoBackupState) DeepCopyInto ¶
func (in *ArangoBackupState) DeepCopyInto(out *ArangoBackupState)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArangoBackupState) Equal ¶
func (a *ArangoBackupState) Equal(b *ArangoBackupState) bool
type ArangoBackupStatus ¶
type ArangoBackupStatus struct {
ArangoBackupState `json:",inline"`
// Backup ArangoBackup details
Backup *ArangoBackupDetails `json:"backup,omitempty"`
// Available Determines if we can restore from ArangoBackup
Available bool `json:"available"`
// Backoff shows current backoff status
Backoff *ArangoBackupStatusBackOff `json:"backoff,omitempty"`
}
ArangoBackupStatus contains the status part of an ArangoBackup.
func (*ArangoBackupStatus) DeepCopy ¶
func (in *ArangoBackupStatus) DeepCopy() *ArangoBackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupStatus.
func (*ArangoBackupStatus) DeepCopyInto ¶
func (in *ArangoBackupStatus) DeepCopyInto(out *ArangoBackupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArangoBackupStatus) Equal ¶
func (a *ArangoBackupStatus) Equal(b *ArangoBackupStatus) bool
func (*ArangoBackupStatus) Validate ¶
func (a *ArangoBackupStatus) Validate() error
type ArangoBackupStatusBackOff ¶
type ArangoBackupStatusBackOff struct {
Iterations int `json:"iterations,omitempty"`
Next meta.Time `json:"next,omitempty"`
}
func (*ArangoBackupStatusBackOff) Backoff ¶
func (a *ArangoBackupStatusBackOff) Backoff(spec *ArangoBackupSpecBackOff) *ArangoBackupStatusBackOff
func (*ArangoBackupStatusBackOff) DeepCopy ¶
func (in *ArangoBackupStatusBackOff) DeepCopy() *ArangoBackupStatusBackOff
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupStatusBackOff.
func (*ArangoBackupStatusBackOff) DeepCopyInto ¶
func (in *ArangoBackupStatusBackOff) DeepCopyInto(out *ArangoBackupStatusBackOff)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArangoBackupStatusBackOff) GetIterations ¶
func (a *ArangoBackupStatusBackOff) GetIterations() int
func (*ArangoBackupStatusBackOff) GetNext ¶
func (a *ArangoBackupStatusBackOff) GetNext() meta.Time
func (*ArangoBackupStatusBackOff) ShouldBackoff ¶
func (a *ArangoBackupStatusBackOff) ShouldBackoff(spec *ArangoBackupSpecBackOff) bool
type ArangoBackupTemplate ¶
type ArangoBackupTemplate struct {
Options *ArangoBackupSpecOptions `json:"options,omitempty"`
Upload *ArangoBackupSpecOperation `json:"upload,omitempty"`
Backoff *ArangoBackupSpecBackOff `json:"backoff,omitempty"`
// Lifetime is the time after which the backup will be deleted. Format: "1.5h" or "2h45m".
Lifetime *meta.Duration `json:"lifetime,omitempty"`
}
func (*ArangoBackupTemplate) DeepCopy ¶
func (in *ArangoBackupTemplate) DeepCopy() *ArangoBackupTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupTemplate.
func (*ArangoBackupTemplate) DeepCopyInto ¶
func (in *ArangoBackupTemplate) DeepCopyInto(out *ArangoBackupTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.