v1

package
v0.0.0-...-172f848 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=backup

Index

Constants

This section is empty.

Variables

View Source
var (
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: examplecom.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type BackupDir

type BackupDir string

func (BackupDir) String

func (f BackupDir) String() string

type BackupDirs

type BackupDirs []BackupDir

func ParseBackupDirs

func ParseBackupDirs(values []string) BackupDirs

func ParseBackupDirsFromString

func ParseBackupDirsFromString(value string) BackupDirs

func (BackupDirs) DeepCopy

func (in BackupDirs) DeepCopy() BackupDirs

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

func (BackupDirs) DeepCopyInto

func (in BackupDirs) DeepCopyInto(out *BackupDirs)

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

func (BackupDirs) Len

func (a BackupDirs) Len() int

func (BackupDirs) Less

func (a BackupDirs) Less(i, j int) bool

func (BackupDirs) Sorted

func (a BackupDirs) Sorted() BackupDirs

func (BackupDirs) Strings

func (a BackupDirs) Strings() []string

func (BackupDirs) Swap

func (a BackupDirs) Swap(i, j int)

type BackupExclude

type BackupExclude string

func (BackupExclude) String

func (f BackupExclude) String() string

type BackupExcludes

type BackupExcludes []BackupExclude

func ParseBackupExcludes

func ParseBackupExcludes(values []string) BackupExcludes

func ParseBackupExcludesFromString

func ParseBackupExcludesFromString(value string) BackupExcludes

func (BackupExcludes) Bytes

func (a BackupExcludes) Bytes() []byte

func (BackupExcludes) Len

func (a BackupExcludes) Len() int

func (BackupExcludes) Less

func (a BackupExcludes) Less(i, j int) bool

func (BackupExcludes) Sorted

func (a BackupExcludes) Sorted() BackupExcludes

func (BackupExcludes) Strings

func (a BackupExcludes) Strings() []string

func (BackupExcludes) Swap

func (a BackupExcludes) Swap(i, j int)

type BackupHost

type BackupHost string

func (BackupHost) String

func (f BackupHost) String() string

type BackupPort

type BackupPort int

func (BackupPort) Int

func (f BackupPort) Int() int

func (BackupPort) String

func (f BackupPort) String() string

type BackupSpec

type BackupSpec struct {
	Host     BackupHost     `json:"host" yaml:"host"`
	Port     BackupPort     `json:"port" yaml:"port"`
	User     BackupUser     `json:"user" yaml:"user"`
	Dirs     BackupDirs     `json:"dirs" yaml:"dirs"`
	Excludes BackupExcludes `json:"excludes" yaml:"excludes"`
}

BackupSpec is the spec for a Foo resource

func (*BackupSpec) DeepCopy

func (in *BackupSpec) DeepCopy() *BackupSpec

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

func (*BackupSpec) DeepCopyInto

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

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

func (BackupSpec) Equal

func (a BackupSpec) Equal(backup BackupSpec) bool

func (BackupSpec) Validate

func (a BackupSpec) Validate(ctx context.Context) error

type BackupSpecs

type BackupSpecs []BackupSpec

func (BackupSpecs) DeepCopy

func (in BackupSpecs) DeepCopy() BackupSpecs

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

func (BackupSpecs) DeepCopyInto

func (in BackupSpecs) DeepCopyInto(out *BackupSpecs)

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

type BackupUser

type BackupUser string

func (BackupUser) String

func (f BackupUser) String() string

type Target

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

	Spec BackupSpec `json:"spec"`
}

Target describes a database.

func (*Target) DeepCopy

func (in *Target) DeepCopy() *Target

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

func (*Target) DeepCopyInto

func (in *Target) DeepCopyInto(out *Target)

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

func (*Target) DeepCopyObject

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

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

type TargetList

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

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

TargetList is a list of Target resources

func (*TargetList) DeepCopy

func (in *TargetList) DeepCopy() *TargetList

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

func (*TargetList) DeepCopyInto

func (in *TargetList) DeepCopyInto(out *TargetList)

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

func (*TargetList) DeepCopyObject

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

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

type Targets

type Targets []Target

func (Targets) DeepCopy

func (in Targets) DeepCopy() Targets

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

func (Targets) DeepCopyInto

func (in Targets) DeepCopyInto(out *Targets)

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

func (Targets) Specs

func (a Targets) Specs() BackupSpecs

Jump to

Keyboard shortcuts

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