v1alpha1

package
v0.4.20 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: Apache-2.0 Imports: 5 Imported by: 6

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

func NewETCDBackupCRD

func NewETCDBackupCRD() *v1.CustomResourceDefinition

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 tenant clusters have to be backupped
	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 {
	// 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"`
	// Timestamp when the first attempt was made
	StartedTimestamp metav1.Time `json:"startedTimestamp,omitempty"`
	// 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"`
	// Timestamp when the first attempt was made
	StartedTimestamp metav1.Time `json:"startedTimestamp,omitempty"`
	// Timestamp when the last (final) attempt was made (when the Phase became either 'Completed' or 'Failed'
	FinishedTimestamp metav1.Time `json:"finishedTimestamp,omitempty"`
	// Latest backup error message
	LatestError string `json:"latestError,omitempty"`
	// Time took by the backup creation process
	CreationTime int64 `json:"creationTime,omitempty"`
	// Time took by the backup encryption process
	EncryptionTime int64 `json:"encryptionTime,omitempty"`
	// Time took by the backup upload process
	UploadTime int64 `json:"uploadTime,omitempty"`
	// 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 tenant cluster or 'Control Plane'
	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