Documentation ¶
Index ¶
- type Backend
- func (b *Backend) CheckWritePermissions(_ context.Context) error
- func (b *Backend) Describe(_ context.Context, digest string) (*pb.CASResource, error)
- func (b *Backend) Download(_ context.Context, w io.Writer, digest string) error
- func (b *Backend) Exists(_ context.Context, digest string) (bool, error)
- func (b *Backend) Upload(_ context.Context, r io.Reader, resource *pb.CASResource) error
- type BackendProvider
- type Keychain
- type RegistryOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewBackend ¶
func NewBackend(repository string, regOpts *RegistryOptions) (*Backend, error)
func (*Backend) CheckWritePermissions ¶
CheckWritePermissions performs an actual write to the repository to check that the credentials
type BackendProvider ¶
type BackendProvider struct {
// contains filtered or unexported fields
}
func NewBackendProvider ¶
func NewBackendProvider(cReader credentials.Reader) *BackendProvider
func (*BackendProvider) FromCredentials ¶
func (p *BackendProvider) FromCredentials(ctx context.Context, secretName string) (backend.UploaderDownloader, error)
type RegistryOptions ¶
Click to show internal directories.
Click to hide internal directories.