v1

package
v0.0.0-...-540bb61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=backup.arangodb.com

Index

Constants

View Source
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"
	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"
	ArangoBackupStateUnavailable   state.State = "Unavailable"
)
View Source
const (
	ArangoBackupVersion = "v1"
)
View Source
const (
	FinalizerArangoBackup = backup.ArangoBackupCRDName + "/cleanup"
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme

	SchemeGroupVersion = schema.GroupVersion{Group: backup.ArangoBackupGroupName, Version: ArangoBackupVersion}
)
View Source
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) 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             uint64          `json:"sizeInBytes,omitempty"`
	NumberOfDBServers       uint            `json:"numberOfDBServers,omitempty"`
	Uploaded                *bool           `json:"uploaded,omitempty"`
	Downloaded              *bool           `json:"downloaded,omitempty"`
	Imported                *bool           `json:"imported,omitempty"`
	CreationTimestamp       meta.Time       `json:"createdAt"`
	Keys                    shared.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

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 (*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

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
	Schedule string `json:"schedule"`
	// AllowConcurrent if false, ArangoBackup will not be created when previous Backups are not finished. Defaults to true
	AllowConcurrent *bool `json:"allowConcurrent,omitempty"`
	// DeploymentSelector specifies which deployments should get a backup
	DeploymentSelector *meta.LabelSelector `json:"selector,omitempty"`
	// ArangoBackupTemplate specifies additional options for newly created ArangoBackup
	BackupTemplate ArangoBackupTemplate `json:"template"`
}

func (*ArangoBackupPolicySpec) DeepCopy

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 meta.Time `json:"scheduled,omitempty"`
	Message   string    `json:"message,omitempty"`
}

func (*ArangoBackupPolicyStatus) DeepCopy

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    string `json:"jobID"`
	Progress string `json:"progress"`
}

func (*ArangoBackupProgress) DeepCopy

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

type ArangoBackupSpec

type ArangoBackupSpec struct {
	// Deployment
	Deployment ArangoBackupSpecDeployment `json:"deployment,omitempty"`

	Options *ArangoBackupSpecOptions `json:"options,omitempty"`

	// Download
	Download *ArangoBackupSpecDownload `json:"download,omitempty"`

	// Upload
	Upload *ArangoBackupSpecOperation `json:"upload,omitempty"`

	PolicyName *string `json:"policyName,omitempty"`

	Backoff *ArangoBackupSpecBackOff `json:"backoff,omitempty"`
}

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
	MinDelay *int `json:"min_delay,omitempty"`
	// MaxDelay defines maximum delay in seconds. Default to 600
	MaxDelay *int `json:"max_delay,omitempty"`
	// Iterations defines number of iterations before reaching MaxDelay. Default to 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"`
}

func (*ArangoBackupSpecBackOff) Backoff

func (a *ArangoBackupSpecBackOff) Backoff(iteration int) time.Duration

func (*ArangoBackupSpecBackOff) DeepCopy

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) 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 string `json:"name,omitempty"`
}

func (*ArangoBackupSpecDeployment) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupSpecDeployment.

func (*ArangoBackupSpecDeployment) DeepCopyInto

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 string `json:"id"`
}

func (*ArangoBackupSpecDownload) DeepCopy

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         string `json:"repositoryURL"`
	CredentialsSecretName string `json:"credentialsSecretName,omitempty"`
}

func (*ArangoBackupSpecOperation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupSpecOperation.

func (*ArangoBackupSpecOperation) DeepCopyInto

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           *float32 `json:"timeout,omitempty"`
	AllowInconsistent *bool    `json:"allowInconsistent,omitempty"`
}

func (*ArangoBackupSpecOptions) DeepCopy

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
	State state.State `json:"state"`

	Time meta.Time `json:"time"`

	// Message for the state this object is in.
	Message string `json:"message,omitempty"`

	// Progress for the operation
	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

type ArangoBackupStatus

type ArangoBackupStatus struct {
	ArangoBackupState `json:",inline"`
	Backup            *ArangoBackupDetails       `json:"backup,omitempty"`
	Available         bool                       `json:"available"`
	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 (*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 (*ArangoBackupStatusBackOff) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArangoBackupStatusBackOff.

func (*ArangoBackupStatusBackOff) DeepCopyInto

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"`
}

func (*ArangoBackupTemplate) DeepCopy

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL