v1

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 28

Documentation

Overview

+k8s:deepcopy-gen=package +k8s:openapi-gen=true +gencrdrefdocs:force=true

Index

Constants

View Source
const (
	ProviderLocal = "local"
	ProviderS3    = "s3"
	ProviderGCS   = "gcs"
	ProviderAzure = "azure"
	ProviderSwift = "swift"
	ProviderB2    = "b2"
	ProviderRest  = "rest"
)
View Source
const (
	// Deprecated: Use kmodules.xyz/constants/aws
	AWS_ACCESS_KEY_ID = "AWS_ACCESS_KEY_ID"
	// Deprecated: Use kmodules.xyz/constants/aws
	AWS_SECRET_ACCESS_KEY = "AWS_SECRET_ACCESS_KEY"
	// Deprecated: Use kmodules.xyz/constants/aws
	CA_CERT_DATA = "CA_CERT_DATA"

	// Deprecated: Use kmodules.xyz/constants/google
	GOOGLE_PROJECT_ID = "GOOGLE_PROJECT_ID"
	// Deprecated: Use kmodules.xyz/constants/google
	GOOGLE_SERVICE_ACCOUNT_JSON_KEY = "GOOGLE_SERVICE_ACCOUNT_JSON_KEY"
	// Deprecated: Use kmodules.xyz/constants/google
	GOOGLE_APPLICATION_CREDENTIALS = "GOOGLE_APPLICATION_CREDENTIALS"

	// Deprecated: Use kmodules.xyz/constants/azure
	AZURE_ACCOUNT_NAME = "AZURE_ACCOUNT_NAME"
	// Deprecated: Use kmodules.xyz/constants/azure
	AZURE_ACCOUNT_KEY = "AZURE_ACCOUNT_KEY"

	// swift
	// Deprecated: Use kmodules.xyz/constants/openstack
	OS_USERNAME = "OS_USERNAME"
	// Deprecated: Use kmodules.xyz/constants/openstack
	OS_PASSWORD = "OS_PASSWORD"
	// Deprecated: Use kmodules.xyz/constants/openstack
	OS_REGION_NAME = "OS_REGION_NAME"
	// Deprecated: Use kmodules.xyz/constants/openstack
	OS_AUTH_URL = "OS_AUTH_URL"

	// v3 specific
	// Deprecated: Use kmodules.xyz/constants/openstack
	OS_USER_DOMAIN_NAME = "OS_USER_DOMAIN_NAME"
	// Deprecated: Use kmodules.xyz/constants/openstack
	OS_PROJECT_NAME = "OS_PROJECT_NAME"
	// Deprecated: Use kmodules.xyz/constants/openstack
	OS_PROJECT_DOMAIN_NAME = "OS_PROJECT_DOMAIN_NAME"

	// v2 specific
	// Deprecated: Use kmodules.xyz/constants/openstack
	OS_TENANT_ID = "OS_TENANT_ID"
	// Deprecated: Use kmodules.xyz/constants/openstack
	OS_TENANT_NAME = "OS_TENANT_NAME"

	// v1 specific
	// Deprecated: Use kmodules.xyz/constants/openstack
	ST_AUTH = "ST_AUTH"
	// Deprecated: Use kmodules.xyz/constants/openstack
	ST_USER = "ST_USER"
	// Deprecated: Use kmodules.xyz/constants/openstack
	ST_KEY = "ST_KEY"

	// Manual authentication
	// Deprecated: Use kmodules.xyz/constants/openstack
	OS_STORAGE_URL = "OS_STORAGE_URL"
	// Deprecated: Use kmodules.xyz/constants/openstack
	OS_AUTH_TOKEN = "OS_AUTH_TOKEN"
)

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)

Functions

Types

type AzureSpec

type AzureSpec struct {
	Container      string `json:"container" protobuf:"bytes,1,opt,name=container"`
	Prefix         string `json:"prefix,omitempty" protobuf:"bytes,2,opt,name=prefix"`
	MaxConnections int64  `json:"maxConnections,omitempty" protobuf:"varint,3,opt,name=maxConnections"`
}

func (*AzureSpec) DeepCopy

func (in *AzureSpec) DeepCopy() *AzureSpec

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

func (*AzureSpec) DeepCopyInto

func (in *AzureSpec) DeepCopyInto(out *AzureSpec)

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

func (*AzureSpec) Descriptor

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

func (*AzureSpec) Marshal

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

func (*AzureSpec) MarshalTo

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

func (*AzureSpec) MarshalToSizedBuffer

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

func (*AzureSpec) ProtoMessage

func (*AzureSpec) ProtoMessage()

func (*AzureSpec) Reset

func (m *AzureSpec) Reset()

func (*AzureSpec) Size

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

func (*AzureSpec) String

func (this *AzureSpec) String() string

func (*AzureSpec) Unmarshal

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

func (*AzureSpec) XXX_DiscardUnknown

func (m *AzureSpec) XXX_DiscardUnknown()

func (*AzureSpec) XXX_Marshal

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

func (*AzureSpec) XXX_Merge

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

func (*AzureSpec) XXX_Size

func (m *AzureSpec) XXX_Size() int

func (*AzureSpec) XXX_Unmarshal

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

type B2Spec

type B2Spec struct {
	Bucket         string `json:"bucket" protobuf:"bytes,1,opt,name=bucket"`
	Prefix         string `json:"prefix,omitempty" protobuf:"bytes,2,opt,name=prefix"`
	MaxConnections int64  `json:"maxConnections,omitempty" protobuf:"varint,3,opt,name=maxConnections"`
}

func (*B2Spec) DeepCopy

func (in *B2Spec) DeepCopy() *B2Spec

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

func (*B2Spec) DeepCopyInto

func (in *B2Spec) DeepCopyInto(out *B2Spec)

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

func (*B2Spec) Descriptor

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

func (*B2Spec) Marshal

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

func (*B2Spec) MarshalTo

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

func (*B2Spec) MarshalToSizedBuffer

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

func (*B2Spec) ProtoMessage

func (*B2Spec) ProtoMessage()

func (*B2Spec) Reset

func (m *B2Spec) Reset()

func (*B2Spec) Size

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

func (*B2Spec) String

func (this *B2Spec) String() string

func (*B2Spec) Unmarshal

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

func (*B2Spec) XXX_DiscardUnknown

func (m *B2Spec) XXX_DiscardUnknown()

func (*B2Spec) XXX_Marshal

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

func (*B2Spec) XXX_Merge

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

func (*B2Spec) XXX_Size

func (m *B2Spec) XXX_Size() int

func (*B2Spec) XXX_Unmarshal

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

type Backend

type Backend struct {
	StorageSecretName string `json:"storageSecretName,omitempty" protobuf:"bytes,1,opt,name=storageSecretName"`

	Local *LocalSpec      `json:"local,omitempty" protobuf:"bytes,2,opt,name=local"`
	S3    *S3Spec         `json:"s3,omitempty" protobuf:"bytes,3,opt,name=s3"`
	GCS   *GCSSpec        `json:"gcs,omitempty" protobuf:"bytes,4,opt,name=gcs"`
	Azure *AzureSpec      `json:"azure,omitempty" protobuf:"bytes,5,opt,name=azure"`
	Swift *SwiftSpec      `json:"swift,omitempty" protobuf:"bytes,6,opt,name=swift"`
	B2    *B2Spec         `json:"b2,omitempty" protobuf:"bytes,7,opt,name=b2"`
	Rest  *RestServerSpec `json:"rest,omitempty" protobuf:"bytes,8,opt,name=rest"`
}

func (Backend) Container

func (backend Backend) Container() (string, error)

Container returns name of the bucket

func (*Backend) DeepCopy

func (in *Backend) DeepCopy() *Backend

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

func (*Backend) DeepCopyInto

func (in *Backend) DeepCopyInto(out *Backend)

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

func (*Backend) Descriptor

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

func (Backend) Endpoint

func (backend Backend) Endpoint() (string, bool)

Endpoint returns endpoint of Restic rest server and S3/S3 compatible backend

func (Backend) InsecureTLS added in v0.29.1

func (backend Backend) InsecureTLS() bool

InsecureTLS returns insecureTLS of S3/S3 compatible backend

func (Backend) Location

func (backend Backend) Location() (string, error)

Location returns the location of backend (<provider>:<bucket name>)

func (*Backend) Marshal

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

func (*Backend) MarshalTo

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

func (*Backend) MarshalToSizedBuffer

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

func (Backend) MaxConnections

func (backend Backend) MaxConnections() int64

MaxConnections returns maximum parallel connection to use to connect with the backend returns 0 if not specified

func (Backend) Prefix

func (backend Backend) Prefix() (string, error)

Prefix returns the prefix used in the backend

func (*Backend) ProtoMessage

func (*Backend) ProtoMessage()

func (Backend) Provider

func (backend Backend) Provider() (string, error)

Provider returns the provider of the backend

func (Backend) Region

func (backend Backend) Region() (string, bool)

Region returns region of S3/S3 compatible backend

func (*Backend) Reset

func (m *Backend) Reset()

func (*Backend) Size

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

func (*Backend) String

func (this *Backend) String() string

func (*Backend) Unmarshal

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

func (*Backend) XXX_DiscardUnknown

func (m *Backend) XXX_DiscardUnknown()

func (*Backend) XXX_Marshal

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

func (*Backend) XXX_Merge

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

func (*Backend) XXX_Size

func (m *Backend) XXX_Size() int

func (*Backend) XXX_Unmarshal

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

type GCSSpec

type GCSSpec struct {
	Bucket         string `json:"bucket" protobuf:"bytes,1,opt,name=bucket"`
	Prefix         string `json:"prefix,omitempty" protobuf:"bytes,2,opt,name=prefix"`
	MaxConnections int64  `json:"maxConnections,omitempty" protobuf:"varint,3,opt,name=maxConnections"`
}

func (*GCSSpec) DeepCopy

func (in *GCSSpec) DeepCopy() *GCSSpec

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

func (*GCSSpec) DeepCopyInto

func (in *GCSSpec) DeepCopyInto(out *GCSSpec)

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

func (*GCSSpec) Descriptor

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

func (*GCSSpec) Marshal

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

func (*GCSSpec) MarshalTo

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

func (*GCSSpec) MarshalToSizedBuffer

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

func (*GCSSpec) ProtoMessage

func (*GCSSpec) ProtoMessage()

func (*GCSSpec) Reset

func (m *GCSSpec) Reset()

func (*GCSSpec) Size

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

func (*GCSSpec) String

func (this *GCSSpec) String() string

func (*GCSSpec) Unmarshal

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

func (*GCSSpec) XXX_DiscardUnknown

func (m *GCSSpec) XXX_DiscardUnknown()

func (*GCSSpec) XXX_Marshal

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

func (*GCSSpec) XXX_Merge

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

func (*GCSSpec) XXX_Size

func (m *GCSSpec) XXX_Size() int

func (*GCSSpec) XXX_Unmarshal

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

type LocalSpec

type LocalSpec struct {
	core.VolumeSource `json:",inline" protobuf:"bytes,1,opt,name=volumeSource"`
	MountPath         string `json:"mountPath" protobuf:"bytes,2,opt,name=mountPath"`
	SubPath           string `json:"subPath,omitempty" protobuf:"bytes,3,opt,name=subPath"`
}

func (*LocalSpec) DeepCopy

func (in *LocalSpec) DeepCopy() *LocalSpec

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

func (*LocalSpec) DeepCopyInto

func (in *LocalSpec) DeepCopyInto(out *LocalSpec)

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

func (*LocalSpec) Descriptor

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

func (*LocalSpec) Marshal

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

func (*LocalSpec) MarshalTo

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

func (*LocalSpec) MarshalToSizedBuffer

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

func (*LocalSpec) ProtoMessage

func (*LocalSpec) ProtoMessage()

func (*LocalSpec) Reset

func (m *LocalSpec) Reset()

func (*LocalSpec) Size

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

func (*LocalSpec) String

func (this *LocalSpec) String() string

func (LocalSpec) ToVolumeAndMount

func (l LocalSpec) ToVolumeAndMount(volName string) (core.Volume, core.VolumeMount)

ToVolumeAndMount returns volumes and mounts for local backend

func (*LocalSpec) Unmarshal

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

func (*LocalSpec) XXX_DiscardUnknown

func (m *LocalSpec) XXX_DiscardUnknown()

func (*LocalSpec) XXX_Marshal

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

func (*LocalSpec) XXX_Merge

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

func (*LocalSpec) XXX_Size

func (m *LocalSpec) XXX_Size() int

func (*LocalSpec) XXX_Unmarshal

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

type RestServerSpec

type RestServerSpec struct {
	URL string `json:"url,omitempty" protobuf:"bytes,1,opt,name=url"`
}

func (*RestServerSpec) DeepCopy

func (in *RestServerSpec) DeepCopy() *RestServerSpec

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

func (*RestServerSpec) DeepCopyInto

func (in *RestServerSpec) DeepCopyInto(out *RestServerSpec)

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

func (*RestServerSpec) Descriptor

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

func (*RestServerSpec) Marshal

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

func (*RestServerSpec) MarshalTo

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

func (*RestServerSpec) MarshalToSizedBuffer

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

func (*RestServerSpec) ProtoMessage

func (*RestServerSpec) ProtoMessage()

func (*RestServerSpec) Reset

func (m *RestServerSpec) Reset()

func (*RestServerSpec) Size

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

func (*RestServerSpec) String

func (this *RestServerSpec) String() string

func (*RestServerSpec) Unmarshal

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

func (*RestServerSpec) XXX_DiscardUnknown

func (m *RestServerSpec) XXX_DiscardUnknown()

func (*RestServerSpec) XXX_Marshal

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

func (*RestServerSpec) XXX_Merge

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

func (*RestServerSpec) XXX_Size

func (m *RestServerSpec) XXX_Size() int

func (*RestServerSpec) XXX_Unmarshal

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

type S3Spec

type S3Spec struct {
	Endpoint    string `json:"endpoint" protobuf:"bytes,1,opt,name=endpoint"`
	Bucket      string `json:"bucket" protobuf:"bytes,2,opt,name=bucket"`
	Prefix      string `json:"prefix,omitempty" protobuf:"bytes,3,opt,name=prefix"`
	Region      string `json:"region,omitempty" protobuf:"bytes,4,opt,name=region"`
	InsecureTLS bool   `json:"insecureTLS,omitempty" protobuf:"varint,5,opt,name=insecureTLS"`
}

func (*S3Spec) DeepCopy

func (in *S3Spec) DeepCopy() *S3Spec

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

func (*S3Spec) DeepCopyInto

func (in *S3Spec) DeepCopyInto(out *S3Spec)

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

func (*S3Spec) Descriptor

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

func (*S3Spec) Marshal

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

func (*S3Spec) MarshalTo

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

func (*S3Spec) MarshalToSizedBuffer

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

func (*S3Spec) ProtoMessage

func (*S3Spec) ProtoMessage()

func (*S3Spec) Reset

func (m *S3Spec) Reset()

func (*S3Spec) Size

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

func (*S3Spec) String

func (this *S3Spec) String() string

func (*S3Spec) Unmarshal

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

func (*S3Spec) XXX_DiscardUnknown

func (m *S3Spec) XXX_DiscardUnknown()

func (*S3Spec) XXX_Marshal

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

func (*S3Spec) XXX_Merge

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

func (*S3Spec) XXX_Size

func (m *S3Spec) XXX_Size() int

func (*S3Spec) XXX_Unmarshal

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

type SwiftSpec

type SwiftSpec struct {
	Container string `json:"container" protobuf:"bytes,1,opt,name=container"`
	Prefix    string `json:"prefix,omitempty" protobuf:"bytes,2,opt,name=prefix"`
}

func (*SwiftSpec) DeepCopy

func (in *SwiftSpec) DeepCopy() *SwiftSpec

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

func (*SwiftSpec) DeepCopyInto

func (in *SwiftSpec) DeepCopyInto(out *SwiftSpec)

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

func (*SwiftSpec) Descriptor

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

func (*SwiftSpec) Marshal

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

func (*SwiftSpec) MarshalTo

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

func (*SwiftSpec) MarshalToSizedBuffer

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

func (*SwiftSpec) ProtoMessage

func (*SwiftSpec) ProtoMessage()

func (*SwiftSpec) Reset

func (m *SwiftSpec) Reset()

func (*SwiftSpec) Size

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

func (*SwiftSpec) String

func (this *SwiftSpec) String() string

func (*SwiftSpec) Unmarshal

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

func (*SwiftSpec) XXX_DiscardUnknown

func (m *SwiftSpec) XXX_DiscardUnknown()

func (*SwiftSpec) XXX_Marshal

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

func (*SwiftSpec) XXX_Merge

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

func (*SwiftSpec) XXX_Size

func (m *SwiftSpec) XXX_Size() int

func (*SwiftSpec) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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