v1alpha1

package
v1.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the v1alpha1 API group. +kubebuilder:object:generate=true +groupName=strategy.backups.cozystack.io

SPDX-License-Identifier: Apache-2.0 Package v1alpha1 defines strategy.backups.cozystack.io API types.

Group: strategy.backups.cozystack.io Version: v1alpha1

SPDX-License-Identifier: Apache-2.0 Package v1alpha1 defines strategy.backups.cozystack.io API types.

Group: strategy.backups.cozystack.io Version: v1alpha1

Index

Constants

View Source
const (
	JobStrategyKind = "Job"
)
View Source
const (
	VeleroStrategyKind = "Velero"
)

Variables

View Source
var (
	GroupVersion  = schema.GroupVersion{Group: "strategy.backups.cozystack.io", Version: "v1alpha1"}
	SchemeBuilder = runtime.NewSchemeBuilder(addGroupVersion)
	AddToScheme   = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Job

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

	Spec   JobSpec   `json:"spec,omitempty"`
	Status JobStatus `json:"status,omitempty"`
}

Job defines a backup strategy using a one-shot Job

func (*Job) DeepCopy

func (in *Job) DeepCopy() *Job

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

func (*Job) DeepCopyInto

func (in *Job) DeepCopyInto(out *Job)

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

func (*Job) DeepCopyObject

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

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

type JobList

type JobList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Job `json:"items"`
}

JobList contains a list of backup Jobs.

func (*JobList) DeepCopy

func (in *JobList) DeepCopy() *JobList

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

func (*JobList) DeepCopyInto

func (in *JobList) DeepCopyInto(out *JobList)

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

func (*JobList) DeepCopyObject

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

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

type JobSpec

type JobSpec struct {
	// Template holds a PodTemplateSpec with the right shape to
	// run a single pod to completion and create a tarball with
	// a given apps data. Helm-like Go templates are supported.
	// The values of the source application are available under
	// `.Values`. `.Release.Name` and `.Release.Namespace` are
	// also exported.
	Template corev1.PodTemplateSpec `json:"template"`
}

JobSpec specifies the desired behavior of a backup job.

func (*JobSpec) DeepCopy

func (in *JobSpec) DeepCopy() *JobSpec

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

func (*JobSpec) DeepCopyInto

func (in *JobSpec) DeepCopyInto(out *JobSpec)

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

type JobStatus

type JobStatus struct {
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

func (*JobStatus) DeepCopy

func (in *JobStatus) DeepCopy() *JobStatus

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

func (*JobStatus) DeepCopyInto

func (in *JobStatus) DeepCopyInto(out *JobStatus)

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

type Velero

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

	Spec   VeleroSpec   `json:"spec,omitempty"`
	Status VeleroStatus `json:"status,omitempty"`
}

Velero defines a backup strategy using Velero as the driver.

func (*Velero) DeepCopy

func (in *Velero) DeepCopy() *Velero

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

func (*Velero) DeepCopyInto

func (in *Velero) DeepCopyInto(out *Velero)

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

func (*Velero) DeepCopyObject

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

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

type VeleroList

type VeleroList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Velero `json:"items"`
}

VeleroList contains a list of Velero backup strategies.

func (*VeleroList) DeepCopy

func (in *VeleroList) DeepCopy() *VeleroList

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

func (*VeleroList) DeepCopyInto

func (in *VeleroList) DeepCopyInto(out *VeleroList)

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

func (*VeleroList) DeepCopyObject

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

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

type VeleroSpec

type VeleroSpec struct {
	Template VeleroTemplate `json:"template"`
}

VeleroSpec specifies the desired strategy for backing up with Velero.

func (*VeleroSpec) DeepCopy

func (in *VeleroSpec) DeepCopy() *VeleroSpec

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

func (*VeleroSpec) DeepCopyInto

func (in *VeleroSpec) DeepCopyInto(out *VeleroSpec)

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

type VeleroStatus

type VeleroStatus struct {
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

func (*VeleroStatus) DeepCopy

func (in *VeleroStatus) DeepCopy() *VeleroStatus

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

func (*VeleroStatus) DeepCopyInto

func (in *VeleroStatus) DeepCopyInto(out *VeleroStatus)

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

type VeleroTemplate

type VeleroTemplate struct {
	Spec velerov1.BackupSpec `json:"spec"`
}

VeleroTemplate describes the data a backup.velero.io should have when templated from a Velero backup strategy.

func (*VeleroTemplate) DeepCopy

func (in *VeleroTemplate) DeepCopy() *VeleroTemplate

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

func (*VeleroTemplate) DeepCopyInto

func (in *VeleroTemplate) DeepCopyInto(out *VeleroTemplate)

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

Jump to

Keyboard shortcuts

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