Documentation ¶
Index ¶
- Constants
- 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 NewBackendOpt
- type RegistryOptions
Constants ¶
View Source
const ProviderID = "OCI"
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, opts ...NewBackendOpt) (*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)
func (*BackendProvider) ID ¶ added in v0.14.0
func (p *BackendProvider) ID() string
func (*BackendProvider) ValidateAndExtractCredentials ¶ added in v0.14.0
func (p *BackendProvider) ValidateAndExtractCredentials(location string, credsJSON []byte) (any, error)
type NewBackendOpt ¶ added in v0.11.1
type NewBackendOpt func(*Backend)
func WithPrefix ¶ added in v0.11.1
func WithPrefix(prefix string) NewBackendOpt
type RegistryOptions ¶
Click to show internal directories.
Click to hide internal directories.