apimachinery: stash.appscode.dev/apimachinery/apis/stash/v1beta1 Index | Files

package v1beta1

import "stash.appscode.dev/apimachinery/apis/stash/v1beta1"

+groupName=stash.appscode.com

Index

Package Files

annotations.go backup_batch_helpers.go backup_batch_types.go backup_blueprint_helpers.go backup_blueprint_types.go backup_configuration_helpers.go backup_configuration_types.go backup_session_helpers.go backup_session_types.go doc.go function_helpers.go function_types.go generated.pb.go openapi_generated.go register.go restore_batch_helpers.go restore_batch_types.go restore_session_helpers.go restore_session_types.go task_helpers.go task_types.go types.go types_helpers.go validator.go zz_generated.deepcopy.go

Constants

const (
    // ResourceVersion will be used to trigger restarts for ReplicaSet and RC pods
    StashKey = "stash.appscode.com"

    KeyBackupBlueprint = StashKey + "/backup-blueprint"
    KeyTargetPaths     = StashKey + "/target-paths"
    KeyVolumeMounts    = StashKey + "/volume-mounts"

    KeyLastAppliedBackupInvoker     = StashKey + "/last-applied-backup-invoker"
    KeyLastAppliedBackupInvokerKind = StashKey + "/last-applied-backup-invoker-kind"
    AppliedBackupInvokerSpecHash    = StashKey + "/last-applied-backup-invoker-hash"

    KeyLastAppliedRestoreInvoker     = StashKey + "/last-applied-restore-invoker"
    KeyLastAppliedRestoreInvokerKind = StashKey + "/last-applied-restore-invoker-kind"
    AppliedRestoreInvokerSpecHash    = StashKey + "/last-applied-restore-invoker-hash"
)
const (
    ResourceKindBackupBatch     = "BackupBatch"
    ResourceSingularBackupBatch = "backupbatch"
    ResourcePluralBackupBatch   = "backupbatches"
)
const (
    ResourceKindBackupBlueprint     = "BackupBlueprint"
    ResourcePluralBackupBlueprint   = "backupblueprints"
    ResourceSingularBackupBlueprint = "backupblueprint"
)
const (
    ResourceKindBackupConfiguration     = "BackupConfiguration"
    ResourceSingularBackupConfiguration = "backupconfiguration"
    ResourcePluralBackupConfiguration   = "backupconfigurations"
)
const (
    ResourceKindBackupSession     = "BackupSession"
    ResourceSingularBackupSession = "backupsession"
    ResourcePluralBackupSession   = "backupsessions"
)
const (
    ResourceKindFunction     = "Function"
    ResourcePluralFunction   = "functions"
    ResourceSingularFunction = "function"
)
const (
    ResourceKindRestoreBatch     = "RestoreBatch"
    ResourceSingularRestoreBatch = "restorebatch"
    ResourcePluralRestoreBatch   = "restorebatches"
)
const (
    ResourceKindRestoreSession     = "RestoreSession"
    ResourcePluralRestoreSession   = "restoresessions"
    ResourceSingularRestoreSession = "restoresession"
)
const (
    ResourceKindTask     = "Task"
    ResourcePluralTask   = "tasks"
    ResourceSingularTask = "task"
)
const (
    StashBackupComponent  = "stash-backup"
    StashRestoreComponent = "stash-restore"
)

Variables

var (
    ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
var (
    // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
    // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
    SchemeBuilder runtime.SchemeBuilder

    AddToScheme = localSchemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: stash.GroupName, Version: "v1beta1"}

func GetOpenAPIDefinitions Uses

func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition

func GetOpenAPIDefinitionsWithRetentionPolicy Uses

func GetOpenAPIDefinitionsWithRetentionPolicy(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition

func Resource Uses

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

type BackupBatch Uses

type BackupBatch struct {
    metav1.TypeMeta   `json:",inline,omitempty"`
    metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    Spec              BackupBatchSpec   `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
    Status            BackupBatchStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=backupbatches,singular=backupbatch,categories={stash,appscode,all} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Schedule",type="string",JSONPath=".spec.schedule" +kubebuilder:printcolumn:name="Paused",type="boolean",JSONPath=".spec.paused" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (BackupBatch) CustomResourceDefinition Uses

func (_ BackupBatch) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*BackupBatch) DeepCopy Uses

func (in *BackupBatch) DeepCopy() *BackupBatch

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

func (*BackupBatch) DeepCopyInto Uses

func (in *BackupBatch) DeepCopyInto(out *BackupBatch)

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

func (*BackupBatch) DeepCopyObject Uses

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

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

func (*BackupBatch) Descriptor Uses

func (*BackupBatch) Descriptor() ([]byte, []int)

func (BackupBatch) GetSpecHash Uses

func (b BackupBatch) GetSpecHash() string

func (*BackupBatch) Marshal Uses

func (m *BackupBatch) Marshal() (dAtA []byte, err error)

func (*BackupBatch) MarshalTo Uses

func (m *BackupBatch) MarshalTo(dAtA []byte) (int, error)

func (*BackupBatch) MarshalToSizedBuffer Uses

func (m *BackupBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (BackupBatch) OffshootLabels Uses

func (b BackupBatch) OffshootLabels() map[string]string

OffshootLabels return labels consist of the labels provided by user to BackupBatch crd and stash specific generic labels. It overwrites the the user provided labels if it matched with stash specific generic labels.

func (*BackupBatch) ProtoMessage Uses

func (*BackupBatch) ProtoMessage()

func (*BackupBatch) Reset Uses

func (m *BackupBatch) Reset()

func (*BackupBatch) Size Uses

func (m *BackupBatch) Size() (n int)

func (*BackupBatch) String Uses

func (this *BackupBatch) String() string

func (*BackupBatch) Unmarshal Uses

func (m *BackupBatch) Unmarshal(dAtA []byte) error

func (*BackupBatch) XXX_DiscardUnknown Uses

func (m *BackupBatch) XXX_DiscardUnknown()

func (*BackupBatch) XXX_Marshal Uses

func (m *BackupBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupBatch) XXX_Merge Uses

func (m *BackupBatch) XXX_Merge(src proto.Message)

func (*BackupBatch) XXX_Size Uses

func (m *BackupBatch) XXX_Size() int

func (*BackupBatch) XXX_Unmarshal Uses

func (m *BackupBatch) XXX_Unmarshal(b []byte) error

type BackupBatchList Uses

type BackupBatchList struct {
    metav1.TypeMeta `json:",inline"`
    metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    Items           []BackupBatch `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"`
}

func (*BackupBatchList) DeepCopy Uses

func (in *BackupBatchList) DeepCopy() *BackupBatchList

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

func (*BackupBatchList) DeepCopyInto Uses

func (in *BackupBatchList) DeepCopyInto(out *BackupBatchList)

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

func (*BackupBatchList) DeepCopyObject Uses

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

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

func (*BackupBatchList) Descriptor Uses

func (*BackupBatchList) Descriptor() ([]byte, []int)

func (*BackupBatchList) Marshal Uses

func (m *BackupBatchList) Marshal() (dAtA []byte, err error)

func (*BackupBatchList) MarshalTo Uses

func (m *BackupBatchList) MarshalTo(dAtA []byte) (int, error)

func (*BackupBatchList) MarshalToSizedBuffer Uses

func (m *BackupBatchList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupBatchList) ProtoMessage Uses

func (*BackupBatchList) ProtoMessage()

func (*BackupBatchList) Reset Uses

func (m *BackupBatchList) Reset()

func (*BackupBatchList) Size Uses

func (m *BackupBatchList) Size() (n int)

func (*BackupBatchList) String Uses

func (this *BackupBatchList) String() string

func (*BackupBatchList) Unmarshal Uses

func (m *BackupBatchList) Unmarshal(dAtA []byte) error

func (*BackupBatchList) XXX_DiscardUnknown Uses

func (m *BackupBatchList) XXX_DiscardUnknown()

func (*BackupBatchList) XXX_Marshal Uses

func (m *BackupBatchList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupBatchList) XXX_Merge Uses

func (m *BackupBatchList) XXX_Merge(src proto.Message)

func (*BackupBatchList) XXX_Size Uses

func (m *BackupBatchList) XXX_Size() int

func (*BackupBatchList) XXX_Unmarshal Uses

func (m *BackupBatchList) XXX_Unmarshal(b []byte) error

type BackupBatchSpec Uses

type BackupBatchSpec struct {
    // members is a list of backup configurations that are part of this batch
    // +optional
    Members []BackupConfigurationTemplateSpec `json:"members,omitempty" protobuf:"bytes,1,rep,name=members"`
    // Schedule specifies the schedule for invoking backup sessions
    // +optional
    Schedule string `json:"schedule,omitempty" protobuf:"bytes,2,opt,name=schedule"`
    // RuntimeSettings allow to specify Resources, NodeSelector, Affinity, Toleration, ReadinessProbe etc,
    // and used to create service account for CronJob.
    // +optional
    RuntimeSettings ofst.RuntimeSettings `json:"runtimeSettings,omitempty" protobuf:"bytes,3,opt,name=runtimeSettings"`
    // Driver indicates the name of the agent to use to backup the target.
    // Supported values are "Restic", "VolumeSnapshotter".
    // Default value is "Restic".
    // +optional
    // +kubebuilder:default=Restic
    Driver Snapshotter `json:"driver,omitempty" protobuf:"bytes,4,opt,name=driver,casttype=Snapshotter"`
    // Repository refer to the Repository crd that holds backend information
    // +optional
    Repository core.LocalObjectReference `json:"repository,omitempty" protobuf:"bytes,5,opt,name=repository"`
    // RetentionPolicy indicates the policy to follow to clean old backup snapshots
    RetentionPolicy v1alpha1.RetentionPolicy `json:"retentionPolicy" protobuf:"bytes,6,opt,name=retentionPolicy"`
    // Indicates that the BackupConfiguration is paused from taking backup. Default value is 'false'
    // +optional
    Paused bool `json:"paused,omitempty" protobuf:"varint,7,opt,name=paused"`
    // BackupHistoryLimit specifies the number of BackupSession and it's associate resources to keep.
    // This is helpful for debugging purpose.
    // Default: 1
    // +optional
    BackupHistoryLimit *int32 `json:"backupHistoryLimit,omitempty" protobuf:"varint,8,opt,name=backupHistoryLimit"`
    // Actions that Stash should take in response to backup sessions.
    // Cannot be updated.
    // +optional
    Hooks *BackupHooks `json:"hooks,omitempty" protobuf:"bytes,9,opt,name=hooks"`
    // ExecutionOrder indicate whether to backup the members in the sequential order as they appear in the members list.
    // The default value is "Parallel" which means the members will be backed up in parallel.
    // +kubebuilder:default=Parallel
    // +optional
    ExecutionOrder ExecutionOrder `json:"executionOrder,omitempty" protobuf:"bytes,10,opt,name=executionOrder"`
}

func (*BackupBatchSpec) DeepCopy Uses

func (in *BackupBatchSpec) DeepCopy() *BackupBatchSpec

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

func (*BackupBatchSpec) DeepCopyInto Uses

func (in *BackupBatchSpec) DeepCopyInto(out *BackupBatchSpec)

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

func (*BackupBatchSpec) Descriptor Uses

func (*BackupBatchSpec) Descriptor() ([]byte, []int)

func (*BackupBatchSpec) Marshal Uses

func (m *BackupBatchSpec) Marshal() (dAtA []byte, err error)

func (*BackupBatchSpec) MarshalTo Uses

func (m *BackupBatchSpec) MarshalTo(dAtA []byte) (int, error)

func (*BackupBatchSpec) MarshalToSizedBuffer Uses

func (m *BackupBatchSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupBatchSpec) ProtoMessage Uses

func (*BackupBatchSpec) ProtoMessage()

func (*BackupBatchSpec) Reset Uses

func (m *BackupBatchSpec) Reset()

func (*BackupBatchSpec) Size Uses

func (m *BackupBatchSpec) Size() (n int)

func (*BackupBatchSpec) String Uses

func (this *BackupBatchSpec) String() string

func (*BackupBatchSpec) Unmarshal Uses

func (m *BackupBatchSpec) Unmarshal(dAtA []byte) error

func (*BackupBatchSpec) XXX_DiscardUnknown Uses

func (m *BackupBatchSpec) XXX_DiscardUnknown()

func (*BackupBatchSpec) XXX_Marshal Uses

func (m *BackupBatchSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupBatchSpec) XXX_Merge Uses

func (m *BackupBatchSpec) XXX_Merge(src proto.Message)

func (*BackupBatchSpec) XXX_Size Uses

func (m *BackupBatchSpec) XXX_Size() int

func (*BackupBatchSpec) XXX_Unmarshal Uses

func (m *BackupBatchSpec) XXX_Unmarshal(b []byte) error

type BackupBatchStatus Uses

type BackupBatchStatus struct {
    // ObservedGeneration is the most recent generation observed for this BackupBatch. It corresponds to the
    // BackupBatch's generation, which is updated on mutation by the API Server.
    // +optional
    ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"`
    // Conditions shows current backup setup condition of the BackupBatch.
    // +optional
    Conditions []kmapi.Condition `json:"conditions,omitempty" protobuf:"bytes,2,rep,name=conditions"`
    // MemberConditions shows current backup setup condition of the members of the BackupBatch.
    // +optional
    MemberConditions []MemberConditions `json:"memberConditions,omitempty" protobuf:"bytes,3,rep,name=memberConditions"`
}

func (*BackupBatchStatus) DeepCopy Uses

func (in *BackupBatchStatus) DeepCopy() *BackupBatchStatus

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

func (*BackupBatchStatus) DeepCopyInto Uses

func (in *BackupBatchStatus) DeepCopyInto(out *BackupBatchStatus)

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

func (*BackupBatchStatus) Descriptor Uses

func (*BackupBatchStatus) Descriptor() ([]byte, []int)

func (*BackupBatchStatus) Marshal Uses

func (m *BackupBatchStatus) Marshal() (dAtA []byte, err error)

func (*BackupBatchStatus) MarshalTo Uses

func (m *BackupBatchStatus) MarshalTo(dAtA []byte) (int, error)

func (*BackupBatchStatus) MarshalToSizedBuffer Uses

func (m *BackupBatchStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupBatchStatus) ProtoMessage Uses

func (*BackupBatchStatus) ProtoMessage()

func (*BackupBatchStatus) Reset Uses

func (m *BackupBatchStatus) Reset()

func (*BackupBatchStatus) Size Uses

func (m *BackupBatchStatus) Size() (n int)

func (*BackupBatchStatus) String Uses

func (this *BackupBatchStatus) String() string

func (*BackupBatchStatus) Unmarshal Uses

func (m *BackupBatchStatus) Unmarshal(dAtA []byte) error

func (*BackupBatchStatus) XXX_DiscardUnknown Uses

func (m *BackupBatchStatus) XXX_DiscardUnknown()

func (*BackupBatchStatus) XXX_Marshal Uses

func (m *BackupBatchStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupBatchStatus) XXX_Merge Uses

func (m *BackupBatchStatus) XXX_Merge(src proto.Message)

func (*BackupBatchStatus) XXX_Size Uses

func (m *BackupBatchStatus) XXX_Size() int

func (*BackupBatchStatus) XXX_Unmarshal Uses

func (m *BackupBatchStatus) XXX_Unmarshal(b []byte) error

type BackupBlueprint Uses

type BackupBlueprint struct {
    metav1.TypeMeta   `json:",inline"`
    metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    Spec              BackupBlueprintSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=backupblueprints,singular=backupblueprint,scope=Cluster,shortName=bb,categories={stash,appscode} +kubebuilder:printcolumn:name="Task",type="string",JSONPath=".spec.task.name" +kubebuilder:printcolumn:name="Schedule",type="string",JSONPath=".spec.schedule" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (BackupBlueprint) CustomResourceDefinition Uses

func (_ BackupBlueprint) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*BackupBlueprint) DeepCopy Uses

func (in *BackupBlueprint) DeepCopy() *BackupBlueprint

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

func (*BackupBlueprint) DeepCopyInto Uses

func (in *BackupBlueprint) DeepCopyInto(out *BackupBlueprint)

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

func (*BackupBlueprint) DeepCopyObject Uses

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

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

func (*BackupBlueprint) Descriptor Uses

func (*BackupBlueprint) Descriptor() ([]byte, []int)

func (BackupBlueprint) GetSpecHash Uses

func (bb BackupBlueprint) GetSpecHash() string

func (*BackupBlueprint) Marshal Uses

func (m *BackupBlueprint) Marshal() (dAtA []byte, err error)

func (*BackupBlueprint) MarshalTo Uses

func (m *BackupBlueprint) MarshalTo(dAtA []byte) (int, error)

func (*BackupBlueprint) MarshalToSizedBuffer Uses

func (m *BackupBlueprint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupBlueprint) ProtoMessage Uses

func (*BackupBlueprint) ProtoMessage()

func (*BackupBlueprint) Reset Uses

func (m *BackupBlueprint) Reset()

func (*BackupBlueprint) Size Uses

func (m *BackupBlueprint) Size() (n int)

func (*BackupBlueprint) String Uses

func (this *BackupBlueprint) String() string

func (*BackupBlueprint) Unmarshal Uses

func (m *BackupBlueprint) Unmarshal(dAtA []byte) error

func (*BackupBlueprint) XXX_DiscardUnknown Uses

func (m *BackupBlueprint) XXX_DiscardUnknown()

func (*BackupBlueprint) XXX_Marshal Uses

func (m *BackupBlueprint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupBlueprint) XXX_Merge Uses

func (m *BackupBlueprint) XXX_Merge(src proto.Message)

func (*BackupBlueprint) XXX_Size Uses

func (m *BackupBlueprint) XXX_Size() int

func (*BackupBlueprint) XXX_Unmarshal Uses

func (m *BackupBlueprint) XXX_Unmarshal(b []byte) error

type BackupBlueprintList Uses

type BackupBlueprintList struct {
    metav1.TypeMeta `json:",inline"`
    metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    Items           []BackupBlueprint `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"`
}

func (*BackupBlueprintList) DeepCopy Uses

func (in *BackupBlueprintList) DeepCopy() *BackupBlueprintList

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

func (*BackupBlueprintList) DeepCopyInto Uses

func (in *BackupBlueprintList) DeepCopyInto(out *BackupBlueprintList)

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

func (*BackupBlueprintList) DeepCopyObject Uses

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

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

func (*BackupBlueprintList) Descriptor Uses

func (*BackupBlueprintList) Descriptor() ([]byte, []int)

func (*BackupBlueprintList) Marshal Uses

func (m *BackupBlueprintList) Marshal() (dAtA []byte, err error)

func (*BackupBlueprintList) MarshalTo Uses

func (m *BackupBlueprintList) MarshalTo(dAtA []byte) (int, error)

func (*BackupBlueprintList) MarshalToSizedBuffer Uses

func (m *BackupBlueprintList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupBlueprintList) ProtoMessage Uses

func (*BackupBlueprintList) ProtoMessage()

func (*BackupBlueprintList) Reset Uses

func (m *BackupBlueprintList) Reset()

func (*BackupBlueprintList) Size Uses

func (m *BackupBlueprintList) Size() (n int)

func (*BackupBlueprintList) String Uses

func (this *BackupBlueprintList) String() string

func (*BackupBlueprintList) Unmarshal Uses

func (m *BackupBlueprintList) Unmarshal(dAtA []byte) error

func (*BackupBlueprintList) XXX_DiscardUnknown Uses

func (m *BackupBlueprintList) XXX_DiscardUnknown()

func (*BackupBlueprintList) XXX_Marshal Uses

func (m *BackupBlueprintList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupBlueprintList) XXX_Merge Uses

func (m *BackupBlueprintList) XXX_Merge(src proto.Message)

func (*BackupBlueprintList) XXX_Size Uses

func (m *BackupBlueprintList) XXX_Size() int

func (*BackupBlueprintList) XXX_Unmarshal Uses

func (m *BackupBlueprintList) XXX_Unmarshal(b []byte) error

type BackupBlueprintSpec Uses

type BackupBlueprintSpec struct {
    // RepositorySpec is used to create Repository crd for respective workload
    v1alpha1.RepositorySpec `json:",inline" protobuf:"bytes,1,opt,name=repositorySpec"`
    Schedule                string `json:"schedule,omitempty" protobuf:"bytes,2,opt,name=schedule"`
    // Task specify the Task crd that specifies steps for backup process
    // +optional
    Task TaskRef `json:"task,omitempty" protobuf:"bytes,3,opt,name=task"`
    // RetentionPolicy indicates the policy to follow to clean old backup snapshots
    RetentionPolicy v1alpha1.RetentionPolicy `json:"retentionPolicy" protobuf:"bytes,4,opt,name=retentionPolicy"`
    // RuntimeSettings allow to specify Resources, NodeSelector, Affinity, Toleration, ReadinessProbe etc.
    // +optional
    RuntimeSettings ofst.RuntimeSettings `json:"runtimeSettings,omitempty" protobuf:"bytes,5,opt,name=runtimeSettings"`
    // Temp directory configuration for functions/sidecar
    // An `EmptyDir` will always be mounted at /tmp with this settings
    // +optional
    TempDir EmptyDirSettings `json:"tempDir,omitempty" protobuf:"bytes,6,opt,name=tempDir"`
    // InterimVolumeTemplate specifies a template for a volume to hold targeted data temporarily
    // before uploading to backend or inserting into target. It is only usable for job model.
    // Don't specify it in sidecar model.
    // +optional
    InterimVolumeTemplate *ofst.PersistentVolumeClaim `json:"interimVolumeTemplate,omitempty" protobuf:"bytes,7,opt,name=interimVolumeTemplate"`
    // BackupHistoryLimit specifies the number of BackupSession and it's associate resources to keep.
    // This is helpful for debugging purpose.
    // Default: 1
    // +optional
    BackupHistoryLimit *int32 `json:"backupHistoryLimit,omitempty" protobuf:"varint,8,opt,name=backupHistoryLimit"`
}

func (*BackupBlueprintSpec) DeepCopy Uses

func (in *BackupBlueprintSpec) DeepCopy() *BackupBlueprintSpec

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

func (*BackupBlueprintSpec) DeepCopyInto Uses

func (in *BackupBlueprintSpec) DeepCopyInto(out *BackupBlueprintSpec)

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

func (*BackupBlueprintSpec) Descriptor Uses

func (*BackupBlueprintSpec) Descriptor() ([]byte, []int)

func (*BackupBlueprintSpec) Marshal Uses

func (m *BackupBlueprintSpec) Marshal() (dAtA []byte, err error)

func (*BackupBlueprintSpec) MarshalTo Uses

func (m *BackupBlueprintSpec) MarshalTo(dAtA []byte) (int, error)

func (*BackupBlueprintSpec) MarshalToSizedBuffer Uses

func (m *BackupBlueprintSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupBlueprintSpec) ProtoMessage Uses

func (*BackupBlueprintSpec) ProtoMessage()

func (*BackupBlueprintSpec) Reset Uses

func (m *BackupBlueprintSpec) Reset()

func (*BackupBlueprintSpec) Size Uses

func (m *BackupBlueprintSpec) Size() (n int)

func (*BackupBlueprintSpec) String Uses

func (this *BackupBlueprintSpec) String() string

func (*BackupBlueprintSpec) Unmarshal Uses

func (m *BackupBlueprintSpec) Unmarshal(dAtA []byte) error

func (*BackupBlueprintSpec) XXX_DiscardUnknown Uses

func (m *BackupBlueprintSpec) XXX_DiscardUnknown()

func (*BackupBlueprintSpec) XXX_Marshal Uses

func (m *BackupBlueprintSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupBlueprintSpec) XXX_Merge Uses

func (m *BackupBlueprintSpec) XXX_Merge(src proto.Message)

func (*BackupBlueprintSpec) XXX_Size Uses

func (m *BackupBlueprintSpec) XXX_Size() int

func (*BackupBlueprintSpec) XXX_Unmarshal Uses

func (m *BackupBlueprintSpec) XXX_Unmarshal(b []byte) error

type BackupConfiguration Uses

type BackupConfiguration struct {
    metav1.TypeMeta   `json:",inline,omitempty"`
    metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    Spec              BackupConfigurationSpec   `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
    Status            BackupConfigurationStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=backupconfigurations,singular=backupconfiguration,shortName=bc,categories={stash,appscode,all} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Task",type="string",JSONPath=".spec.task.name" +kubebuilder:printcolumn:name="Schedule",type="string",JSONPath=".spec.schedule" +kubebuilder:printcolumn:name="Paused",type="boolean",JSONPath=".spec.paused" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (BackupConfiguration) CustomResourceDefinition Uses

func (_ BackupConfiguration) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*BackupConfiguration) DeepCopy Uses

func (in *BackupConfiguration) DeepCopy() *BackupConfiguration

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

func (*BackupConfiguration) DeepCopyInto Uses

func (in *BackupConfiguration) DeepCopyInto(out *BackupConfiguration)

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

func (*BackupConfiguration) DeepCopyObject Uses

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

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

func (*BackupConfiguration) Descriptor Uses

func (*BackupConfiguration) Descriptor() ([]byte, []int)

func (BackupConfiguration) GetSpecHash Uses

func (b BackupConfiguration) GetSpecHash() string

func (*BackupConfiguration) Marshal Uses

func (m *BackupConfiguration) Marshal() (dAtA []byte, err error)

func (*BackupConfiguration) MarshalTo Uses

func (m *BackupConfiguration) MarshalTo(dAtA []byte) (int, error)

func (*BackupConfiguration) MarshalToSizedBuffer Uses

func (m *BackupConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (BackupConfiguration) OffshootLabels Uses

func (b BackupConfiguration) OffshootLabels() map[string]string

OffshootLabels return labels consist of the labels provided by user to BackupConfiguration crd and stash specific generic labels. It overwrites the the user provided labels if it matched with stash specific generic labels.

func (*BackupConfiguration) ProtoMessage Uses

func (*BackupConfiguration) ProtoMessage()

func (*BackupConfiguration) Reset Uses

func (m *BackupConfiguration) Reset()

func (*BackupConfiguration) Size Uses

func (m *BackupConfiguration) Size() (n int)

func (*BackupConfiguration) String Uses

func (this *BackupConfiguration) String() string

func (*BackupConfiguration) Unmarshal Uses

func (m *BackupConfiguration) Unmarshal(dAtA []byte) error

func (*BackupConfiguration) XXX_DiscardUnknown Uses

func (m *BackupConfiguration) XXX_DiscardUnknown()

func (*BackupConfiguration) XXX_Marshal Uses

func (m *BackupConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupConfiguration) XXX_Merge Uses

func (m *BackupConfiguration) XXX_Merge(src proto.Message)

func (*BackupConfiguration) XXX_Size Uses

func (m *BackupConfiguration) XXX_Size() int

func (*BackupConfiguration) XXX_Unmarshal Uses

func (m *BackupConfiguration) XXX_Unmarshal(b []byte) error

type BackupConfigurationList Uses

type BackupConfigurationList struct {
    metav1.TypeMeta `json:",inline"`
    metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    Items           []BackupConfiguration `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"`
}

func (*BackupConfigurationList) DeepCopy Uses

func (in *BackupConfigurationList) DeepCopy() *BackupConfigurationList

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

func (*BackupConfigurationList) DeepCopyInto Uses

func (in *BackupConfigurationList) DeepCopyInto(out *BackupConfigurationList)

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

func (*BackupConfigurationList) DeepCopyObject Uses

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

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

func (*BackupConfigurationList) Descriptor Uses

func (*BackupConfigurationList) Descriptor() ([]byte, []int)

func (*BackupConfigurationList) Marshal Uses

func (m *BackupConfigurationList) Marshal() (dAtA []byte, err error)

func (*BackupConfigurationList) MarshalTo Uses

func (m *BackupConfigurationList) MarshalTo(dAtA []byte) (int, error)

func (*BackupConfigurationList) MarshalToSizedBuffer Uses

func (m *BackupConfigurationList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupConfigurationList) ProtoMessage Uses

func (*BackupConfigurationList) ProtoMessage()

func (*BackupConfigurationList) Reset Uses

func (m *BackupConfigurationList) Reset()

func (*BackupConfigurationList) Size Uses

func (m *BackupConfigurationList) Size() (n int)

func (*BackupConfigurationList) String Uses

func (this *BackupConfigurationList) String() string

func (*BackupConfigurationList) Unmarshal Uses

func (m *BackupConfigurationList) Unmarshal(dAtA []byte) error

func (*BackupConfigurationList) XXX_DiscardUnknown Uses

func (m *BackupConfigurationList) XXX_DiscardUnknown()

func (*BackupConfigurationList) XXX_Marshal Uses

func (m *BackupConfigurationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupConfigurationList) XXX_Merge Uses

func (m *BackupConfigurationList) XXX_Merge(src proto.Message)

func (*BackupConfigurationList) XXX_Size Uses

func (m *BackupConfigurationList) XXX_Size() int

func (*BackupConfigurationList) XXX_Unmarshal Uses

func (m *BackupConfigurationList) XXX_Unmarshal(b []byte) error

type BackupConfigurationSpec Uses

type BackupConfigurationSpec struct {
    BackupConfigurationTemplateSpec `json:",inline,omitempty" protobuf:"bytes,1,opt,name=backupConfigurationTemplateSpec"`
    // Schedule specifies the schedule for invoking backup sessions
    // +optional
    Schedule string `json:"schedule,omitempty" protobuf:"bytes,2,opt,name=schedule"`
    // Driver indicates the name of the agent to use to backup the target.
    // Supported values are "Restic", "VolumeSnapshotter".
    // Default value is "Restic".
    // +optional
    // +kubebuilder:default=Restic
    Driver Snapshotter `json:"driver,omitempty" protobuf:"bytes,3,opt,name=driver,casttype=Snapshotter"`
    // Repository refer to the Repository crd that holds backend information
    // +optional
    Repository core.LocalObjectReference `json:"repository,omitempty" protobuf:"bytes,4,opt,name=repository"`
    // RetentionPolicy indicates the policy to follow to clean old backup snapshots
    RetentionPolicy v1alpha1.RetentionPolicy `json:"retentionPolicy" protobuf:"bytes,5,opt,name=retentionPolicy"`
    // Indicates that the BackupConfiguration is paused from taking backup. Default value is 'false'
    // +optional
    Paused bool `json:"paused,omitempty" protobuf:"varint,6,opt,name=paused"`
    // BackupHistoryLimit specifies the number of BackupSession and it's associate resources to keep.
    // This is helpful for debugging purpose.
    // Default: 1
    // +optional
    BackupHistoryLimit *int32 `json:"backupHistoryLimit,omitempty" protobuf:"varint,7,opt,name=backupHistoryLimit"`
}

func (*BackupConfigurationSpec) DeepCopy Uses

func (in *BackupConfigurationSpec) DeepCopy() *BackupConfigurationSpec

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

func (*BackupConfigurationSpec) DeepCopyInto Uses

func (in *BackupConfigurationSpec) DeepCopyInto(out *BackupConfigurationSpec)

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

func (*BackupConfigurationSpec) Descriptor Uses

func (*BackupConfigurationSpec) Descriptor() ([]byte, []int)

func (*BackupConfigurationSpec) Marshal Uses

func (m *BackupConfigurationSpec) Marshal() (dAtA []byte, err error)

func (*BackupConfigurationSpec) MarshalTo Uses

func (m *BackupConfigurationSpec) MarshalTo(dAtA []byte) (int, error)

func (*BackupConfigurationSpec) MarshalToSizedBuffer Uses

func (m *BackupConfigurationSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupConfigurationSpec) ProtoMessage Uses

func (*BackupConfigurationSpec) ProtoMessage()

func (*BackupConfigurationSpec) Reset Uses

func (m *BackupConfigurationSpec) Reset()

func (*BackupConfigurationSpec) Size Uses

func (m *BackupConfigurationSpec) Size() (n int)

func (*BackupConfigurationSpec) String Uses

func (this *BackupConfigurationSpec) String() string

func (*BackupConfigurationSpec) Unmarshal Uses

func (m *BackupConfigurationSpec) Unmarshal(dAtA []byte) error

func (*BackupConfigurationSpec) XXX_DiscardUnknown Uses

func (m *BackupConfigurationSpec) XXX_DiscardUnknown()

func (*BackupConfigurationSpec) XXX_Marshal Uses

func (m *BackupConfigurationSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupConfigurationSpec) XXX_Merge Uses

func (m *BackupConfigurationSpec) XXX_Merge(src proto.Message)

func (*BackupConfigurationSpec) XXX_Size Uses

func (m *BackupConfigurationSpec) XXX_Size() int

func (*BackupConfigurationSpec) XXX_Unmarshal Uses

func (m *BackupConfigurationSpec) XXX_Unmarshal(b []byte) error

type BackupConfigurationStatus Uses

type BackupConfigurationStatus struct {
    // ObservedGeneration is the most recent generation observed for this BackupConfiguration. It corresponds to the
    // BackupConfiguration's generation, which is updated on mutation by the API Server.
    // +optional
    ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"`
    // Conditions shows current backup setup condition of the BackupConfiguration.
    // +optional
    Conditions []kmapi.Condition `json:"conditions,omitempty" protobuf:"bytes,2,rep,name=conditions"`
}

func (*BackupConfigurationStatus) DeepCopy Uses

func (in *BackupConfigurationStatus) DeepCopy() *BackupConfigurationStatus

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

func (*BackupConfigurationStatus) DeepCopyInto Uses

func (in *BackupConfigurationStatus) DeepCopyInto(out *BackupConfigurationStatus)

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

func (*BackupConfigurationStatus) Descriptor Uses

func (*BackupConfigurationStatus) Descriptor() ([]byte, []int)

func (*BackupConfigurationStatus) Marshal Uses

func (m *BackupConfigurationStatus) Marshal() (dAtA []byte, err error)

func (*BackupConfigurationStatus) MarshalTo Uses

func (m *BackupConfigurationStatus) MarshalTo(dAtA []byte) (int, error)

func (*BackupConfigurationStatus) MarshalToSizedBuffer Uses

func (m *BackupConfigurationStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupConfigurationStatus) ProtoMessage Uses

func (*BackupConfigurationStatus) ProtoMessage()

func (*BackupConfigurationStatus) Reset Uses

func (m *BackupConfigurationStatus) Reset()

func (*BackupConfigurationStatus) Size Uses

func (m *BackupConfigurationStatus) Size() (n int)

func (*BackupConfigurationStatus) String Uses

func (this *BackupConfigurationStatus) String() string

func (*BackupConfigurationStatus) Unmarshal Uses

func (m *BackupConfigurationStatus) Unmarshal(dAtA []byte) error

func (*BackupConfigurationStatus) XXX_DiscardUnknown Uses

func (m *BackupConfigurationStatus) XXX_DiscardUnknown()

func (*BackupConfigurationStatus) XXX_Marshal Uses

func (m *BackupConfigurationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupConfigurationStatus) XXX_Merge Uses

func (m *BackupConfigurationStatus) XXX_Merge(src proto.Message)

func (*BackupConfigurationStatus) XXX_Size Uses

func (m *BackupConfigurationStatus) XXX_Size() int

func (*BackupConfigurationStatus) XXX_Unmarshal Uses

func (m *BackupConfigurationStatus) XXX_Unmarshal(b []byte) error

type BackupConfigurationTemplateSpec Uses

type BackupConfigurationTemplateSpec struct {
    // Task specify the Task crd that specifies the steps to take backup
    // +optional
    Task TaskRef `json:"task,omitempty" protobuf:"bytes,1,opt,name=task"`
    // Target specify the backup target
    // +optional
    Target *BackupTarget `json:"target,omitempty" protobuf:"bytes,2,opt,name=target"`
    // RuntimeSettings allow to specify Resources, NodeSelector, Affinity, Toleration, ReadinessProbe etc.
    // +optional
    RuntimeSettings ofst.RuntimeSettings `json:"runtimeSettings,omitempty" protobuf:"bytes,3,opt,name=runtimeSettings"`
    // Temp directory configuration for functions/sidecar
    // An `EmptyDir` will always be mounted at /tmp with this settings
    // +optional
    TempDir EmptyDirSettings `json:"tempDir,omitempty" protobuf:"bytes,4,opt,name=tempDir"`
    // InterimVolumeTemplate specifies a template for a volume to hold targeted data temporarily
    // before uploading to backend or inserting into target. It is only usable for job model.
    // Don't specify it in sidecar model.
    // +optional
    InterimVolumeTemplate *ofst.PersistentVolumeClaim `json:"interimVolumeTemplate,omitempty" protobuf:"bytes,5,opt,name=interimVolumeTemplate"`
    // Actions that Stash should take in response to backup sessions.
    // +optional
    Hooks *BackupHooks `json:"hooks,omitempty" protobuf:"bytes,6,opt,name=hooks"`
}

func (*BackupConfigurationTemplateSpec) DeepCopy Uses

func (in *BackupConfigurationTemplateSpec) DeepCopy() *BackupConfigurationTemplateSpec

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

func (*BackupConfigurationTemplateSpec) DeepCopyInto Uses

func (in *BackupConfigurationTemplateSpec) DeepCopyInto(out *BackupConfigurationTemplateSpec)

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

func (*BackupConfigurationTemplateSpec) Descriptor Uses

func (*BackupConfigurationTemplateSpec) Descriptor() ([]byte, []int)

func (*BackupConfigurationTemplateSpec) Marshal Uses

func (m *BackupConfigurationTemplateSpec) Marshal() (dAtA []byte, err error)

func (*BackupConfigurationTemplateSpec) MarshalTo Uses

func (m *BackupConfigurationTemplateSpec) MarshalTo(dAtA []byte) (int, error)

func (*BackupConfigurationTemplateSpec) MarshalToSizedBuffer Uses

func (m *BackupConfigurationTemplateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupConfigurationTemplateSpec) ProtoMessage Uses

func (*BackupConfigurationTemplateSpec) ProtoMessage()

func (*BackupConfigurationTemplateSpec) Reset Uses

func (m *BackupConfigurationTemplateSpec) Reset()

func (*BackupConfigurationTemplateSpec) Size Uses

func (m *BackupConfigurationTemplateSpec) Size() (n int)

func (*BackupConfigurationTemplateSpec) String Uses

func (this *BackupConfigurationTemplateSpec) String() string

func (*BackupConfigurationTemplateSpec) Unmarshal Uses

func (m *BackupConfigurationTemplateSpec) Unmarshal(dAtA []byte) error

func (*BackupConfigurationTemplateSpec) XXX_DiscardUnknown Uses

func (m *BackupConfigurationTemplateSpec) XXX_DiscardUnknown()

func (*BackupConfigurationTemplateSpec) XXX_Marshal Uses

func (m *BackupConfigurationTemplateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupConfigurationTemplateSpec) XXX_Merge Uses

func (m *BackupConfigurationTemplateSpec) XXX_Merge(src proto.Message)

func (*BackupConfigurationTemplateSpec) XXX_Size Uses

func (m *BackupConfigurationTemplateSpec) XXX_Size() int

func (*BackupConfigurationTemplateSpec) XXX_Unmarshal Uses

func (m *BackupConfigurationTemplateSpec) XXX_Unmarshal(b []byte) error

type BackupHooks Uses

type BackupHooks struct {
    // PreBackup is called immediately before a backup session is initiated.
    // +optional
    PreBackup *prober.Handler `json:"preBackup,omitempty" protobuf:"bytes,1,opt,name=preBackup"`

    // PostBackup is called immediately after a backup session is complete.
    // +optional
    PostBackup *prober.Handler `json:"postBackup,omitempty" protobuf:"bytes,2,opt,name=postBackup"`
}

Hooks describes actions that Stash should take in response to backup sessions. For the PostBackup and PreBackup handlers, backup process blocks until the action is complete, unless the container process fails, in which case the handler is aborted.

func (*BackupHooks) DeepCopy Uses

func (in *BackupHooks) DeepCopy() *BackupHooks

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

func (*BackupHooks) DeepCopyInto Uses

func (in *BackupHooks) DeepCopyInto(out *BackupHooks)

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

func (*BackupHooks) Descriptor Uses

func (*BackupHooks) Descriptor() ([]byte, []int)

func (*BackupHooks) Marshal Uses

func (m *BackupHooks) Marshal() (dAtA []byte, err error)

func (*BackupHooks) MarshalTo Uses

func (m *BackupHooks) MarshalTo(dAtA []byte) (int, error)

func (*BackupHooks) MarshalToSizedBuffer Uses

func (m *BackupHooks) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupHooks) ProtoMessage Uses

func (*BackupHooks) ProtoMessage()

func (*BackupHooks) Reset Uses

func (m *BackupHooks) Reset()

func (*BackupHooks) Size Uses

func (m *BackupHooks) Size() (n int)

func (*BackupHooks) String Uses

func (this *BackupHooks) String() string

func (*BackupHooks) Unmarshal Uses

func (m *BackupHooks) Unmarshal(dAtA []byte) error

func (*BackupHooks) XXX_DiscardUnknown Uses

func (m *BackupHooks) XXX_DiscardUnknown()

func (*BackupHooks) XXX_Marshal Uses

func (m *BackupHooks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupHooks) XXX_Merge Uses

func (m *BackupHooks) XXX_Merge(src proto.Message)

func (*BackupHooks) XXX_Size Uses

func (m *BackupHooks) XXX_Size() int

func (*BackupHooks) XXX_Unmarshal Uses

func (m *BackupHooks) XXX_Unmarshal(b []byte) error

type BackupInvokerRef Uses

type BackupInvokerRef struct {
    // APIGroup is the group for the resource being referenced
    // +optional
    APIGroup string `json:"apiGroup,omitempty" protobuf:"bytes,1,opt,name=apiGroup"`
    // Kind is the type of resource being referenced
    Kind string `json:"kind" protobuf:"bytes,2,opt,name=kind"`
    // Name is the name of resource being referenced
    Name string `json:"name" protobuf:"bytes,3,opt,name=name"`
}

BackupInvokerRef contains information that points to the backup configuration or batch being used

func (*BackupInvokerRef) DeepCopy Uses

func (in *BackupInvokerRef) DeepCopy() *BackupInvokerRef

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

func (*BackupInvokerRef) DeepCopyInto Uses

func (in *BackupInvokerRef) DeepCopyInto(out *BackupInvokerRef)

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

func (*BackupInvokerRef) Descriptor Uses

func (*BackupInvokerRef) Descriptor() ([]byte, []int)

func (*BackupInvokerRef) Marshal Uses

func (m *BackupInvokerRef) Marshal() (dAtA []byte, err error)

func (*BackupInvokerRef) MarshalTo Uses

func (m *BackupInvokerRef) MarshalTo(dAtA []byte) (int, error)

func (*BackupInvokerRef) MarshalToSizedBuffer Uses

func (m *BackupInvokerRef) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupInvokerRef) ProtoMessage Uses

func (*BackupInvokerRef) ProtoMessage()

func (*BackupInvokerRef) Reset Uses

func (m *BackupInvokerRef) Reset()

func (*BackupInvokerRef) Size Uses

func (m *BackupInvokerRef) Size() (n int)

func (*BackupInvokerRef) String Uses

func (this *BackupInvokerRef) String() string

func (*BackupInvokerRef) Unmarshal Uses

func (m *BackupInvokerRef) Unmarshal(dAtA []byte) error

func (*BackupInvokerRef) XXX_DiscardUnknown Uses

func (m *BackupInvokerRef) XXX_DiscardUnknown()

func (*BackupInvokerRef) XXX_Marshal Uses

func (m *BackupInvokerRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupInvokerRef) XXX_Merge Uses

func (m *BackupInvokerRef) XXX_Merge(src proto.Message)

func (*BackupInvokerRef) XXX_Size Uses

func (m *BackupInvokerRef) XXX_Size() int

func (*BackupInvokerRef) XXX_Unmarshal Uses

func (m *BackupInvokerRef) XXX_Unmarshal(b []byte) error

type BackupSession Uses

type BackupSession struct {
    metav1.TypeMeta   `json:",inline"`
    metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    Spec              BackupSessionSpec   `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
    Status            BackupSessionStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=backupsessions,singular=backupsession,categories={stash,appscode,all} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Invoker-Type",type="string",JSONPath=".spec.invoker.kind" +kubebuilder:printcolumn:name="Invoker-Name",type="string",JSONPath=".spec.invoker.name" +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (BackupSession) CustomResourceDefinition Uses

func (_ BackupSession) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*BackupSession) DeepCopy Uses

func (in *BackupSession) DeepCopy() *BackupSession

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

func (*BackupSession) DeepCopyInto Uses

func (in *BackupSession) DeepCopyInto(out *BackupSession)

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

func (*BackupSession) DeepCopyObject Uses

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

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

func (*BackupSession) Descriptor Uses

func (*BackupSession) Descriptor() ([]byte, []int)

func (BackupSession) GetSpecHash Uses

func (bs BackupSession) GetSpecHash() string

func (BackupSession) IsValid Uses

func (r BackupSession) IsValid() error

TODO: complete

func (*BackupSession) Marshal Uses

func (m *BackupSession) Marshal() (dAtA []byte, err error)

func (*BackupSession) MarshalTo Uses

func (m *BackupSession) MarshalTo(dAtA []byte) (int, error)

func (*BackupSession) MarshalToSizedBuffer Uses

func (m *BackupSession) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupSession) ProtoMessage Uses

func (*BackupSession) ProtoMessage()

func (*BackupSession) Reset Uses

func (m *BackupSession) Reset()

func (*BackupSession) Size Uses

func (m *BackupSession) Size() (n int)

func (*BackupSession) String Uses

func (this *BackupSession) String() string

func (*BackupSession) Unmarshal Uses

func (m *BackupSession) Unmarshal(dAtA []byte) error

func (*BackupSession) XXX_DiscardUnknown Uses

func (m *BackupSession) XXX_DiscardUnknown()

func (*BackupSession) XXX_Marshal Uses

func (m *BackupSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupSession) XXX_Merge Uses

func (m *BackupSession) XXX_Merge(src proto.Message)

func (*BackupSession) XXX_Size Uses

func (m *BackupSession) XXX_Size() int

func (*BackupSession) XXX_Unmarshal Uses

func (m *BackupSession) XXX_Unmarshal(b []byte) error

type BackupSessionList Uses

type BackupSessionList struct {
    metav1.TypeMeta `json:",inline"`
    metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    Items           []BackupSession `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"`
}

func (*BackupSessionList) DeepCopy Uses

func (in *BackupSessionList) DeepCopy() *BackupSessionList

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

func (*BackupSessionList) DeepCopyInto Uses

func (in *BackupSessionList) DeepCopyInto(out *BackupSessionList)

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

func (*BackupSessionList) DeepCopyObject Uses

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

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

func (*BackupSessionList) Descriptor Uses

func (*BackupSessionList) Descriptor() ([]byte, []int)

func (*BackupSessionList) Marshal Uses

func (m *BackupSessionList) Marshal() (dAtA []byte, err error)

func (*BackupSessionList) MarshalTo Uses

func (m *BackupSessionList) MarshalTo(dAtA []byte) (int, error)

func (*BackupSessionList) MarshalToSizedBuffer Uses

func (m *BackupSessionList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupSessionList) ProtoMessage Uses

func (*BackupSessionList) ProtoMessage()

func (*BackupSessionList) Reset Uses

func (m *BackupSessionList) Reset()

func (*BackupSessionList) Size Uses

func (m *BackupSessionList) Size() (n int)

func (*BackupSessionList) String Uses

func (this *BackupSessionList) String() string

func (*BackupSessionList) Unmarshal Uses

func (m *BackupSessionList) Unmarshal(dAtA []byte) error

func (*BackupSessionList) XXX_DiscardUnknown Uses

func (m *BackupSessionList) XXX_DiscardUnknown()

func (*BackupSessionList) XXX_Marshal Uses

func (m *BackupSessionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupSessionList) XXX_Merge Uses

func (m *BackupSessionList) XXX_Merge(src proto.Message)

func (*BackupSessionList) XXX_Size Uses

func (m *BackupSessionList) XXX_Size() int

func (*BackupSessionList) XXX_Unmarshal Uses

func (m *BackupSessionList) XXX_Unmarshal(b []byte) error

type BackupSessionPhase Uses

type BackupSessionPhase string

+kubebuilder:validation:Enum=Pending;Running;Succeeded;Failed;Unknown

const (
    BackupSessionPending   BackupSessionPhase = "Pending"
    BackupSessionRunning   BackupSessionPhase = "Running"
    BackupSessionSucceeded BackupSessionPhase = "Succeeded"
    BackupSessionFailed    BackupSessionPhase = "Failed"
    BackupSessionUnknown   BackupSessionPhase = "Unknown"
)

type BackupSessionSpec Uses

type BackupSessionSpec struct {
    // Invoker refers to the BackupConfiguration or BackupBatch being used to invoke this backup session
    // +optional
    Invoker BackupInvokerRef `json:"invoker,omitempty" protobuf:"bytes,1,opt,name=invoker"`
}

func (*BackupSessionSpec) DeepCopy Uses

func (in *BackupSessionSpec) DeepCopy() *BackupSessionSpec

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

func (*BackupSessionSpec) DeepCopyInto Uses

func (in *BackupSessionSpec) DeepCopyInto(out *BackupSessionSpec)

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

func (*BackupSessionSpec) Descriptor Uses

func (*BackupSessionSpec) Descriptor() ([]byte, []int)

func (*BackupSessionSpec) Marshal Uses

func (m *BackupSessionSpec) Marshal() (dAtA []byte, err error)

func (*BackupSessionSpec) MarshalTo Uses

func (m *BackupSessionSpec) MarshalTo(dAtA []byte) (int, error)

func (*BackupSessionSpec) MarshalToSizedBuffer Uses

func (m *BackupSessionSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupSessionSpec) ProtoMessage Uses

func (*BackupSessionSpec) ProtoMessage()

func (*BackupSessionSpec) Reset Uses

func (m *BackupSessionSpec) Reset()

func (*BackupSessionSpec) Size Uses

func (m *BackupSessionSpec) Size() (n int)

func (*BackupSessionSpec) String Uses

func (this *BackupSessionSpec) String() string

func (*BackupSessionSpec) Unmarshal Uses

func (m *BackupSessionSpec) Unmarshal(dAtA []byte) error

func (*BackupSessionSpec) XXX_DiscardUnknown Uses

func (m *BackupSessionSpec) XXX_DiscardUnknown()

func (*BackupSessionSpec) XXX_Marshal Uses

func (m *BackupSessionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupSessionSpec) XXX_Merge Uses

func (m *BackupSessionSpec) XXX_Merge(src proto.Message)

func (*BackupSessionSpec) XXX_Size Uses

func (m *BackupSessionSpec) XXX_Size() int

func (*BackupSessionSpec) XXX_Unmarshal Uses

func (m *BackupSessionSpec) XXX_Unmarshal(b []byte) error

type BackupSessionStatus Uses

type BackupSessionStatus struct {
    // Phase indicates the overall phase of the backup process for this BackupSession. Phase will be "Succeeded" only if
    // phase of all hosts are "Succeeded". If any of the host fail to complete backup, Phase will be "Failed".
    // +optional
    Phase BackupSessionPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=BackupSessionPhase"`
    // SessionDuration specify total time taken to complete current backup session (sum of backup duration of all targets)
    // +optional
    SessionDuration string `json:"sessionDuration,omitempty" protobuf:"bytes,2,opt,name=sessionDuration"`
    // Targets specify the backup status of individual targets
    // +optional
    Targets []BackupTargetStatus `json:"targets,omitempty" protobuf:"bytes,3,rep,name=targets"`
    // Conditions shows condition of different operations/steps of the backup process
    // +optional
    Conditions []kmapi.Condition `json:"conditions,omitempty" protobuf:"bytes,4,rep,name=conditions"`
}

func (*BackupSessionStatus) DeepCopy Uses

func (in *BackupSessionStatus) DeepCopy() *BackupSessionStatus

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

func (*BackupSessionStatus) DeepCopyInto Uses

func (in *BackupSessionStatus) DeepCopyInto(out *BackupSessionStatus)

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

func (*BackupSessionStatus) Descriptor Uses

func (*BackupSessionStatus) Descriptor() ([]byte, []int)

func (*BackupSessionStatus) Marshal Uses

func (m *BackupSessionStatus) Marshal() (dAtA []byte, err error)

func (*BackupSessionStatus) MarshalTo Uses

func (m *BackupSessionStatus) MarshalTo(dAtA []byte) (int, error)

func (*BackupSessionStatus) MarshalToSizedBuffer Uses

func (m *BackupSessionStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupSessionStatus) ProtoMessage Uses

func (*BackupSessionStatus) ProtoMessage()

func (*BackupSessionStatus) Reset Uses

func (m *BackupSessionStatus) Reset()

func (*BackupSessionStatus) Size Uses

func (m *BackupSessionStatus) Size() (n int)

func (*BackupSessionStatus) String Uses

func (this *BackupSessionStatus) String() string

func (*BackupSessionStatus) Unmarshal Uses

func (m *BackupSessionStatus) Unmarshal(dAtA []byte) error

func (*BackupSessionStatus) XXX_DiscardUnknown Uses

func (m *BackupSessionStatus) XXX_DiscardUnknown()

func (*BackupSessionStatus) XXX_Marshal Uses

func (m *BackupSessionStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupSessionStatus) XXX_Merge Uses

func (m *BackupSessionStatus) XXX_Merge(src proto.Message)

func (*BackupSessionStatus) XXX_Size Uses

func (m *BackupSessionStatus) XXX_Size() int

func (*BackupSessionStatus) XXX_Unmarshal Uses

func (m *BackupSessionStatus) XXX_Unmarshal(b []byte) error

type BackupTarget Uses

type BackupTarget struct {
    // Alias represents the identifier of the backed up data in the repository.
    // This will be used as `hostname` or will be used to generate the `hostname` for the restic repository.
    // +optional
    Alias string `json:"alias,omitempty" protobuf:"bytes,1,opt,name=alias"`
    // Ref refers to the backup target
    Ref TargetRef `json:"ref,omitempty" protobuf:"bytes,2,opt,name=ref"`
    // Paths specify the file paths to backup
    // +optional
    Paths []string `json:"paths,omitempty" protobuf:"bytes,3,rep,name=paths"`
    // VolumeMounts specifies the volumes to mount inside stash sidecar/init container
    // Specify the volumes that contains the target directories
    // +optional
    VolumeMounts []core.VolumeMount `json:"volumeMounts,omitempty" protobuf:"bytes,4,rep,name=volumeMounts"`
    //replicas are the desired number of replicas whose data should be backed up.
    // If unspecified, defaults to 1.
    // +optional
    Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,5,opt,name=replicas"`
    // Name of the VolumeSnapshotClass used by the VolumeSnapshot. If not specified, a default snapshot class will be used if it is available.
    // Use this field only if the "driver" field is set to "volumeSnapshotter".
    // +optional
    VolumeSnapshotClassName string `json:"snapshotClassName,omitempty" protobuf:"bytes,6,opt,name=snapshotClassName"`
    // Exclude specifies a list of patterns for the files to ignore during backup.
    // Stash will ignore those files that match the specified patterns.
    // Supported only for "Restic" driver
    // +optional
    Exclude []string `json:"exclude,omitempty" protobuf:"bytes,7,rep,name=exclude"`
}

func (*BackupTarget) DeepCopy Uses

func (in *BackupTarget) DeepCopy() *BackupTarget

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

func (*BackupTarget) DeepCopyInto Uses

func (in *BackupTarget) DeepCopyInto(out *BackupTarget)

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

func (*BackupTarget) Descriptor Uses

func (*BackupTarget) Descriptor() ([]byte, []int)

func (*BackupTarget) Marshal Uses

func (m *BackupTarget) Marshal() (dAtA []byte, err error)

func (*BackupTarget) MarshalTo Uses

func (m *BackupTarget) MarshalTo(dAtA []byte) (int, error)

func (*BackupTarget) MarshalToSizedBuffer Uses

func (m *BackupTarget) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupTarget) ProtoMessage Uses

func (*BackupTarget) ProtoMessage()

func (*BackupTarget) Reset Uses

func (m *BackupTarget) Reset()

func (*BackupTarget) Size Uses

func (m *BackupTarget) Size() (n int)

func (*BackupTarget) String Uses

func (this *BackupTarget) String() string

func (*BackupTarget) Unmarshal Uses

func (m *BackupTarget) Unmarshal(dAtA []byte) error

func (*BackupTarget) XXX_DiscardUnknown Uses

func (m *BackupTarget) XXX_DiscardUnknown()

func (*BackupTarget) XXX_Marshal Uses

func (m *BackupTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupTarget) XXX_Merge Uses

func (m *BackupTarget) XXX_Merge(src proto.Message)

func (*BackupTarget) XXX_Size Uses

func (m *BackupTarget) XXX_Size() int

func (*BackupTarget) XXX_Unmarshal Uses

func (m *BackupTarget) XXX_Unmarshal(b []byte) error

type BackupTargetStatus Uses

type BackupTargetStatus struct {
    // Ref refers to the backup target
    // +optional
    Ref TargetRef `json:"ref,omitempty" protobuf:"bytes,1,opt,name=ref"`
    // TotalHosts specifies total number of hosts for this target that will be backed up for a BackupSession
    // +optional
    TotalHosts *int32 `json:"totalHosts,omitempty" protobuf:"varint,2,opt,name=totalHosts"`
    // Phase indicates backup phase of this target
    // +optional
    Phase TargetPhase `json:"phase,omitempty" protobuf:"bytes,3,opt,name=phase"`
    // Stats shows statistics of individual hosts for this backup session
    // +optional
    Stats []HostBackupStats `json:"stats,omitempty" protobuf:"bytes,4,rep,name=stats"`
    // PreBackupActions specifies a list of actions that the backup process should execute before taking backup
    // +optional
    PreBackupActions []string `json:"preBackupActions,omitempty" protobuf:"bytes,5,rep,name=preBackupActions"`
    // PostBackupActions specifies a list of actions that the backup process should execute after taking backup
    // +optional
    PostBackupActions []string `json:"postBackupActions,omitempty" protobuf:"bytes,6,rep,name=postBackupActions"`
}

func (*BackupTargetStatus) DeepCopy Uses

func (in *BackupTargetStatus) DeepCopy() *BackupTargetStatus

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

func (*BackupTargetStatus) DeepCopyInto Uses

func (in *BackupTargetStatus) DeepCopyInto(out *BackupTargetStatus)

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

func (*BackupTargetStatus) Descriptor Uses

func (*BackupTargetStatus) Descriptor() ([]byte, []int)

func (*BackupTargetStatus) Marshal Uses

func (m *BackupTargetStatus) Marshal() (dAtA []byte, err error)

func (*BackupTargetStatus) MarshalTo Uses

func (m *BackupTargetStatus) MarshalTo(dAtA []byte) (int, error)

func (*BackupTargetStatus) MarshalToSizedBuffer Uses

func (m *BackupTargetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BackupTargetStatus) ProtoMessage Uses

func (*BackupTargetStatus) ProtoMessage()

func (*BackupTargetStatus) Reset Uses

func (m *BackupTargetStatus) Reset()

func (*BackupTargetStatus) Size Uses

func (m *BackupTargetStatus) Size() (n int)

func (*BackupTargetStatus) String Uses

func (this *BackupTargetStatus) String() string

func (*BackupTargetStatus) Unmarshal Uses

func (m *BackupTargetStatus) Unmarshal(dAtA []byte) error

func (*BackupTargetStatus) XXX_DiscardUnknown Uses

func (m *BackupTargetStatus) XXX_DiscardUnknown()

func (*BackupTargetStatus) XXX_Marshal Uses

func (m *BackupTargetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupTargetStatus) XXX_Merge Uses

func (m *BackupTargetStatus) XXX_Merge(src proto.Message)

func (*BackupTargetStatus) XXX_Size Uses

func (m *BackupTargetStatus) XXX_Size() int

func (*BackupTargetStatus) XXX_Unmarshal Uses

func (m *BackupTargetStatus) XXX_Unmarshal(b []byte) error

type EmptyDirSettings Uses

type EmptyDirSettings struct {
    Medium    core.StorageMedium `json:"medium,omitempty" protobuf:"bytes,1,opt,name=medium,casttype=k8s.io/api/core/v1.StorageMedium"`
    SizeLimit *resource.Quantity `json:"sizeLimit,omitempty" protobuf:"bytes,2,opt,name=sizeLimit"`
    // More info: https://github.com/restic/restic/blob/master/doc/manual_rest.rst#caching
    DisableCaching bool `json:"disableCaching,omitempty" protobuf:"varint,3,opt,name=disableCaching"`
}

func (*EmptyDirSettings) DeepCopy Uses

func (in *EmptyDirSettings) DeepCopy() *EmptyDirSettings

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

func (*EmptyDirSettings) DeepCopyInto Uses

func (in *EmptyDirSettings) DeepCopyInto(out *EmptyDirSettings)

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

func (*EmptyDirSettings) Descriptor Uses

func (*EmptyDirSettings) Descriptor() ([]byte, []int)

func (*EmptyDirSettings) Marshal Uses

func (m *EmptyDirSettings) Marshal() (dAtA []byte, err error)

func (*EmptyDirSettings) MarshalTo Uses

func (m *EmptyDirSettings) MarshalTo(dAtA []byte) (int, error)

func (*EmptyDirSettings) MarshalToSizedBuffer Uses

func (m *EmptyDirSettings) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EmptyDirSettings) ProtoMessage Uses

func (*EmptyDirSettings) ProtoMessage()

func (*EmptyDirSettings) Reset Uses

func (m *EmptyDirSettings) Reset()

func (*EmptyDirSettings) Size Uses

func (m *EmptyDirSettings) Size() (n int)

func (*EmptyDirSettings) String Uses

func (this *EmptyDirSettings) String() string

func (*EmptyDirSettings) Unmarshal Uses

func (m *EmptyDirSettings) Unmarshal(dAtA []byte) error

func (*EmptyDirSettings) XXX_DiscardUnknown Uses

func (m *EmptyDirSettings) XXX_DiscardUnknown()

func (*EmptyDirSettings) XXX_Marshal Uses

func (m *EmptyDirSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EmptyDirSettings) XXX_Merge Uses

func (m *EmptyDirSettings) XXX_Merge(src proto.Message)

func (*EmptyDirSettings) XXX_Size Uses

func (m *EmptyDirSettings) XXX_Size() int

func (*EmptyDirSettings) XXX_Unmarshal Uses

func (m *EmptyDirSettings) XXX_Unmarshal(b []byte) error

type ExecutionOrder Uses

type ExecutionOrder string
const (
    Parallel   ExecutionOrder = "Parallel"
    Sequential ExecutionOrder = "Sequential"
)

type FileStats Uses

type FileStats struct {
    // TotalFiles shows total number of files that has been backed up
    TotalFiles *int64 `json:"totalFiles,omitempty" protobuf:"varint,1,opt,name=totalFiles"`
    // NewFiles shows total number of new files that has been created since last backup
    NewFiles *int64 `json:"newFiles,omitempty" protobuf:"varint,2,opt,name=newFiles"`
    // ModifiedFiles shows total number of files that has been modified since last backup
    ModifiedFiles *int64 `json:"modifiedFiles,omitempty" protobuf:"varint,3,opt,name=modifiedFiles"`
    // UnmodifiedFiles shows total number of files that has not been changed since last backup
    UnmodifiedFiles *int64 `json:"unmodifiedFiles,omitempty" protobuf:"varint,4,opt,name=unmodifiedFiles"`
}

func (*FileStats) DeepCopy Uses

func (in *FileStats) DeepCopy() *FileStats

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

func (*FileStats) DeepCopyInto Uses

func (in *FileStats) DeepCopyInto(out *FileStats)

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

func (*FileStats) Descriptor Uses

func (*FileStats) Descriptor() ([]byte, []int)

func (*FileStats) Marshal Uses

func (m *FileStats) Marshal() (dAtA []byte, err error)

func (*FileStats) MarshalTo Uses

func (m *FileStats) MarshalTo(dAtA []byte) (int, error)

func (*FileStats) MarshalToSizedBuffer Uses

func (m *FileStats) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FileStats) ProtoMessage Uses

func (*FileStats) ProtoMessage()

func (*FileStats) Reset Uses

func (m *FileStats) Reset()

func (*FileStats) Size Uses

func (m *FileStats) Size() (n int)

func (*FileStats) String Uses

func (this *FileStats) String() string

func (*FileStats) Unmarshal Uses

func (m *FileStats) Unmarshal(dAtA []byte) error

func (*FileStats) XXX_DiscardUnknown Uses

func (m *FileStats) XXX_DiscardUnknown()

func (*FileStats) XXX_Marshal Uses

func (m *FileStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileStats) XXX_Merge Uses

func (m *FileStats) XXX_Merge(src proto.Message)

func (*FileStats) XXX_Size Uses

func (m *FileStats) XXX_Size() int

func (*FileStats) XXX_Unmarshal Uses

func (m *FileStats) XXX_Unmarshal(b []byte) error

type Function Uses

type Function struct {
    metav1.TypeMeta   `json:",inline"`
    metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    Spec              FunctionSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=functions,singular=function,scope=Cluster,shortName=fn,categories={stash,appscode} +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (Function) CustomResourceDefinition Uses

func (_ Function) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*Function) DeepCopy Uses

func (in *Function) DeepCopy() *Function

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

func (*Function) DeepCopyInto Uses

func (in *Function) DeepCopyInto(out *Function)

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

func (*Function) DeepCopyObject Uses

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

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

func (*Function) Descriptor Uses

func (*Function) Descriptor() ([]byte, []int)

func (*Function) Marshal Uses

func (m *Function) Marshal() (dAtA []byte, err error)

func (*Function) MarshalTo Uses

func (m *Function) MarshalTo(dAtA []byte) (int, error)

func (*Function) MarshalToSizedBuffer Uses

func (m *Function) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Function) ProtoMessage Uses

func (*Function) ProtoMessage()

func (*Function) Reset Uses

func (m *Function) Reset()

func (*Function) Size Uses

func (m *Function) Size() (n int)

func (*Function) String Uses

func (this *Function) String() string

func (*Function) Unmarshal Uses

func (m *Function) Unmarshal(dAtA []byte) error

func (*Function) XXX_DiscardUnknown Uses

func (m *Function) XXX_DiscardUnknown()

func (*Function) XXX_Marshal Uses

func (m *Function) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Function) XXX_Merge Uses

func (m *Function) XXX_Merge(src proto.Message)

func (*Function) XXX_Size Uses

func (m *Function) XXX_Size() int

func (*Function) XXX_Unmarshal Uses

func (m *Function) XXX_Unmarshal(b []byte) error

type FunctionList Uses

type FunctionList struct {
    metav1.TypeMeta `json:",inline"`
    metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    Items           []Function `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"`
}

func (*FunctionList) DeepCopy Uses

func (in *FunctionList) DeepCopy() *FunctionList

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

func (*FunctionList) DeepCopyInto Uses

func (in *FunctionList) DeepCopyInto(out *FunctionList)

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

func (*FunctionList) DeepCopyObject Uses

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

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

func (*FunctionList) Descriptor Uses

func (*FunctionList) Descriptor() ([]byte, []int)

func (*FunctionList) Marshal Uses

func (m *FunctionList) Marshal() (dAtA []byte, err error)

func (*FunctionList) MarshalTo Uses

func (m *FunctionList) MarshalTo(dAtA []byte) (int, error)

func (*FunctionList) MarshalToSizedBuffer Uses

func (m *FunctionList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FunctionList) ProtoMessage Uses

func (*FunctionList) ProtoMessage()

func (*FunctionList) Reset Uses

func (m *FunctionList) Reset()

func (*FunctionList) Size Uses

func (m *FunctionList) Size() (n int)

func (*FunctionList) String Uses

func (this *FunctionList) String() string

func (*FunctionList) Unmarshal Uses

func (m *FunctionList) Unmarshal(dAtA []byte) error

func (*FunctionList) XXX_DiscardUnknown Uses

func (m *FunctionList) XXX_DiscardUnknown()

func (*FunctionList) XXX_Marshal Uses

func (m *FunctionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FunctionList) XXX_Merge Uses

func (m *FunctionList) XXX_Merge(src proto.Message)

func (*FunctionList) XXX_Size Uses

func (m *FunctionList) XXX_Size() int

func (*FunctionList) XXX_Unmarshal Uses

func (m *FunctionList) XXX_Unmarshal(b []byte) error

type FunctionRef Uses

type FunctionRef struct {
    // Name indicates the name of Function crd
    Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
    // Inputs specifies the inputs of respective Function
    // +optional
    Params []Param `json:"params,omitempty" protobuf:"bytes,2,rep,name=params"`
}

func (*FunctionRef) DeepCopy Uses

func (in *FunctionRef) DeepCopy() *FunctionRef

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

func (*FunctionRef) DeepCopyInto Uses

func (in *FunctionRef) DeepCopyInto(out *FunctionRef)

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

func (*FunctionRef) Descriptor Uses

func (*FunctionRef) Descriptor() ([]byte, []int)

func (*FunctionRef) Marshal Uses

func (m *FunctionRef) Marshal() (dAtA []byte, err error)

func (*FunctionRef) MarshalTo Uses

func (m *FunctionRef) MarshalTo(dAtA []byte) (int, error)

func (*FunctionRef) MarshalToSizedBuffer Uses

func (m *FunctionRef) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FunctionRef) ProtoMessage Uses

func (*FunctionRef) ProtoMessage()

func (*FunctionRef) Reset Uses

func (m *FunctionRef) Reset()

func (*FunctionRef) Size Uses

func (m *FunctionRef) Size() (n int)

func (*FunctionRef) String Uses

func (this *FunctionRef) String() string

func (*FunctionRef) Unmarshal Uses

func (m *FunctionRef) Unmarshal(dAtA []byte) error

func (*FunctionRef) XXX_DiscardUnknown Uses

func (m *FunctionRef) XXX_DiscardUnknown()

func (*FunctionRef) XXX_Marshal Uses

func (m *FunctionRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FunctionRef) XXX_Merge Uses

func (m *FunctionRef) XXX_Merge(src proto.Message)

func (*FunctionRef) XXX_Size Uses

func (m *FunctionRef) XXX_Size() int

func (*FunctionRef) XXX_Unmarshal Uses

func (m *FunctionRef) XXX_Unmarshal(b []byte) error

type FunctionSpec Uses

type FunctionSpec struct {
    // Docker image name.
    // More info: https://kubernetes.io/docs/concepts/containers/images
    // This field is optional to allow higher level config management to default or override
    // container images in workload controllers like Deployments and StatefulSets.
    // +optional
    Image string `json:"image,omitempty" protobuf:"bytes,1,opt,name=image"`
    // Entrypoint array. Not executed within a shell.
    // The docker image's ENTRYPOINT is used if this is not provided.
    // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
    // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
    // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
    // regardless of whether the variable exists or not.
    // Cannot be updated.
    // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    // +optional
    Command []string `json:"command,omitempty" protobuf:"bytes,2,rep,name=command"`
    // Arguments to the entrypoint.
    // The docker image's CMD is used if this is not provided.
    // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
    // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
    // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
    // regardless of whether the variable exists or not.
    // Cannot be updated.
    // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    // +optional
    Args []string `json:"args,omitempty" protobuf:"bytes,3,rep,name=args"`
    // Container's working directory.
    // If not specified, the container runtime's default will be used, which
    // might be configured in the container image.
    // Cannot be updated.
    // +optional
    WorkingDir string `json:"workingDir,omitempty" protobuf:"bytes,4,opt,name=workingDir"`
    // List of ports to expose from the container. Exposing a port here gives
    // the system additional information about the network connections a
    // container uses, but is primarily informational. Not specifying a port here
    // DOES NOT prevent that port from being exposed. Any port which is
    // listening on the default "0.0.0.0" address inside a container will be
    // accessible from the network.
    // Cannot be updated.
    // +optional
    // +patchMergeKey=containerPort
    // +patchStrategy=merge
    Ports []core.ContainerPort `json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"containerPort" protobuf:"bytes,5,rep,name=ports"`
    // Pod volumes to mount into the container's filesystem.
    // Cannot be updated.
    // +optional
    // +patchMergeKey=mountPath
    // +patchStrategy=merge
    VolumeMounts []core.VolumeMount `json:"volumeMounts,omitempty" patchStrategy:"merge" patchMergeKey:"mountPath" protobuf:"bytes,6,rep,name=volumeMounts"`
    // volumeDevices is the list of block devices to be used by the container.
    // This is an alpha feature and may change in the future.
    // +patchMergeKey=devicePath
    // +patchStrategy=merge
    // +optional
    VolumeDevices []core.VolumeDevice `json:"volumeDevices,omitempty" patchStrategy:"merge" patchMergeKey:"devicePath" protobuf:"bytes,7,rep,name=volumeDevices"`
    // RuntimeSettings allow to specify Resources, LivenessProbe, ReadinessProbe, Lifecycle, SecurityContext etc.
    // +optional
    RuntimeSettings *ofst.ContainerRuntimeSettings `json:"runtimeSettings,omitempty" protobuf:"bytes,8,opt,name=runtimeSettings"`
    // Name of PodSecurityPolicy(PSP) required by this function
    // +optional
    PodSecurityPolicyName string `json:"podSecurityPolicyName,omitempty" protobuf:"bytes,9,opt,name=podSecurityPolicyName"`
}

func (*FunctionSpec) DeepCopy Uses

func (in *FunctionSpec) DeepCopy() *FunctionSpec

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

func (*FunctionSpec) DeepCopyInto Uses

func (in *FunctionSpec) DeepCopyInto(out *FunctionSpec)

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

func (*FunctionSpec) Descriptor Uses

func (*FunctionSpec) Descriptor() ([]byte, []int)

func (*FunctionSpec) Marshal Uses

func (m *FunctionSpec) Marshal() (dAtA []byte, err error)

func (*FunctionSpec) MarshalTo Uses

func (m *FunctionSpec) MarshalTo(dAtA []byte) (int, error)

func (*FunctionSpec) MarshalToSizedBuffer Uses

func (m *FunctionSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FunctionSpec) ProtoMessage Uses

func (*FunctionSpec) ProtoMessage()

func (*FunctionSpec) Reset Uses

func (m *FunctionSpec) Reset()

func (*FunctionSpec) Size Uses

func (m *FunctionSpec) Size() (n int)

func (*FunctionSpec) String Uses

func (this *FunctionSpec) String() string

func (*FunctionSpec) Unmarshal Uses

func (m *FunctionSpec) Unmarshal(dAtA []byte) error

func (*FunctionSpec) XXX_DiscardUnknown Uses

func (m *FunctionSpec) XXX_DiscardUnknown()

func (*FunctionSpec) XXX_Marshal Uses

func (m *FunctionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FunctionSpec) XXX_Merge Uses

func (m *FunctionSpec) XXX_Merge(src proto.Message)

func (*FunctionSpec) XXX_Size Uses

func (m *FunctionSpec) XXX_Size() int

func (*FunctionSpec) XXX_Unmarshal Uses

func (m *FunctionSpec) XXX_Unmarshal(b []byte) error

type HostBackupPhase Uses

type HostBackupPhase string

+kubebuilder:validation:Enum=Succeeded;Failed

const (
    HostBackupSucceeded HostBackupPhase = "Succeeded"
    HostBackupFailed    HostBackupPhase = "Failed"
)

type HostBackupStats Uses

type HostBackupStats struct {
    // Hostname indicate name of the host that has been backed up
    // +optional
    Hostname string `json:"hostname,omitempty" protobuf:"bytes,1,opt,name=hostname"`
    // Phase indicates backup phase of this host
    // +optional
    Phase HostBackupPhase `json:"phase,omitempty" protobuf:"bytes,2,opt,name=phase,casttype=HostBackupPhase"`
    // Snapshots specifies the stats of individual snapshots that has been taken for this host in current backup session
    // +optional
    Snapshots []SnapshotStats `json:"snapshots,omitempty" protobuf:"bytes,3,rep,name=snapshots"`
    // Duration indicates total time taken to complete backup for this hosts
    // +optional
    Duration string `json:"duration,omitempty" protobuf:"bytes,4,opt,name=duration"`
    // Error indicates string value of error in case of backup failure
    // +optional
    Error string `json:"error,omitempty" protobuf:"bytes,5,opt,name=error"`
}

func (*HostBackupStats) DeepCopy Uses

func (in *HostBackupStats) DeepCopy() *HostBackupStats

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

func (*HostBackupStats) DeepCopyInto Uses

func (in *HostBackupStats) DeepCopyInto(out *HostBackupStats)

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

func (*HostBackupStats) Descriptor Uses

func (*HostBackupStats) Descriptor() ([]byte, []int)

func (*HostBackupStats) Marshal Uses

func (m *HostBackupStats) Marshal() (dAtA []byte, err error)

func (*HostBackupStats) MarshalTo Uses

func (m *HostBackupStats) MarshalTo(dAtA []byte) (int, error)

func (*HostBackupStats) MarshalToSizedBuffer Uses

func (m *HostBackupStats) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HostBackupStats) ProtoMessage Uses

func (*HostBackupStats) ProtoMessage()

func (*HostBackupStats) Reset Uses

func (m *HostBackupStats) Reset()

func (*HostBackupStats) Size Uses

func (m *HostBackupStats) Size() (n int)

func (*HostBackupStats) String Uses

func (this *HostBackupStats) String() string

func (*HostBackupStats) Unmarshal Uses

func (m *HostBackupStats) Unmarshal(dAtA []byte) error

func (*HostBackupStats) XXX_DiscardUnknown Uses

func (m *HostBackupStats) XXX_DiscardUnknown()

func (*HostBackupStats) XXX_Marshal Uses

func (m *HostBackupStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HostBackupStats) XXX_Merge Uses

func (m *HostBackupStats) XXX_Merge(src proto.Message)

func (*HostBackupStats) XXX_Size Uses

func (m *HostBackupStats) XXX_Size() int

func (*HostBackupStats) XXX_Unmarshal Uses

func (m *HostBackupStats) XXX_Unmarshal(b []byte) error

type HostRestorePhase Uses

type HostRestorePhase string

+kubebuilder:validation:Enum=Succeeded;Failed;Unknown

const (
    HostRestoreSucceeded HostRestorePhase = "Succeeded"
    HostRestoreFailed    HostRestorePhase = "Failed"
    HostRestoreUnknown   HostRestorePhase = "Unknown"
)

type HostRestoreStats Uses

type HostRestoreStats struct {
    // Hostname indicate name of the host that has been restored
    // +optional
    Hostname string `json:"hostname,omitempty" protobuf:"bytes,1,opt,name=hostname"`
    // Phase indicates restore phase of this host
    // +optional
    Phase HostRestorePhase `json:"phase,omitempty" protobuf:"bytes,2,opt,name=phase,casttype=HostRestorePhase"`
    // Duration indicates total time taken to complete restore for this hosts
    // +optional
    Duration string `json:"duration,omitempty" protobuf:"bytes,3,opt,name=duration"`
    // Error indicates string value of error in case of restore failure
    // +optional
    Error string `json:"error,omitempty" protobuf:"bytes,4,opt,name=error"`
}

func (*HostRestoreStats) DeepCopy Uses

func (in *HostRestoreStats) DeepCopy() *HostRestoreStats

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

func (*HostRestoreStats) DeepCopyInto Uses

func (in *HostRestoreStats) DeepCopyInto(out *HostRestoreStats)

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

func (*HostRestoreStats) Descriptor Uses

func (*HostRestoreStats) Descriptor() ([]byte, []int)

func (*HostRestoreStats) Marshal Uses

func (m *HostRestoreStats) Marshal() (dAtA []byte, err error)

func (*HostRestoreStats) MarshalTo Uses

func (m *HostRestoreStats) MarshalTo(dAtA []byte) (int, error)

func (*HostRestoreStats) MarshalToSizedBuffer Uses

func (m *HostRestoreStats) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HostRestoreStats) ProtoMessage Uses

func (*HostRestoreStats) ProtoMessage()

func (*HostRestoreStats) Reset Uses

func (m *HostRestoreStats) Reset()

func (*HostRestoreStats) Size Uses

func (m *HostRestoreStats) Size() (n int)

func (*HostRestoreStats) String Uses

func (this *HostRestoreStats) String() string

func (*HostRestoreStats) Unmarshal Uses

func (m *HostRestoreStats) Unmarshal(dAtA []byte) error

func (*HostRestoreStats) XXX_DiscardUnknown Uses

func (m *HostRestoreStats) XXX_DiscardUnknown()

func (*HostRestoreStats) XXX_Marshal Uses

func (m *HostRestoreStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HostRestoreStats) XXX_Merge Uses

func (m *HostRestoreStats) XXX_Merge(src proto.Message)

func (*HostRestoreStats) XXX_Size Uses

func (m *HostRestoreStats) XXX_Size() int

func (*HostRestoreStats) XXX_Unmarshal Uses

func (m *HostRestoreStats) XXX_Unmarshal(b []byte) error

type MemberConditions Uses

type MemberConditions struct {
    // Target is the reference to the respective target whose condition is shown here.
    Target TargetRef `json:"target" protobuf:"bytes,1,opt,name=target"`
    // Conditions shows current backup setup condition of this member.
    // +optional
    Conditions []kmapi.Condition `json:"conditions,omitempty" protobuf:"bytes,2,rep,name=conditions"`
}

func (*MemberConditions) DeepCopy Uses

func (in *MemberConditions) DeepCopy() *MemberConditions

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

func (*MemberConditions) DeepCopyInto Uses

func (in *MemberConditions) DeepCopyInto(out *MemberConditions)

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

func (*MemberConditions) Descriptor Uses

func (*MemberConditions) Descriptor() ([]byte, []int)

func (*MemberConditions) Marshal Uses

func (m *MemberConditions) Marshal() (dAtA []byte, err error)

func (*MemberConditions) MarshalTo Uses

func (m *MemberConditions) MarshalTo(dAtA []byte) (int, error)

func (*MemberConditions) MarshalToSizedBuffer Uses

func (m *MemberConditions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MemberConditions) ProtoMessage Uses

func (*MemberConditions) ProtoMessage()

func (*MemberConditions) Reset Uses

func (m *MemberConditions) Reset()

func (*MemberConditions) Size Uses

func (m *MemberConditions) Size() (n int)

func (*MemberConditions) String Uses

func (this *MemberConditions) String() string

func (*MemberConditions) Unmarshal Uses

func (m *MemberConditions) Unmarshal(dAtA []byte) error

func (*MemberConditions) XXX_DiscardUnknown Uses

func (m *MemberConditions) XXX_DiscardUnknown()

func (*MemberConditions) XXX_Marshal Uses

func (m *MemberConditions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MemberConditions) XXX_Merge Uses

func (m *MemberConditions) XXX_Merge(src proto.Message)

func (*MemberConditions) XXX_Size Uses

func (m *MemberConditions) XXX_Size() int

func (*MemberConditions) XXX_Unmarshal Uses

func (m *MemberConditions) XXX_Unmarshal(b []byte) error

type Param Uses

type Param struct {
    Name  string `json:"name" protobuf:"bytes,1,opt,name=name"`
    Value string `json:"value" protobuf:"bytes,2,opt,name=value"`
}

Param declares a value to use for the Param called Name.

func (*Param) DeepCopy Uses

func (in *Param) DeepCopy() *Param

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

func (*Param) DeepCopyInto Uses

func (in *Param) DeepCopyInto(out *Param)

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

func (*Param) Descriptor Uses

func (*Param) Descriptor() ([]byte, []int)

func (*Param) Marshal Uses

func (m *Param) Marshal() (dAtA []byte, err error)

func (*Param) MarshalTo Uses

func (m *Param) MarshalTo(dAtA []byte) (int, error)

func (*Param) MarshalToSizedBuffer Uses

func (m *Param) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Param) ProtoMessage Uses

func (*Param) ProtoMessage()

func (*Param) Reset Uses

func (m *Param) Reset()

func (*Param) Size Uses

func (m *Param) Size() (n int)

func (*Param) String Uses

func (this *Param) String() string

func (*Param) Unmarshal Uses

func (m *Param) Unmarshal(dAtA []byte) error

func (*Param) XXX_DiscardUnknown Uses

func (m *Param) XXX_DiscardUnknown()

func (*Param) XXX_Marshal Uses

func (m *Param) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Param) XXX_Merge Uses

func (m *Param) XXX_Merge(src proto.Message)

func (*Param) XXX_Size Uses

func (m *Param) XXX_Size() int

func (*Param) XXX_Unmarshal Uses

func (m *Param) XXX_Unmarshal(b []byte) error

type RestoreBatch Uses

type RestoreBatch struct {
    metav1.TypeMeta   `json:",inline,omitempty"`
    metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    Spec              RestoreBatchSpec   `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
    Status            RestoreBatchStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=restorebatches,singular=restorebatch,categories={stash,appscode,all} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Repository",type="string",JSONPath=".spec.repository.name" +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (RestoreBatch) CustomResourceDefinition Uses

func (_ RestoreBatch) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*RestoreBatch) DeepCopy Uses

func (in *RestoreBatch) DeepCopy() *RestoreBatch

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

func (*RestoreBatch) DeepCopyInto Uses

func (in *RestoreBatch) DeepCopyInto(out *RestoreBatch)

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

func (*RestoreBatch) DeepCopyObject Uses

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

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

func (*RestoreBatch) Descriptor Uses

func (*RestoreBatch) Descriptor() ([]byte, []int)

func (RestoreBatch) GetSpecHash Uses

func (b RestoreBatch) GetSpecHash() string

func (*RestoreBatch) Marshal Uses

func (m *RestoreBatch) Marshal() (dAtA []byte, err error)

func (*RestoreBatch) MarshalTo Uses

func (m *RestoreBatch) MarshalTo(dAtA []byte) (int, error)

func (*RestoreBatch) MarshalToSizedBuffer Uses

func (m *RestoreBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (RestoreBatch) OffshootLabels Uses

func (b RestoreBatch) OffshootLabels() map[string]string

OffshootLabels return labels consist of the labels provided by user to RestoreBatch crd and stash specific generic labels. It overwrites the the user provided labels if it matched with stash specific generic labels.

func (*RestoreBatch) ProtoMessage Uses

func (*RestoreBatch) ProtoMessage()

func (*RestoreBatch) Reset Uses

func (m *RestoreBatch) Reset()

func (*RestoreBatch) Size Uses

func (m *RestoreBatch) Size() (n int)

func (*RestoreBatch) String Uses

func (this *RestoreBatch) String() string

func (*RestoreBatch) Unmarshal Uses

func (m *RestoreBatch) Unmarshal(dAtA []byte) error

func (*RestoreBatch) XXX_DiscardUnknown Uses

func (m *RestoreBatch) XXX_DiscardUnknown()

func (*RestoreBatch) XXX_Marshal Uses

func (m *RestoreBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestoreBatch) XXX_Merge Uses

func (m *RestoreBatch) XXX_Merge(src proto.Message)

func (*RestoreBatch) XXX_Size Uses

func (m *RestoreBatch) XXX_Size() int

func (*RestoreBatch) XXX_Unmarshal Uses

func (m *RestoreBatch) XXX_Unmarshal(b []byte) error

type RestoreBatchList Uses

type RestoreBatchList struct {
    metav1.TypeMeta `json:",inline"`
    metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    Items           []RestoreBatch `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"`
}

func (*RestoreBatchList) DeepCopy Uses

func (in *RestoreBatchList) DeepCopy() *RestoreBatchList

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

func (*RestoreBatchList) DeepCopyInto Uses

func (in *RestoreBatchList) DeepCopyInto(out *RestoreBatchList)

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

func (*RestoreBatchList) DeepCopyObject Uses

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

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

func (*RestoreBatchList) Descriptor Uses

func (*RestoreBatchList) Descriptor() ([]byte, []int)

func (*RestoreBatchList) Marshal Uses

func (m *RestoreBatchList) Marshal() (dAtA []byte, err error)

func (*RestoreBatchList) MarshalTo Uses

func (m *RestoreBatchList) MarshalTo(dAtA []byte) (int, error)

func (*RestoreBatchList) MarshalToSizedBuffer Uses

func (m *RestoreBatchList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RestoreBatchList) ProtoMessage Uses

func (*RestoreBatchList) ProtoMessage()

func (*RestoreBatchList) Reset Uses

func (m *RestoreBatchList) Reset()

func (*RestoreBatchList) Size Uses

func (m *RestoreBatchList) Size() (n int)

func (*RestoreBatchList) String Uses

func (this *RestoreBatchList) String() string

func (*RestoreBatchList) Unmarshal Uses

func (m *RestoreBatchList) Unmarshal(dAtA []byte) error

func (*RestoreBatchList) XXX_DiscardUnknown Uses

func (m *RestoreBatchList) XXX_DiscardUnknown()

func (*RestoreBatchList) XXX_Marshal Uses

func (m *RestoreBatchList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestoreBatchList) XXX_Merge Uses

func (m *RestoreBatchList) XXX_Merge(src proto.Message)

func (*RestoreBatchList) XXX_Size Uses

func (m *RestoreBatchList) XXX_Size() int

func (*RestoreBatchList) XXX_Unmarshal Uses

func (m *RestoreBatchList) XXX_Unmarshal(b []byte) error

type RestoreBatchSpec Uses

type RestoreBatchSpec struct {
    // Driver indicates the name of the agent to use to restore the target.
    // Supported values are "Restic", "VolumeSnapshotter".
    // Default value is "Restic".
    // +optional
    // +kubebuilder:default=Restic
    Driver Snapshotter `json:"driver,omitempty" protobuf:"bytes,1,opt,name=driver,casttype=Snapshotter"`
    // Repository refer to the Repository crd that holds backend information
    // +optional
    Repository core.LocalObjectReference `json:"repository,omitempty" protobuf:"bytes,2,opt,name=repository"`
    // Members is a list of restore targets and their configuration that are part of this batch
    // +optional
    Members []RestoreTargetSpec `json:"members,omitempty" protobuf:"bytes,3,rep,name=members"`
    // ExecutionOrder indicate whether to restore the members in the sequential order as they appear in the members list.
    // The default value is "Parallel" which means the members will be restored in parallel.
    // +kubebuilder:default=Parallel
    // +optional
    ExecutionOrder ExecutionOrder `json:"executionOrder,omitempty" protobuf:"bytes,4,opt,name=executionOrder"`
    // Hooks specifies the actions that Stash should take before or after restore.
    // Cannot be updated.
    // +optional
    Hooks *RestoreHooks `json:"hooks,omitempty" protobuf:"bytes,5,opt,name=hooks"`
}

func (*RestoreBatchSpec) DeepCopy Uses

func (in *RestoreBatchSpec) DeepCopy() *RestoreBatchSpec

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

func (*RestoreBatchSpec) DeepCopyInto Uses

func (in *RestoreBatchSpec) DeepCopyInto(out *RestoreBatchSpec)

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

func (*RestoreBatchSpec) Descriptor Uses

func (*RestoreBatchSpec) Descriptor() ([]byte, []int)

func (*RestoreBatchSpec) Marshal Uses

func (m *RestoreBatchSpec) Marshal() (dAtA []byte, err error)

func (*RestoreBatchSpec) MarshalTo Uses

func (m *RestoreBatchSpec) MarshalTo(dAtA []byte) (int, error)

func (*RestoreBatchSpec) MarshalToSizedBuffer Uses

func (m *RestoreBatchSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RestoreBatchSpec) ProtoMessage Uses

func (*RestoreBatchSpec) ProtoMessage()

func (*RestoreBatchSpec) Reset Uses

func (m *RestoreBatchSpec) Reset()

func (*RestoreBatchSpec) Size Uses

func (m *RestoreBatchSpec) Size() (n int)

func (*RestoreBatchSpec) String Uses

func (this *RestoreBatchSpec) String() string

func (*RestoreBatchSpec) Unmarshal Uses

func (m *RestoreBatchSpec) Unmarshal(dAtA []byte) error

func (*RestoreBatchSpec) XXX_DiscardUnknown Uses

func (m *RestoreBatchSpec) XXX_DiscardUnknown()

func (*RestoreBatchSpec) XXX_Marshal Uses

func (m *RestoreBatchSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestoreBatchSpec) XXX_Merge Uses

func (m *RestoreBatchSpec) XXX_Merge(src proto.Message)

func (*RestoreBatchSpec) XXX_Size Uses

func (m *RestoreBatchSpec) XXX_Size() int

func (*RestoreBatchSpec) XXX_Unmarshal Uses

func (m *RestoreBatchSpec) XXX_Unmarshal(b []byte) error

type RestoreBatchStatus Uses

type RestoreBatchStatus struct {
    // Phase indicates the overall phase of the restore process for this RestoreBatch. Phase will be "Succeeded" only if
    // phase of all members are "Succeeded". If the restore process fail for any of the members, Phase will be "Failed".
    // +optional
    Phase RestorePhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=RestorePhase"`
    // SessionDuration specify total time taken to complete restore of all the members.
    // +optional
    SessionDuration string `json:"sessionDuration,omitempty" protobuf:"bytes,2,opt,name=sessionDuration"`
    // Conditions shows the condition of different steps for the RestoreBatch.
    // +optional
    Conditions []kmapi.Condition `json:"conditions,omitempty" protobuf:"bytes,3,rep,name=conditions"`
    // Members shows the restore status for the members of the RestoreBatch.
    // +optional
    Members []RestoreMemberStatus `json:"members,omitempty" protobuf:"bytes,4,rep,name=members"`
}

func (*RestoreBatchStatus) DeepCopy Uses

func (in *RestoreBatchStatus) DeepCopy() *RestoreBatchStatus

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

func (*RestoreBatchStatus) DeepCopyInto Uses

func (in *RestoreBatchStatus) DeepCopyInto(out *RestoreBatchStatus)

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

func (*RestoreBatchStatus) Descriptor Uses

func (*RestoreBatchStatus) Descriptor() ([]byte, []int)

func (*RestoreBatchStatus) Marshal Uses

func (m *RestoreBatchStatus) Marshal() (dAtA []byte, err error)

func (*RestoreBatchStatus) MarshalTo Uses

func (m *RestoreBatchStatus) MarshalTo(dAtA []byte) (int, error)

func (*RestoreBatchStatus) MarshalToSizedBuffer Uses

func (m *RestoreBatchStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RestoreBatchStatus) ProtoMessage Uses

func (*RestoreBatchStatus) ProtoMessage()

func (*RestoreBatchStatus) Reset Uses

func (m *RestoreBatchStatus) Reset()

func (*RestoreBatchStatus) Size Uses

func (m *RestoreBatchStatus) Size() (n int)

func (*RestoreBatchStatus) String Uses

func (this *RestoreBatchStatus) String() string

func (*RestoreBatchStatus) Unmarshal Uses

func (m *RestoreBatchStatus) Unmarshal(dAtA []byte) error

func (*RestoreBatchStatus) XXX_DiscardUnknown Uses

func (m *RestoreBatchStatus) XXX_DiscardUnknown()

func (*RestoreBatchStatus) XXX_Marshal Uses

func (m *RestoreBatchStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestoreBatchStatus) XXX_Merge Uses

func (m *RestoreBatchStatus) XXX_Merge(src proto.Message)

func (*RestoreBatchStatus) XXX_Size Uses

func (m *RestoreBatchStatus) XXX_Size() int

func (*RestoreBatchStatus) XXX_Unmarshal Uses

func (m *RestoreBatchStatus) XXX_Unmarshal(b []byte) error

type RestoreHooks Uses

type RestoreHooks struct {
    // PreRestore is called immediately before a restore session is initiated.
    // +optional
    PreRestore *prober.Handler `json:"preRestore,omitempty" protobuf:"bytes,1,opt,name=preRestore"`

    // PostRestore is called immediately after a restore session is complete.
    // +optional
    PostRestore *prober.Handler `json:"postRestore,omitempty" protobuf:"bytes,2,opt,name=postRestore"`
}

Hooks describes actions that Stash should take in response to restore sessions. For the PostRestore and PreRestore handlers, restore process blocks until the action is complete, unless the container process fails, in which case the handler is aborted.

func (*RestoreHooks) DeepCopy Uses

func (in *RestoreHooks) DeepCopy() *RestoreHooks

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

func (*RestoreHooks) DeepCopyInto Uses

func (in *RestoreHooks) DeepCopyInto(out *RestoreHooks)

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

func (*RestoreHooks) Descriptor Uses

func (*RestoreHooks) Descriptor() ([]byte, []int)

func (*RestoreHooks) Marshal Uses

func (m *RestoreHooks) Marshal() (dAtA []byte, err error)

func (*RestoreHooks) MarshalTo Uses

func (m *RestoreHooks) MarshalTo(dAtA []byte) (int, error)

func (*RestoreHooks) MarshalToSizedBuffer Uses

func (m *RestoreHooks) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RestoreHooks) ProtoMessage Uses

func (*RestoreHooks) ProtoMessage()

func (*RestoreHooks) Reset Uses

func (m *RestoreHooks) Reset()

func (*RestoreHooks) Size Uses

func (m *RestoreHooks) Size() (n int)

func (*RestoreHooks) String Uses

func (this *RestoreHooks) String() string

func (*RestoreHooks) Unmarshal Uses

func (m *RestoreHooks) Unmarshal(dAtA []byte) error

func (*RestoreHooks) XXX_DiscardUnknown Uses

func (m *RestoreHooks) XXX_DiscardUnknown()

func (*RestoreHooks) XXX_Marshal Uses

func (m *RestoreHooks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestoreHooks) XXX_Merge Uses

func (m *RestoreHooks) XXX_Merge(src proto.Message)

func (*RestoreHooks) XXX_Size Uses

func (m *RestoreHooks) XXX_Size() int

func (*RestoreHooks) XXX_Unmarshal Uses

func (m *RestoreHooks) XXX_Unmarshal(b []byte) error

type RestoreMemberStatus Uses

type RestoreMemberStatus struct {
    // Ref is the reference to the respective target whose status is shown here.
    Ref TargetRef `json:"ref" protobuf:"bytes,1,opt,name=ref"`
    // Conditions shows the condition of different steps to restore this member.
    // +optional
    Conditions []kmapi.Condition `json:"conditions,omitempty" protobuf:"bytes,2,rep,name=conditions"`
    // TotalHosts specifies total number of hosts that will be restored for this member.
    // +optional
    TotalHosts *int32 `json:"totalHosts,omitempty" protobuf:"varint,3,opt,name=totalHosts"`
    // Phase indicates restore phase of this member
    // +optional
    Phase RestoreTargetPhase `json:"phase,omitempty" protobuf:"bytes,4,opt,name=phase"`
    // Stats shows restore statistics of individual hosts for this member
    // +optional
    Stats []HostRestoreStats `json:"stats,omitempty" protobuf:"bytes,5,rep,name=stats"`
}

func (*RestoreMemberStatus) DeepCopy Uses

func (in *RestoreMemberStatus) DeepCopy() *RestoreMemberStatus

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

func (*RestoreMemberStatus) DeepCopyInto Uses

func (in *RestoreMemberStatus) DeepCopyInto(out *RestoreMemberStatus)

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

func (*RestoreMemberStatus) Descriptor Uses

func (*RestoreMemberStatus) Descriptor() ([]byte, []int)

func (*RestoreMemberStatus) Marshal Uses

func (m *RestoreMemberStatus) Marshal() (dAtA []byte, err error)

func (*RestoreMemberStatus) MarshalTo Uses

func (m *RestoreMemberStatus) MarshalTo(dAtA []byte) (int, error)

func (*RestoreMemberStatus) MarshalToSizedBuffer Uses

func (m *RestoreMemberStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RestoreMemberStatus) ProtoMessage Uses

func (*RestoreMemberStatus) ProtoMessage()

func (*RestoreMemberStatus) Reset Uses

func (m *RestoreMemberStatus) Reset()

func (*RestoreMemberStatus) Size Uses

func (m *RestoreMemberStatus) Size() (n int)

func (*RestoreMemberStatus) String Uses

func (this *RestoreMemberStatus) String() string

func (*RestoreMemberStatus) Unmarshal Uses

func (m *RestoreMemberStatus) Unmarshal(dAtA []byte) error

func (*RestoreMemberStatus) XXX_DiscardUnknown Uses

func (m *RestoreMemberStatus) XXX_DiscardUnknown()

func (*RestoreMemberStatus) XXX_Marshal Uses

func (m *RestoreMemberStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestoreMemberStatus) XXX_Merge Uses

func (m *RestoreMemberStatus) XXX_Merge(src proto.Message)

func (*RestoreMemberStatus) XXX_Size Uses

func (m *RestoreMemberStatus) XXX_Size() int

func (*RestoreMemberStatus) XXX_Unmarshal Uses

func (m *RestoreMemberStatus) XXX_Unmarshal(b []byte) error

type RestorePhase Uses

type RestorePhase string

+kubebuilder:validation:Enum=Pending;Running;Succeeded;Failed;Unknown

const (
    RestorePending      RestorePhase = "Pending"
    RestoreRunning      RestorePhase = "Running"
    RestoreSucceeded    RestorePhase = "Succeeded"
    RestoreFailed       RestorePhase = "Failed"
    RestorePhaseUnknown RestorePhase = "Unknown"
)

type RestoreSession Uses

type RestoreSession struct {
    metav1.TypeMeta   `json:",inline,omitempty"`
    metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    Spec              RestoreSessionSpec   `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
    Status            RestoreSessionStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=restoresessions,singular=restoresession,shortName=restore,categories={stash,appscode,all} +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Repository",type="string",JSONPath=".spec.repository.name" +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (RestoreSession) CustomResourceDefinition Uses

func (_ RestoreSession) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*RestoreSession) DeepCopy Uses

func (in *RestoreSession) DeepCopy() *RestoreSession

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

func (*RestoreSession) DeepCopyInto Uses

func (in *RestoreSession) DeepCopyInto(out *RestoreSession)

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

func (*RestoreSession) DeepCopyObject Uses

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

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

func (*RestoreSession) Descriptor Uses

func (*RestoreSession) Descriptor() ([]byte, []int)

func (RestoreSession) GetSpecHash Uses

func (r RestoreSession) GetSpecHash() string

func (RestoreSession) IsValid Uses

func (r RestoreSession) IsValid() error

TODO: complete

func (*RestoreSession) Marshal Uses

func (m *RestoreSession) Marshal() (dAtA []byte, err error)

func (*RestoreSession) MarshalTo Uses

func (m *RestoreSession) MarshalTo(dAtA []byte) (int, error)

func (*RestoreSession) MarshalToSizedBuffer Uses

func (m *RestoreSession) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RestoreSession) Migrate Uses

func (r *RestoreSession) Migrate()

Migrate moved deprecated fields into the appropriate fields

func (RestoreSession) OffshootLabels Uses

func (r RestoreSession) OffshootLabels() map[string]string

OffshootLabels return labels consist of the labels provided by user to BackupConfiguration crd and stash specific generic labels. It overwrites the the user provided labels if it matched with stash specific generic labels.

func (*RestoreSession) ProtoMessage Uses

func (*RestoreSession) ProtoMessage()

func (*RestoreSession) Reset Uses

func (m *RestoreSession) Reset()

func (*RestoreSession) Size Uses

func (m *RestoreSession) Size() (n int)

func (*RestoreSession) String Uses

func (this *RestoreSession) String() string

func (*RestoreSession) Unmarshal Uses

func (m *RestoreSession) Unmarshal(dAtA []byte) error

func (*RestoreSession) XXX_DiscardUnknown Uses

func (m *RestoreSession) XXX_DiscardUnknown()

func (*RestoreSession) XXX_Marshal Uses

func (m *RestoreSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestoreSession) XXX_Merge Uses

func (m *RestoreSession) XXX_Merge(src proto.Message)

func (*RestoreSession) XXX_Size Uses

func (m *RestoreSession) XXX_Size() int

func (*RestoreSession) XXX_Unmarshal Uses

func (m *RestoreSession) XXX_Unmarshal(b []byte) error

type RestoreSessionList Uses

type RestoreSessionList struct {
    metav1.TypeMeta `json:",inline"`
    metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    Items           []RestoreSession `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"`
}

func (*RestoreSessionList) DeepCopy Uses

func (in *RestoreSessionList) DeepCopy() *RestoreSessionList

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

func (*RestoreSessionList) DeepCopyInto Uses

func (in *RestoreSessionList) DeepCopyInto(out *RestoreSessionList)

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

func (*RestoreSessionList) DeepCopyObject Uses

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

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

func (*RestoreSessionList) Descriptor Uses

func (*RestoreSessionList) Descriptor() ([]byte, []int)

func (*RestoreSessionList) Marshal Uses

func (m *RestoreSessionList) Marshal() (dAtA []byte, err error)

func (*RestoreSessionList) MarshalTo Uses

func (m *RestoreSessionList) MarshalTo(dAtA []byte) (int, error)

func (*RestoreSessionList) MarshalToSizedBuffer Uses

func (m *RestoreSessionList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RestoreSessionList) ProtoMessage Uses

func (*RestoreSessionList) ProtoMessage()

func (*RestoreSessionList) Reset Uses

func (m *RestoreSessionList) Reset()

func (*RestoreSessionList) Size Uses

func (m *RestoreSessionList) Size() (n int)

func (*RestoreSessionList) String Uses

func (this *RestoreSessionList) String() string

func (*RestoreSessionList) Unmarshal Uses

func (m *RestoreSessionList) Unmarshal(dAtA []byte) error

func (*RestoreSessionList) XXX_DiscardUnknown Uses

func (m *RestoreSessionList) XXX_DiscardUnknown()

func (*RestoreSessionList) XXX_Marshal Uses

func (m *RestoreSessionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestoreSessionList) XXX_Merge Uses

func (m *RestoreSessionList) XXX_Merge(src proto.Message)

func (*RestoreSessionList) XXX_Size Uses

func (m *RestoreSessionList) XXX_Size() int

func (*RestoreSessionList) XXX_Unmarshal Uses

func (m *RestoreSessionList) XXX_Unmarshal(b []byte) error

type RestoreSessionSpec Uses

type RestoreSessionSpec struct {
    RestoreTargetSpec `json:",inline,omitempty" protobuf:"bytes,1,opt,name=restoreTargetSpec"`
    // Driver indicates the name of the agent to use to restore the target.
    // Supported values are "Restic", "VolumeSnapshotter".
    // Default value is "Restic".
    // +optional
    // +kubebuilder:default=Restic
    Driver Snapshotter `json:"driver,omitempty" protobuf:"bytes,2,opt,name=driver,casttype=Snapshotter"`
    // Repository refer to the Repository crd that hold backend information
    // +optional
    Repository core.LocalObjectReference `json:"repository,omitempty" protobuf:"bytes,3,opt,name=repository"`
    // Rules specifies different restore options for different hosts
    // +optional
    // Deprecated. Use rules section inside `target`.
    Rules []Rule `json:"rules,omitempty" protobuf:"bytes,4,rep,name=rules"`
}

func (*RestoreSessionSpec) DeepCopy Uses

func (in *RestoreSessionSpec) DeepCopy() *RestoreSessionSpec

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

func (*RestoreSessionSpec) DeepCopyInto Uses

func (in *RestoreSessionSpec) DeepCopyInto(out *RestoreSessionSpec)

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

func (*RestoreSessionSpec) Descriptor Uses

func (*RestoreSessionSpec) Descriptor() ([]byte, []int)

func (*RestoreSessionSpec) Marshal Uses

func (m *RestoreSessionSpec) Marshal() (dAtA []byte, err error)

func (*RestoreSessionSpec) MarshalTo Uses

func (m *RestoreSessionSpec) MarshalTo(dAtA []byte) (int, error)

func (*RestoreSessionSpec) MarshalToSizedBuffer Uses

func (m *RestoreSessionSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RestoreSessionSpec) ProtoMessage Uses

func (*RestoreSessionSpec) ProtoMessage()

func (*RestoreSessionSpec) Reset Uses

func (m *RestoreSessionSpec) Reset()

func (*RestoreSessionSpec) Size Uses

func (m *RestoreSessionSpec) Size() (n int)

func (*RestoreSessionSpec) String Uses

func (this *RestoreSessionSpec) String() string

func (*RestoreSessionSpec) Unmarshal Uses

func (m *RestoreSessionSpec) Unmarshal(dAtA []byte) error

func (*RestoreSessionSpec) XXX_DiscardUnknown Uses

func (m *RestoreSessionSpec) XXX_DiscardUnknown()

func (*RestoreSessionSpec) XXX_Marshal Uses

func (m *RestoreSessionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestoreSessionSpec) XXX_Merge Uses

func (m *RestoreSessionSpec) XXX_Merge(src proto.Message)

func (*RestoreSessionSpec) XXX_Size Uses

func (m *RestoreSessionSpec) XXX_Size() int

func (*RestoreSessionSpec) XXX_Unmarshal Uses

func (m *RestoreSessionSpec) XXX_Unmarshal(b []byte) error

type RestoreSessionStatus Uses

type RestoreSessionStatus struct {
    // Phase indicates the overall phase of the restore process for this RestoreSession. Phase will be "Succeeded" only if
    // phase of all hosts are "Succeeded". If any of the host fail to complete restore, Phase will be "Failed".
    // +optional
    Phase RestorePhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=RestorePhase"`
    // TotalHosts specifies total number of hosts that will be restored for this RestoreSession
    // +optional
    TotalHosts *int32 `json:"totalHosts,omitempty" protobuf:"varint,2,opt,name=totalHosts"`
    // SessionDuration specify total time taken to complete current restore session (sum of restore duration of all hosts)
    // +optional
    SessionDuration string `json:"sessionDuration,omitempty" protobuf:"bytes,3,opt,name=sessionDuration"`
    // Stats shows statistics of individual hosts for this restore session
    // +optional
    Stats []HostRestoreStats `json:"stats,omitempty" protobuf:"bytes,4,rep,name=stats"`
    // Conditions shows current restore condition of the RestoreSession.
    // +optional
    Conditions []kmapi.Condition `json:"conditions,omitempty" protobuf:"bytes,5,rep,name=conditions"`
}

func (*RestoreSessionStatus) DeepCopy Uses

func (in *RestoreSessionStatus) DeepCopy() *RestoreSessionStatus

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

func (*RestoreSessionStatus) DeepCopyInto Uses

func (in *RestoreSessionStatus) DeepCopyInto(out *RestoreSessionStatus)

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

func (*RestoreSessionStatus) Descriptor Uses

func (*RestoreSessionStatus) Descriptor() ([]byte, []int)

func (*RestoreSessionStatus) Marshal Uses

func (m *RestoreSessionStatus) Marshal() (dAtA []byte, err error)

func (*RestoreSessionStatus) MarshalTo Uses

func (m *RestoreSessionStatus) MarshalTo(dAtA []byte) (int, error)

func (*RestoreSessionStatus) MarshalToSizedBuffer Uses

func (m *RestoreSessionStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RestoreSessionStatus) ProtoMessage Uses

func (*RestoreSessionStatus) ProtoMessage()

func (*RestoreSessionStatus) Reset Uses

func (m *RestoreSessionStatus) Reset()

func (*RestoreSessionStatus) Size Uses

func (m *RestoreSessionStatus) Size() (n int)

func (*RestoreSessionStatus) String Uses

func (this *RestoreSessionStatus) String() string

func (*RestoreSessionStatus) Unmarshal Uses

func (m *RestoreSessionStatus) Unmarshal(dAtA []byte) error

func (*RestoreSessionStatus) XXX_DiscardUnknown Uses

func (m *RestoreSessionStatus) XXX_DiscardUnknown()

func (*RestoreSessionStatus) XXX_Marshal Uses

func (m *RestoreSessionStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestoreSessionStatus) XXX_Merge Uses

func (m *RestoreSessionStatus) XXX_Merge(src proto.Message)

func (*RestoreSessionStatus) XXX_Size Uses

func (m *RestoreSessionStatus) XXX_Size() int

func (*RestoreSessionStatus) XXX_Unmarshal Uses

func (m *RestoreSessionStatus) XXX_Unmarshal(b []byte) error

type RestoreTarget Uses

type RestoreTarget struct {
    // Alias represents the identifier of the backed up data in the repository.
    // This will be used as `sourceHost` and `targetHosts` or will be used to generate them.
    // +optional
    Alias string `json:"alias,omitempty" protobuf:"bytes,1,opt,name=alias"`
    // Ref refers to the restore,target
    Ref TargetRef `json:"ref,omitempty" protobuf:"bytes,2,opt,name=ref"`
    // VolumeMounts specifies the volumes to mount inside stash sidecar/init container
    // Specify the volumes that contains the target directories
    // +optional
    VolumeMounts []core.VolumeMount `json:"volumeMounts,omitempty" protobuf:"bytes,3,rep,name=volumeMounts"`
    // replicas is the desired number of replicas of the given Template.
    // These are replicas in the sense that they are instantiations of the
    // same Template, but individual replicas also have a consistent identity.
    // If unspecified, defaults to 1.
    // +optional
    Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,4,opt,name=replicas"`
    // volumeClaimTemplates is a list of claims that will be created while restore from VolumeSnapshot
    // +optional
    VolumeClaimTemplates []ofst.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty" protobuf:"bytes,5,rep,name=volumeClaimTemplates"`
    // Rules specifies different restore options for different hosts
    // +optional
    Rules []Rule `json:"rules,omitempty" protobuf:"bytes,6,rep,name=rules"`
}

func (*RestoreTarget) DeepCopy Uses

func (in *RestoreTarget) DeepCopy() *RestoreTarget

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

func (*RestoreTarget) DeepCopyInto Uses

func (in *RestoreTarget) DeepCopyInto(out *RestoreTarget)

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

func (*RestoreTarget) Descriptor Uses

func (*RestoreTarget) Descriptor() ([]byte, []int)

func (*RestoreTarget) Marshal Uses

func (m *RestoreTarget) Marshal() (dAtA []byte, err error)

func (*RestoreTarget) MarshalTo Uses

func (m *RestoreTarget) MarshalTo(dAtA []byte) (int, error)

func (*RestoreTarget) MarshalToSizedBuffer Uses

func (m *RestoreTarget) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RestoreTarget) ProtoMessage Uses

func (*RestoreTarget) ProtoMessage()

func (*RestoreTarget) Reset Uses

func (m *RestoreTarget) Reset()

func (*RestoreTarget) Size Uses

func (m *RestoreTarget) Size() (n int)

func (*RestoreTarget) String Uses

func (this *RestoreTarget) String() string

func (*RestoreTarget) Unmarshal Uses

func (m *RestoreTarget) Unmarshal(dAtA []byte) error

func (*RestoreTarget) XXX_DiscardUnknown Uses

func (m *RestoreTarget) XXX_DiscardUnknown()

func (*RestoreTarget) XXX_Marshal Uses

func (m *RestoreTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestoreTarget) XXX_Merge Uses

func (m *RestoreTarget) XXX_Merge(src proto.Message)

func (*RestoreTarget) XXX_Size Uses

func (m *RestoreTarget) XXX_Size() int

func (*RestoreTarget) XXX_Unmarshal Uses

func (m *RestoreTarget) XXX_Unmarshal(b []byte) error

type RestoreTargetPhase Uses

type RestoreTargetPhase string

+kubebuilder:validation:Enum=Pending;Succeeded;Running;Failed

const (
    TargetRestorePending      RestoreTargetPhase = "Pending"
    TargetRestoreRunning      RestoreTargetPhase = "Running"
    TargetRestoreSucceeded    RestoreTargetPhase = "Succeeded"
    TargetRestoreFailed       RestoreTargetPhase = "Failed"
    TargetRestorePhaseUnknown RestoreTargetPhase = "Unknown"
)

type RestoreTargetSpec Uses

type RestoreTargetSpec struct {
    // Task specify the Task crd that specifies the steps for recovery process
    // +optional
    Task TaskRef `json:"task,omitempty" protobuf:"bytes,1,opt,name=task"`
    // Target indicates the target where the recovered data will be stored
    // +optional
    Target *RestoreTarget `json:"target,omitempty" protobuf:"bytes,2,opt,name=target"`
    // RuntimeSettings allow to specify Resources, NodeSelector, Affinity, Toleration, ReadinessProbe etc.
    // +optional
    RuntimeSettings ofst.RuntimeSettings `json:"runtimeSettings,omitempty" protobuf:"bytes,3,opt,name=runtimeSettings"`
    // Temp directory configuration for functions/sidecar
    // An `EmptyDir` will always be mounted at /tmp with this settings
    // +optional
    TempDir EmptyDirSettings `json:"tempDir,omitempty" protobuf:"bytes,4,opt,name=tempDir"`
    // InterimVolumeTemplate specifies a template for a volume to hold targeted data temporarily
    // before uploading to backend or inserting into target. It is only usable for job model.
    // Don't specify it in sidecar model.
    // +optional
    InterimVolumeTemplate *ofst.PersistentVolumeClaim `json:"interimVolumeTemplate,omitempty" protobuf:"bytes,5,opt,name=interimVolumeTemplate"`
    // Actions that Stash should take in response to restore sessions.
    // +optional
    Hooks *RestoreHooks `json:"hooks,omitempty" protobuf:"bytes,6,opt,name=hooks"`
}

func (*RestoreTargetSpec) DeepCopy Uses

func (in *RestoreTargetSpec) DeepCopy() *RestoreTargetSpec

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

func (*RestoreTargetSpec) DeepCopyInto Uses

func (in *RestoreTargetSpec) DeepCopyInto(out *RestoreTargetSpec)

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

func (*RestoreTargetSpec) Descriptor Uses

func (*RestoreTargetSpec) Descriptor() ([]byte, []int)

func (*RestoreTargetSpec) Marshal Uses

func (m *RestoreTargetSpec) Marshal() (dAtA []byte, err error)

func (*RestoreTargetSpec) MarshalTo Uses

func (m *RestoreTargetSpec) MarshalTo(dAtA []byte) (int, error)

func (*RestoreTargetSpec) MarshalToSizedBuffer Uses

func (m *RestoreTargetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RestoreTargetSpec) ProtoMessage Uses

func (*RestoreTargetSpec) ProtoMessage()

func (*RestoreTargetSpec) Reset Uses

func (m *RestoreTargetSpec) Reset()

func (*RestoreTargetSpec) Size Uses

func (m *RestoreTargetSpec) Size() (n int)

func (*RestoreTargetSpec) String Uses

func (this *RestoreTargetSpec) String() string

func (*RestoreTargetSpec) Unmarshal Uses

func (m *RestoreTargetSpec) Unmarshal(dAtA []byte) error

func (*RestoreTargetSpec) XXX_DiscardUnknown Uses

func (m *RestoreTargetSpec) XXX_DiscardUnknown()

func (*RestoreTargetSpec) XXX_Marshal Uses

func (m *RestoreTargetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestoreTargetSpec) XXX_Merge Uses

func (m *RestoreTargetSpec) XXX_Merge(src proto.Message)

func (*RestoreTargetSpec) XXX_Size Uses

func (m *RestoreTargetSpec) XXX_Size() int

func (*RestoreTargetSpec) XXX_Unmarshal Uses

func (m *RestoreTargetSpec) XXX_Unmarshal(b []byte) error

type Rule Uses

type Rule struct {
    // Subjects specifies the list of hosts that are subject to this rule
    // +optional
    TargetHosts []string `json:"targetHosts,omitempty" protobuf:"bytes,1,rep,name=targetHosts"`
    // SourceHost specifies the name of the host whose backed up state we are trying to restore
    // By default, it will indicate the workload itself
    // +optional
    SourceHost string `json:"sourceHost,omitempty" protobuf:"bytes,2,opt,name=sourceHost"`
    // Snapshots specifies the list of snapshots that will be restored for the host under this rule.
    // Don't specify if you have specified paths field.
    // +optional
    Snapshots []string `json:"snapshots,omitempty" protobuf:"bytes,3,rep,name=snapshots"`
    // Paths specifies the paths to be restored for the hosts under this rule.
    // Don't specify if you have specified snapshots field.
    // +optional
    Paths []string `json:"paths,omitempty" protobuf:"bytes,4,rep,name=paths"`
    // Exclude specifies a list of patterns for the files to ignore during restore.
    // Stash will only restore the files that does not match those patterns.
    // Supported only for "Restic" driver
    // +optional
    Exclude []string `json:"exclude,omitempty" protobuf:"bytes,5,rep,name=exclude"`
    // Include specifies a list of patterns for the files to restore.
    // Stash will only restore the files that match those patterns.
    // Supported only for "Restic" driver
    // +optional
    Include []string `json:"include,omitempty" protobuf:"bytes,6,rep,name=include"`
}

func (*Rule) DeepCopy Uses

func (in *Rule) DeepCopy() *Rule

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

func (*Rule) DeepCopyInto Uses

func (in *Rule) DeepCopyInto(out *Rule)

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

func (*Rule) Descriptor Uses

func (*Rule) Descriptor() ([]byte, []int)

func (*Rule) Marshal Uses

func (m *Rule) Marshal() (dAtA []byte, err error)

func (*Rule) MarshalTo Uses

func (m *Rule) MarshalTo(dAtA []byte) (int, error)

func (*Rule) MarshalToSizedBuffer Uses

func (m *Rule) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Rule) ProtoMessage Uses

func (*Rule) ProtoMessage()

func (*Rule) Reset Uses

func (m *Rule) Reset()

func (*Rule) Size Uses

func (m *Rule) Size() (n int)

func (*Rule) String Uses

func (this *Rule) String() string

func (*Rule) Unmarshal Uses

func (m *Rule) Unmarshal(dAtA []byte) error

func (*Rule) XXX_DiscardUnknown Uses

func (m *Rule) XXX_DiscardUnknown()

func (*Rule) XXX_Marshal Uses

func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Rule) XXX_Merge Uses

func (m *Rule) XXX_Merge(src proto.Message)

func (*Rule) XXX_Size Uses

func (m *Rule) XXX_Size() int

func (*Rule) XXX_Unmarshal Uses

func (m *Rule) XXX_Unmarshal(b []byte) error

type SnapshotStats Uses

type SnapshotStats struct {
    // Name indicates the name of the backup snapshot created for this host
    Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
    // Path indicates the directory that has been backed up in this snapshot
    Path string `json:"path,omitempty" protobuf:"bytes,2,opt,name=path"`
    // TotalSize indicates the size of data to backup in target directory
    TotalSize string `json:"totalSize,omitempty" protobuf:"bytes,7,opt,name=totalSize"`
    // Uploaded indicates size of data uploaded to backend for this snapshot
    Uploaded string `json:"uploaded,omitempty" protobuf:"bytes,4,opt,name=uploaded"`
    // ProcessingTime indicates time taken to process the target data
    ProcessingTime string `json:"processingTime,omitempty" protobuf:"bytes,5,opt,name=processingTime"`
    // FileStats shows statistics of files of this snapshot
    FileStats FileStats `json:"fileStats,omitempty" protobuf:"bytes,6,opt,name=fileStats"`
}

func (*SnapshotStats) DeepCopy Uses

func (in *SnapshotStats) DeepCopy() *SnapshotStats

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

func (*SnapshotStats) DeepCopyInto Uses

func (in *SnapshotStats) DeepCopyInto(out *SnapshotStats)

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

func (*SnapshotStats) Descriptor Uses

func (*SnapshotStats) Descriptor() ([]byte, []int)

func (*SnapshotStats) Marshal Uses

func (m *SnapshotStats) Marshal() (dAtA []byte, err error)

func (*SnapshotStats) MarshalTo Uses

func (m *SnapshotStats) MarshalTo(dAtA []byte) (int, error)

func (*SnapshotStats) MarshalToSizedBuffer Uses

func (m *SnapshotStats) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SnapshotStats) ProtoMessage Uses

func (*SnapshotStats) ProtoMessage()

func (*SnapshotStats) Reset Uses

func (m *SnapshotStats) Reset()

func (*SnapshotStats) Size Uses

func (m *SnapshotStats) Size() (n int)

func (*SnapshotStats) String Uses

func (this *SnapshotStats) String() string

func (*SnapshotStats) Unmarshal Uses

func (m *SnapshotStats) Unmarshal(dAtA []byte) error

func (*SnapshotStats) XXX_DiscardUnknown Uses

func (m *SnapshotStats) XXX_DiscardUnknown()

func (*SnapshotStats) XXX_Marshal Uses

func (m *SnapshotStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SnapshotStats) XXX_Merge Uses

func (m *SnapshotStats) XXX_Merge(src proto.Message)

func (*SnapshotStats) XXX_Size Uses

func (m *SnapshotStats) XXX_Size() int

func (*SnapshotStats) XXX_Unmarshal Uses

func (m *SnapshotStats) XXX_Unmarshal(b []byte) error

type Snapshotter Uses

type Snapshotter string

+kubebuilder:validation:Enum=Restic;VolumeSnapshotter

const (
    ResticSnapshotter Snapshotter = "Restic"
    VolumeSnapshotter Snapshotter = "VolumeSnapshotter"
)

type TargetPhase Uses

type TargetPhase string

+kubebuilder:validation:Enum=Pending;Succeeded;Running;Failed

const (
    TargetBackupPending   TargetPhase = "Pending"
    TargetBackupSucceeded TargetPhase = "Succeeded"
    TargetBackupRunning   TargetPhase = "Running"
    TargetBackupFailed    TargetPhase = "Failed"
)

type TargetRef Uses

type TargetRef struct {
    APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,1,opt,name=apiVersion"`
    Kind       string `json:"kind,omitempty" protobuf:"bytes,2,opt,name=kind"`
    Name       string `json:"name,omitempty" protobuf:"bytes,3,opt,name=name"`
}

func (*TargetRef) DeepCopy Uses

func (in *TargetRef) DeepCopy() *TargetRef

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

func (*TargetRef) DeepCopyInto Uses

func (in *TargetRef) DeepCopyInto(out *TargetRef)

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

func (*TargetRef) Descriptor Uses

func (*TargetRef) Descriptor() ([]byte, []int)

func (TargetRef) IsWorkload Uses

func (t TargetRef) IsWorkload() bool

TODO: complete

func (*TargetRef) Marshal Uses

func (m *TargetRef) Marshal() (dAtA []byte, err error)

func (*TargetRef) MarshalTo Uses

func (m *TargetRef) MarshalTo(dAtA []byte) (int, error)

func (*TargetRef) MarshalToSizedBuffer Uses

func (m *TargetRef) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TargetRef) ProtoMessage Uses

func (*TargetRef) ProtoMessage()

func (*TargetRef) Reset Uses

func (m *TargetRef) Reset()

func (*TargetRef) Size Uses

func (m *TargetRef) Size() (n int)

func (*TargetRef) String Uses

func (this *TargetRef) String() string

func (*TargetRef) Unmarshal Uses

func (m *TargetRef) Unmarshal(dAtA []byte) error

func (*TargetRef) XXX_DiscardUnknown Uses

func (m *TargetRef) XXX_DiscardUnknown()

func (*TargetRef) XXX_Marshal Uses

func (m *TargetRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TargetRef) XXX_Merge Uses

func (m *TargetRef) XXX_Merge(src proto.Message)

func (*TargetRef) XXX_Size Uses

func (m *TargetRef) XXX_Size() int

func (*TargetRef) XXX_Unmarshal Uses

func (m *TargetRef) XXX_Unmarshal(b []byte) error

type Task Uses

type Task struct {
    metav1.TypeMeta   `json:",inline"`
    metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    Spec              TaskSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=tasks,singular=task,scope=Cluster,shortName=task,categories={stash,appscode} +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (Task) CustomResourceDefinition Uses

func (_ Task) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*Task) DeepCopy Uses

func (in *Task) DeepCopy() *Task

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

func (*Task) DeepCopyInto Uses

func (in *Task) DeepCopyInto(out *Task)

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

func (*Task) DeepCopyObject Uses

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

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

func (*Task) Descriptor Uses

func (*Task) Descriptor() ([]byte, []int)

func (*Task) Marshal Uses

func (m *Task) Marshal() (dAtA []byte, err error)

func (*Task) MarshalTo Uses

func (m *Task) MarshalTo(dAtA []byte) (int, error)

func (*Task) MarshalToSizedBuffer Uses

func (m *Task) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Task) ProtoMessage Uses

func (*Task) ProtoMessage()

func (*Task) Reset Uses

func (m *Task) Reset()

func (*Task) Size Uses

func (m *Task) Size() (n int)

func (*Task) String Uses

func (this *Task) String() string

func (*Task) Unmarshal Uses

func (m *Task) Unmarshal(dAtA []byte) error

func (*Task) XXX_DiscardUnknown Uses

func (m *Task) XXX_DiscardUnknown()

func (*Task) XXX_Marshal Uses

func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Task) XXX_Merge Uses

func (m *Task) XXX_Merge(src proto.Message)

func (*Task) XXX_Size Uses

func (m *Task) XXX_Size() int

func (*Task) XXX_Unmarshal Uses

func (m *Task) XXX_Unmarshal(b []byte) error

type TaskList Uses

type TaskList struct {
    metav1.TypeMeta `json:",inline"`
    metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    Items           []Task `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"`
}

func (*TaskList) DeepCopy Uses

func (in *TaskList) DeepCopy() *TaskList

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

func (*TaskList) DeepCopyInto Uses

func (in *TaskList) DeepCopyInto(out *TaskList)

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

func (*TaskList) DeepCopyObject Uses

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

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

func (*TaskList) Descriptor Uses

func (*TaskList) Descriptor() ([]byte, []int)

func (*TaskList) Marshal Uses

func (m *TaskList) Marshal() (dAtA []byte, err error)

func (*TaskList) MarshalTo Uses

func (m *TaskList) MarshalTo(dAtA []byte) (int, error)

func (*TaskList) MarshalToSizedBuffer Uses

func (m *TaskList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TaskList) ProtoMessage Uses

func (*TaskList) ProtoMessage()

func (*TaskList) Reset Uses

func (m *TaskList) Reset()

func (*TaskList) Size Uses

func (m *TaskList) Size() (n int)

func (*TaskList) String Uses

func (this *TaskList) String() string

func (*TaskList) Unmarshal Uses

func (m *TaskList) Unmarshal(dAtA []byte) error

func (*TaskList) XXX_DiscardUnknown Uses

func (m *TaskList) XXX_DiscardUnknown()

func (*TaskList) XXX_Marshal Uses

func (m *TaskList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TaskList) XXX_Merge Uses

func (m *TaskList) XXX_Merge(src proto.Message)

func (*TaskList) XXX_Size Uses

func (m *TaskList) XXX_Size() int

func (*TaskList) XXX_Unmarshal Uses

func (m *TaskList) XXX_Unmarshal(b []byte) error

type TaskRef Uses

type TaskRef struct {
    Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
    // Params specifies a list of parameter to pass to the Task. Stash will use this parameters to resolve the task.
    // +optional
    Params []Param `json:"params,omitempty" protobuf:"bytes,2,rep,name=params"`
}

func (*TaskRef) DeepCopy Uses

func (in *TaskRef) DeepCopy() *TaskRef

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

func (*TaskRef) DeepCopyInto Uses

func (in *TaskRef) DeepCopyInto(out *TaskRef)

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

func (*TaskRef) Descriptor Uses

func (*TaskRef) Descriptor() ([]byte, []int)

func (*TaskRef) Marshal Uses

func (m *TaskRef) Marshal() (dAtA []byte, err error)

func (*TaskRef) MarshalTo Uses

func (m *TaskRef) MarshalTo(dAtA []byte) (int, error)

func (*TaskRef) MarshalToSizedBuffer Uses

func (m *TaskRef) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TaskRef) ProtoMessage Uses

func (*TaskRef) ProtoMessage()

func (*TaskRef) Reset Uses

func (m *TaskRef) Reset()

func (*TaskRef) Size Uses

func (m *TaskRef) Size() (n int)

func (*TaskRef) String Uses

func (this *TaskRef) String() string

func (*TaskRef) Unmarshal Uses

func (m *TaskRef) Unmarshal(dAtA []byte) error

func (*TaskRef) XXX_DiscardUnknown Uses

func (m *TaskRef) XXX_DiscardUnknown()

func (*TaskRef) XXX_Marshal Uses

func (m *TaskRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TaskRef) XXX_Merge Uses

func (m *TaskRef) XXX_Merge(src proto.Message)

func (*TaskRef) XXX_Size Uses

func (m *TaskRef) XXX_Size() int

func (*TaskRef) XXX_Unmarshal Uses

func (m *TaskRef) XXX_Unmarshal(b []byte) error

type TaskSpec Uses

type TaskSpec struct {
    Steps []FunctionRef `json:"steps,omitempty" protobuf:"bytes,1,rep,name=steps"`
    // List of volumes that can be mounted by containers belonging to the pod created for this task.
    // +optional
    Volumes []core.Volume `json:"volumes,omitempty" protobuf:"bytes,2,rep,name=volumes"`
}

func (*TaskSpec) DeepCopy Uses

func (in *TaskSpec) DeepCopy() *TaskSpec

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

func (*TaskSpec) DeepCopyInto Uses

func (in *TaskSpec) DeepCopyInto(out *TaskSpec)

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

func (*TaskSpec) Descriptor Uses

func (*TaskSpec) Descriptor() ([]byte, []int)

func (*TaskSpec) Marshal Uses

func (m *TaskSpec) Marshal() (dAtA []byte, err error)

func (*TaskSpec) MarshalTo Uses

func (m *TaskSpec) MarshalTo(dAtA []byte) (int, error)

func (*TaskSpec) MarshalToSizedBuffer Uses

func (m *TaskSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TaskSpec) ProtoMessage Uses

func (*TaskSpec) ProtoMessage()

func (*TaskSpec) Reset Uses

func (m *TaskSpec) Reset()

func (*TaskSpec) Size Uses

func (m *TaskSpec) Size() (n int)

func (*TaskSpec) String Uses

func (this *TaskSpec) String() string

func (*TaskSpec) Unmarshal Uses

func (m *TaskSpec) Unmarshal(dAtA []byte) error

func (*TaskSpec) XXX_DiscardUnknown Uses

func (m *TaskSpec) XXX_DiscardUnknown()

func (*TaskSpec) XXX_Marshal Uses

func (m *TaskSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TaskSpec) XXX_Merge Uses

func (m *TaskSpec) XXX_Merge(src proto.Message)

func (*TaskSpec) XXX_Size Uses

func (m *TaskSpec) XXX_Size() int

func (*TaskSpec) XXX_Unmarshal Uses

func (m *TaskSpec) XXX_Unmarshal(b []byte) error

Package v1beta1 imports 27 packages (graph) and is imported by 77 packages. Updated 2020-08-12. Refresh now. Tools for package owners.