v1alpha1

package
v0.15.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=etcd.f110.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemaBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemaBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "etcd.f110.dev", Version: "v1alpha1"}

Functions

func Kind

func Kind(kind string) schema.GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Types

type AWSCredentialSelector

type AWSCredentialSelector struct {
	Name               string `json:"name,omitempty"`
	Namespace          string `json:"namespace,omitempty"`
	AccessKeyIDKey     string `json:"accessKeyIDKey,omitempty"`
	SecretAccessKeyKey string `json:"secretAccessKeyKey,omitempty"`
}

func (*AWSCredentialSelector) DeepCopy

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

func (*AWSCredentialSelector) DeepCopyInto

func (in *AWSCredentialSelector) DeepCopyInto(out *AWSCredentialSelector)

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

type BackupSpec

type BackupSpec struct {
	IntervalInSecond int               `json:"intervalInSeconds,omitempty"`
	MaxBackups       int               `json:"maxBackups,omitempty"`
	Storage          BackupStorageSpec `json:"storage,omitempty"`
}

func (*BackupSpec) DeepCopy

func (in *BackupSpec) DeepCopy() *BackupSpec

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

func (*BackupSpec) DeepCopyInto

func (in *BackupSpec) DeepCopyInto(out *BackupSpec)

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

type BackupStatus

type BackupStatus struct {
	Succeeded         bool                  `json:"succeeded,omitempty"`
	LastSucceededTime *metav1.Time          `json:"lastSucceededTime,omitempty"`
	History           []BackupStatusHistory `json:"backupStatusHistory,omitempty"`
}

func (*BackupStatus) DeepCopy

func (in *BackupStatus) DeepCopy() *BackupStatus

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

func (*BackupStatus) DeepCopyInto

func (in *BackupStatus) DeepCopyInto(out *BackupStatus)

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

type BackupStatusHistory

type BackupStatusHistory struct {
	Succeeded    bool         `json:"succeeded,omitempty"`
	ExecuteTime  *metav1.Time `json:"executeTime,omitempty"`
	Path         string       `json:"path,omitempty"`
	EtcdVersion  string       `json:"etcdVersion,omitempty"`
	EtcdRevision int64        `json:"etcdRevision,omitempty"`
	Message      string       `json:"message,omitempty"`
}

func (*BackupStatusHistory) DeepCopy

func (in *BackupStatusHistory) DeepCopy() *BackupStatusHistory

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

func (*BackupStatusHistory) DeepCopyInto

func (in *BackupStatusHistory) DeepCopyInto(out *BackupStatusHistory)

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

type BackupStorageGCSSpec

type BackupStorageGCSSpec struct {
	Bucket             string                `json:"bucket,omitempty"`
	Path               string                `json:"path,omitempty"`
	CredentialSelector GCPCredentialSelector `json:"credentialSelector,omitempty"`
}

func (*BackupStorageGCSSpec) DeepCopy

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

func (*BackupStorageGCSSpec) DeepCopyInto

func (in *BackupStorageGCSSpec) DeepCopyInto(out *BackupStorageGCSSpec)

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

type BackupStorageMinIOSpec

type BackupStorageMinIOSpec struct {
	ServiceSelector    ObjectSelector        `json:"serviceSelector,omitempty"`
	CredentialSelector AWSCredentialSelector `json:"credentialSelector,omitempty"`
	Bucket             string                `json:"bucket,omitempty"`
	Path               string                `json:"path,omitempty"`
	Secure             bool                  `json:"secure,omitempty"`
}

func (*BackupStorageMinIOSpec) DeepCopy

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

func (*BackupStorageMinIOSpec) DeepCopyInto

func (in *BackupStorageMinIOSpec) DeepCopyInto(out *BackupStorageMinIOSpec)

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

type BackupStorageSpec

type BackupStorageSpec struct {
	// MinIO is in-cluster MinIO config
	MinIO *BackupStorageMinIOSpec `json:"minio,omitempty"`
	GCS   *BackupStorageGCSSpec   `json:"gcs,omitempty"`
}

func (*BackupStorageSpec) DeepCopy

func (in *BackupStorageSpec) DeepCopy() *BackupStorageSpec

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

func (*BackupStorageSpec) DeepCopyInto

func (in *BackupStorageSpec) DeepCopyInto(out *BackupStorageSpec)

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

type EtcdCluster

type EtcdCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   EtcdClusterSpec   `json:"spec,omitempty"`
	Status EtcdClusterStatus `json:"status,omitempty"`
}

func (*EtcdCluster) DeepCopy

func (in *EtcdCluster) DeepCopy() *EtcdCluster

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

func (*EtcdCluster) DeepCopyInto

func (in *EtcdCluster) DeepCopyInto(out *EtcdCluster)

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

func (*EtcdCluster) DeepCopyObject

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

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

type EtcdClusterList

type EtcdClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []EtcdCluster `json:"items"`
}

func (*EtcdClusterList) DeepCopy

func (in *EtcdClusterList) DeepCopy() *EtcdClusterList

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

func (*EtcdClusterList) DeepCopyInto

func (in *EtcdClusterList) DeepCopyInto(out *EtcdClusterList)

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

func (*EtcdClusterList) DeepCopyObject

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

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

type EtcdClusterPhase

type EtcdClusterPhase string
const (
	ClusterPhasePending      EtcdClusterPhase = "Pending"
	ClusterPhaseInitializing EtcdClusterPhase = "Initializing"
	ClusterPhaseCreating     EtcdClusterPhase = "Creating"
	ClusterPhaseRunning      EtcdClusterPhase = "Running"
	ClusterPhaseUpdating     EtcdClusterPhase = "Updating"
	ClusterPhaseDegrading    EtcdClusterPhase = "Degrading"
)

type EtcdClusterSpec

type EtcdClusterSpec struct {
	Members             int                                   `json:"members"`
	Version             string                                `json:"version"`
	AntiAffinity        bool                                  `json:"antiAffinity,omitempty"`
	DefragmentSchedule  string                                `json:"defragmentSchedule"`
	Backup              *BackupSpec                           `json:"backup,omitempty"`
	VolumeClaimTemplate *corev1.PersistentVolumeClaimTemplate `json:"volumeClaimTemplate,omitempty"`
}

func (*EtcdClusterSpec) DeepCopy

func (in *EtcdClusterSpec) DeepCopy() *EtcdClusterSpec

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

func (*EtcdClusterSpec) DeepCopyInto

func (in *EtcdClusterSpec) DeepCopyInto(out *EtcdClusterSpec)

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

type EtcdClusterStatus

type EtcdClusterStatus struct {
	Ready                   bool             `json:"ready"`
	Phase                   EtcdClusterPhase `json:"phase,omitempty"`
	Members                 []MemberStatus   `json:"members,omitempty"`
	LastReadyTransitionTime *metav1.Time     `json:"lastReadyTransitionTime,omitempty"`
	LastDefragmentTime      *metav1.Time     `json:"lastDefragmentTime,omitempty"`
	ClientEndpoint          string           `json:"clientEndpoint,omitempty"`
	ClientCertSecretName    string           `json:"clientCertSecretName,omitempty"`
	Backup                  *BackupStatus    `json:"backup,omitempty"`
	Restored                *RestoredStatus  `json:"restored,omitempty"`
	// Deprecated.
	// Do not use this field.
	RestoreFrom string `json:"restoreFrom,omitempty"`
}

func (*EtcdClusterStatus) DeepCopy

func (in *EtcdClusterStatus) DeepCopy() *EtcdClusterStatus

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

func (*EtcdClusterStatus) DeepCopyInto

func (in *EtcdClusterStatus) DeepCopyInto(out *EtcdClusterStatus)

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

type GCPCredentialSelector

type GCPCredentialSelector struct {
	Name                  string `json:"name,omitempty"`
	Namespace             string `json:"namespace,omitempty"`
	ServiceAccountJSONKey string `json:"serviceAccountJSONKey,omitempty"`
}

func (*GCPCredentialSelector) DeepCopy

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

func (*GCPCredentialSelector) DeepCopyInto

func (in *GCPCredentialSelector) DeepCopyInto(out *GCPCredentialSelector)

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

type MemberStatus

type MemberStatus struct {
	Id      int64  `json:"id,omitempty"`
	Name    string `json:"name,omitempty"`
	PodName string `json:"podName,omitempty"`
	Leader  bool   `json:"leader,omitempty"`
	Learner bool   `json:"leaner,omitempty"`
	Version string `json:"version,omitempty"`
}

func (*MemberStatus) DeepCopy

func (in *MemberStatus) DeepCopy() *MemberStatus

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

func (*MemberStatus) DeepCopyInto

func (in *MemberStatus) DeepCopyInto(out *MemberStatus)

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

type ObjectSelector

type ObjectSelector struct {
	Name      string `json:"name,omitempty"`
	Namespace string `json:"namespace,omitempty"`
}

func (*ObjectSelector) DeepCopy

func (in *ObjectSelector) DeepCopy() *ObjectSelector

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

func (*ObjectSelector) DeepCopyInto

func (in *ObjectSelector) DeepCopyInto(out *ObjectSelector)

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

type RestoredStatus

type RestoredStatus struct {
	Completed    bool         `json:"completed,omitempty"`
	Path         string       `json:"path,omitempty"`
	BackupTime   *metav1.Time `json:"backupTime,omitempty"`
	RestoredTime *metav1.Time `json:"restoredTime,omitempty"`
}

func (*RestoredStatus) DeepCopy

func (in *RestoredStatus) DeepCopy() *RestoredStatus

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

func (*RestoredStatus) DeepCopyInto

func (in *RestoredStatus) DeepCopyInto(out *RestoredStatus)

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

type StorageType

type StorageType string
const (
	StorageMemory     StorageType = "memory"
	StoragePersistent StorageType = "persistent"
)

Jump to

Keyboard shortcuts

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