backend

package
v0.8.93 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Describer

type Describer interface {
	Describe(ctx context.Context, digest string) (*v1.CASResource, error)
}

type Downloader

type Downloader interface {
	Download(ctx context.Context, w io.Writer, digest string) error
}

type Provider

type Provider interface {
	FromCredentials(ctx context.Context, secretName string) (UploaderDownloader, error)
}

Provider is an interface that allows to create a backend from a secret

type Uploader

type Uploader interface {
	Upload(ctx context.Context, r io.Reader, resource *v1.CASResource) error
	Exists(ctx context.Context, digest string) (bool, error)
	CheckWritePermissions(ctx context.Context) error
}

type UploaderDownloader

type UploaderDownloader interface {
	Uploader
	Downloader
	Describer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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