v1alpha1

package
v3.33.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

+groupName=backup.giantswarm.io

Index

Constants

This section is empty.

Variables

View Source
var (

	// AddToScheme is used by the generated client.
	AddToScheme = schemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   group,
	Version: version,
}

SchemeGroupVersion is group version used to register these objects

Functions

This section is empty.

Types

type ETCDBackup

type ETCDBackup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              ETCDBackupSpec `json:"spec"`
	// +kubebuilder:validation:Optional
	Status ETCDBackupStatus `json:"status,omitempty"`
}

func (*ETCDBackup) DeepCopy

func (in *ETCDBackup) DeepCopy() *ETCDBackup

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

func (*ETCDBackup) DeepCopyInto

func (in *ETCDBackup) DeepCopyInto(out *ETCDBackup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ETCDBackup) DeepCopyObject

func (in *ETCDBackup) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ETCDBackupList

type ETCDBackupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []ETCDBackup `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ETCDBackupList) DeepCopy

func (in *ETCDBackupList) DeepCopy() *ETCDBackupList

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

func (*ETCDBackupList) DeepCopyInto

func (in *ETCDBackupList) DeepCopyInto(out *ETCDBackupList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ETCDBackupList) DeepCopyObject

func (in *ETCDBackupList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ETCDBackupSpec

type ETCDBackupSpec struct {
	// GuestBackup is a boolean indicating if the workload clusters have to be backed up
	GuestBackup bool `json:"guestBackup"`
}

+k8s:openapi-gen=true

func (*ETCDBackupSpec) DeepCopy

func (in *ETCDBackupSpec) DeepCopy() *ETCDBackupSpec

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

func (*ETCDBackupSpec) DeepCopyInto

func (in *ETCDBackupSpec) DeepCopyInto(out *ETCDBackupSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ETCDBackupStatus

type ETCDBackupStatus struct {
	// +kubebuilder:validation:Optional
	// +nullable
	// map containing the state of the backup for all instances
	Instances map[string]ETCDInstanceBackupStatusIndex `json:"instances,omitempty"`
	// Status of the whole backup job (can be 'Pending', 'Running'. 'Completed', 'Failed')
	Status string `json:"status"`
	// +kubebuilder:validation:Optional
	// +nullable
	// Timestamp when the first attempt was made
	StartedTimestamp metav1.Time `json:"startedTimestamp,omitempty"`
	// +kubebuilder:validation:Optional
	// +nullable
	// Timestamp when the last (final) attempt was made (when the Phase became either 'Completed' or 'Failed'
	FinishedTimestamp metav1.Time `json:"finishedTimestamp,omitempty"`
}

+k8s:openapi-gen=true

func (*ETCDBackupStatus) DeepCopy

func (in *ETCDBackupStatus) DeepCopy() *ETCDBackupStatus

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

func (*ETCDBackupStatus) DeepCopyInto

func (in *ETCDBackupStatus) DeepCopyInto(out *ETCDBackupStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ETCDInstanceBackupStatus

type ETCDInstanceBackupStatus struct {
	// Status of this isntance's backup job (can be 'Pending', 'Running'. 'Completed', 'Failed')
	Status string `json:"status"`
	// +kubebuilder:validation:Optional
	// +nullable
	// Timestamp when the first attempt was made
	StartedTimestamp metav1.Time `json:"startedTimestamp,omitempty"`
	// +kubebuilder:validation:Optional
	// +nullable
	// Timestamp when the last (final) attempt was made (when the Phase became either 'Completed' or 'Failed'
	FinishedTimestamp metav1.Time `json:"finishedTimestamp,omitempty"`
	// +kubebuilder:validation:Optional
	// Latest backup error message
	LatestError string `json:"latestError,omitempty"`
	// +kubebuilder:validation:Optional
	// Time took by the backup creation process
	CreationTime int64 `json:"creationTime,omitempty"`
	// +kubebuilder:validation:Optional
	// Time took by the backup encryption process
	EncryptionTime int64 `json:"encryptionTime,omitempty"`
	// +kubebuilder:validation:Optional
	// Time took by the backup upload process
	UploadTime int64 `json:"uploadTime,omitempty"`
	// +kubebuilder:validation:Optional
	// Size of the backup file
	BackupFileSize int64 `json:"backupFileSize,omitempty"`
}

+k8s:openapi-gen=true

func (*ETCDInstanceBackupStatus) DeepCopy

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

func (*ETCDInstanceBackupStatus) DeepCopyInto

func (in *ETCDInstanceBackupStatus) DeepCopyInto(out *ETCDInstanceBackupStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ETCDInstanceBackupStatusIndex

type ETCDInstanceBackupStatusIndex struct {
	// Name of the workload cluster or management cluster
	Name string `json:"name"`
	// Status of the V2 backup for this instance
	V2 ETCDInstanceBackupStatus `json:"v2"`
	// Status of the V3 backup for this instance
	V3 ETCDInstanceBackupStatus `json:"v3"`
}

+k8s:openapi-gen=true

func (*ETCDInstanceBackupStatusIndex) DeepCopy

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

func (*ETCDInstanceBackupStatusIndex) DeepCopyInto

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