backend

package
v1.12.4-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupConnectOptions

func SetupConnectOptions(ctx context.Context, repoOptions udmrepo.RepoOptions) repo.ConnectOptions

SetupConnectOptions setups the options when connecting to an existing Kopia repository

func SetupNewRepositoryOptions

func SetupNewRepositoryOptions(ctx context.Context, flags map[string]string) repo.NewRepositoryOptions

SetupNewRepositoryOptions setups the options when creating a new Kopia repository

Types

type AzureBackend

type AzureBackend struct {
	// contains filtered or unexported fields
}

func (*AzureBackend) Connect

func (c *AzureBackend) Connect(ctx context.Context, isCreate bool) (blob.Storage, error)

func (*AzureBackend) Setup

func (c *AzureBackend) Setup(ctx context.Context, flags map[string]string) error

type FsBackend

type FsBackend struct {
	// contains filtered or unexported fields
}

func (*FsBackend) Connect

func (c *FsBackend) Connect(ctx context.Context, isCreate bool) (blob.Storage, error)

func (*FsBackend) Setup

func (c *FsBackend) Setup(ctx context.Context, flags map[string]string) error

type GCSBackend

type GCSBackend struct {
	// contains filtered or unexported fields
}

func (*GCSBackend) Connect

func (c *GCSBackend) Connect(ctx context.Context, isCreate bool) (blob.Storage, error)

func (*GCSBackend) Setup

func (c *GCSBackend) Setup(ctx context.Context, flags map[string]string) error

type S3Backend

type S3Backend struct {
	// contains filtered or unexported fields
}

func (*S3Backend) Connect

func (c *S3Backend) Connect(ctx context.Context, isCreate bool) (blob.Storage, error)

func (*S3Backend) Setup

func (c *S3Backend) Setup(ctx context.Context, flags map[string]string) error

type Store

type Store interface {
	// Setup setups the variables to a specific backend storage
	Setup(ctx context.Context, flags map[string]string) error

	// Connect connects to a specific backend storage with the storage variables
	Connect(ctx context.Context, isCreate bool) (blob.Storage, error)
}

Store defines the methods for Kopia to establish a connection to the backend storage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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