v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder returns new scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme returns SchemeBuilder's AddToScheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: clustersnapshot.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ObjectstoreConfig

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

	Spec ObjectstoreConfigSpec `json:"spec"`
}

ObjectstoreConfig is a specification for a ObjectstoreConfig resource

func (*ObjectstoreConfig) DeepCopy

func (in *ObjectstoreConfig) DeepCopy() *ObjectstoreConfig

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

func (*ObjectstoreConfig) DeepCopyInto

func (in *ObjectstoreConfig) DeepCopyInto(out *ObjectstoreConfig)

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

func (*ObjectstoreConfig) DeepCopyObject

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

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

type ObjectstoreConfigList

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

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

ObjectstoreConfigList is a list of ObjectstoreConfig resources

func (*ObjectstoreConfigList) DeepCopy

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

func (*ObjectstoreConfigList) DeepCopyInto

func (in *ObjectstoreConfigList) DeepCopyInto(out *ObjectstoreConfigList)

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

func (*ObjectstoreConfigList) DeepCopyObject

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

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

type ObjectstoreConfigSpec

type ObjectstoreConfigSpec struct {
	Region                string `json:"region"`
	Endpoint              string `json:"endpoint"`
	CloudCredentialSecret string `json:"cloudCredentialSecret"`
	Bucket                string `json:"bucket"`
}

ObjectstoreConfigSpec is the spec for a ObjectstoreConfig resource

func (*ObjectstoreConfigSpec) DeepCopy

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

func (*ObjectstoreConfigSpec) DeepCopyInto

func (in *ObjectstoreConfigSpec) DeepCopyInto(out *ObjectstoreConfigSpec)

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

type Restore

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

	Spec   RestoreSpec   `json:"spec"`
	Status RestoreStatus `json:"status"`
}

Restore is a specification for a Restore resource

func (*Restore) DeepCopy

func (in *Restore) DeepCopy() *Restore

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

func (*Restore) DeepCopyInto

func (in *Restore) DeepCopyInto(out *Restore)

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

func (*Restore) DeepCopyObject

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

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

type RestoreList

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

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

RestoreList is a list of Restore resources

func (*RestoreList) DeepCopy

func (in *RestoreList) DeepCopy() *RestoreList

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

func (*RestoreList) DeepCopyInto

func (in *RestoreList) DeepCopyInto(out *RestoreList)

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

func (*RestoreList) DeepCopyObject

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

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

type RestorePreference

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

	Spec RestorePreferenceSpec `json:"spec"`
}

RestorePreference is a specification for a RestorePreference resource

func (*RestorePreference) DeepCopy

func (in *RestorePreference) DeepCopy() *RestorePreference

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

func (*RestorePreference) DeepCopyInto

func (in *RestorePreference) DeepCopyInto(out *RestorePreference)

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

func (*RestorePreference) DeepCopyObject

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

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

type RestorePreferenceList

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

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

RestorePreferenceList is a list of RestorePreference resources

func (*RestorePreferenceList) DeepCopy

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

func (*RestorePreferenceList) DeepCopyInto

func (in *RestorePreferenceList) DeepCopyInto(out *RestorePreferenceList)

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

func (*RestorePreferenceList) DeepCopyObject

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

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

type RestorePreferenceSpec

type RestorePreferenceSpec struct {
	ExcludeNamespaces        []string `json:"excludeNamespaces"`
	ExcludeCRDs              []string `json:"excludeCRDs"`
	ExcludeAPIPathes         []string `json:"excludeApiPathes"`
	RestoreAppAPIPathes      []string `json:"restoreAppApiPathes"`
	RestoreNfsStorageClasses []string `json:"restoreNfsStorageClasses"`
	RestoreOptions           []string `json:"restoreOptions"`
}

RestorePreferenceSpec is the spec for a RestorePreference resource

func (*RestorePreferenceSpec) DeepCopy

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

func (*RestorePreferenceSpec) DeepCopyInto

func (in *RestorePreferenceSpec) DeepCopyInto(out *RestorePreferenceSpec)

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

type RestoreSpec

type RestoreSpec struct {
	ClusterName           string          `json:"clusterName"`
	SnapshotName          string          `json:"snapshotName"`
	Kubeconfig            string          `json:"kubeconfig"`
	RestorePreferenceName string          `json:"restorePreferenceName"`
	AvailableUntil        metav1.Time     `json:"availableUntil"`
	TTL                   metav1.Duration `json:"ttl"`
}

RestoreSpec is the spec for a Restore resource

func (*RestoreSpec) DeepCopy

func (in *RestoreSpec) DeepCopy() *RestoreSpec

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

func (*RestoreSpec) DeepCopyInto

func (in *RestoreSpec) DeepCopyInto(out *RestoreSpec)

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

type RestoreStatus

type RestoreStatus struct {
	Phase                  string          `json:"phase"`
	Reason                 string          `json:"reason"`
	RestoreResourceVersion string          `json:"restoreResourceVersion"`
	RestoreTimestamp       metav1.Time     `json:"restoreTimestamp"`
	AvailableUntil         metav1.Time     `json:"availableUntil"`
	TTL                    metav1.Duration `json:"ttl"`
	NumSnapshotContents    int32           `json:"numSnapshotContents"`
	NumPreferenceExcluded  int32           `json:"numPreferenceExcluded"`
	Excluded               []string        `json:"excluded"`
	NumExcluded            int32           `json:"numExcluded"`
	Created                []string        `json:"created"`
	NumCreated             int32           `json:"numCreated"`
	Updated                []string        `json:"updated"`
	NumUpdated             int32           `json:"numUpdated"`
	AlreadyExisted         []string        `json:"alreadyExisted"`
	NumAlreadyExisted      int32           `json:"numAlreadyExisted"`
	Failed                 []string        `json:"failed"`
	NumFailed              int32           `json:"numFailed"`
}

RestoreStatus is the status for a Restore resource

func (*RestoreStatus) DeepCopy

func (in *RestoreStatus) DeepCopy() *RestoreStatus

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

func (*RestoreStatus) DeepCopyInto

func (in *RestoreStatus) DeepCopyInto(out *RestoreStatus)

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

type Snapshot

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

	Spec   SnapshotSpec   `json:"spec"`
	Status SnapshotStatus `json:"status"`
}

Snapshot is a specification for a Snapshot resource

func (*Snapshot) DeepCopy

func (in *Snapshot) DeepCopy() *Snapshot

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

func (*Snapshot) DeepCopyInto

func (in *Snapshot) DeepCopyInto(out *Snapshot)

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

func (*Snapshot) DeepCopyObject

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

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

type SnapshotList

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

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

SnapshotList is a list of Snapshot resources

func (*SnapshotList) DeepCopy

func (in *SnapshotList) DeepCopy() *SnapshotList

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

func (*SnapshotList) DeepCopyInto

func (in *SnapshotList) DeepCopyInto(out *SnapshotList)

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

func (*SnapshotList) DeepCopyObject

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

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

type SnapshotSpec

type SnapshotSpec struct {
	ClusterName       string          `json:"clusterName"`
	Kubeconfig        string          `json:"kubeconfig"`
	ObjectstoreConfig string          `json:"objectstoreConfig"`
	AvailableUntil    metav1.Time     `json:"availableUntil"`
	TTL               metav1.Duration `json:"ttl"`
}

SnapshotSpec is the spec for a Snapshot resource

func (*SnapshotSpec) DeepCopy

func (in *SnapshotSpec) DeepCopy() *SnapshotSpec

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

func (*SnapshotSpec) DeepCopyInto

func (in *SnapshotSpec) DeepCopyInto(out *SnapshotSpec)

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

type SnapshotStatus

type SnapshotStatus struct {
	Phase                   string          `json:"phase"`
	Reason                  string          `json:"reason"`
	SnapshotResourceVersion string          `json:"snapshotResourceVersion"`
	SnapshotTimestamp       metav1.Time     `json:"snapshotTimestamp"`
	AvailableUntil          metav1.Time     `json:"availableUntil"`
	TTL                     metav1.Duration `json:"ttl"`
	Contents                []string        `json:"contents"`
	StoredFileSize          int64           `json:"storedFileSize"`
	StoredTimestamp         metav1.Time     `json:"storedTimestamp"`
	NumberOfContents        int32           `json:"numberOfContents"`
}

SnapshotStatus is the status for a Snapshot resource

func (*SnapshotStatus) DeepCopy

func (in *SnapshotStatus) DeepCopy() *SnapshotStatus

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

func (*SnapshotStatus) DeepCopyInto

func (in *SnapshotStatus) DeepCopyInto(out *SnapshotStatus)

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