native

package
v0.0.0-...-a548ab7 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	registry.Client
	// contains filtered or unexported fields
}

Adapter implements an adapter for Docker registry. It can be used to all registries that implement the registry V2 API

func NewAdapter

func NewAdapter(reg *model.Registry) *Adapter

NewAdapter returns an instance of the Adapter

func NewAdapterWithAuthorizer

func NewAdapterWithAuthorizer(reg *model.Registry, authorizer lib.Authorizer) *Adapter

NewAdapterWithAuthorizer returns an instance of the Adapter with provided authorizer

func (*Adapter) CanBeMount

func (a *Adapter) CanBeMount(_ string) (mount bool, repository string, err error)

CanBeMount isn't supported for docker registry

func (*Adapter) DeleteTag

func (a *Adapter) DeleteTag(_, _ string) error

DeleteTag isn't supported for docker registry

func (*Adapter) FetchArtifacts

func (a *Adapter) FetchArtifacts(filters []*model.Filter) ([]*model.Resource, error)

FetchArtifacts ...

func (*Adapter) HealthCheck

func (a *Adapter) HealthCheck() (string, error)

HealthCheck checks health status of a registry

func (*Adapter) Info

func (a *Adapter) Info() (info *model.RegistryInfo, err error)

Info returns the basic information about the adapter

func (*Adapter) PingSimple

func (a *Adapter) PingSimple() error

PingSimple checks whether the registry is available. It checks the connectivity and certificate (if TLS enabled) only, regardless of 401/403 error.

func (*Adapter) PrepareForPush

func (a *Adapter) PrepareForPush([]*model.Resource) error

PrepareForPush does nothing

Jump to

Keyboard shortcuts

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