Documentation ¶
Index ¶
- type Adapter
- func (a *Adapter) CanBeMount(_ string) (mount bool, repository string, err error)
- func (a *Adapter) DeleteTag(_, _ string) error
- func (a *Adapter) FetchArtifacts(filters []*model.Filter) ([]*model.Resource, error)
- func (a *Adapter) HealthCheck() (string, error)
- func (a *Adapter) Info() (info *model.RegistryInfo, err error)
- func (a *Adapter) PingSimple() error
- func (a *Adapter) PrepareForPush([]*model.Resource) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
Adapter implements an adapter for Docker registry. It can be used to all registries that implement the registry V2 API
func NewAdapter ¶
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 ¶
CanBeMount isn't supported for docker registry
func (*Adapter) FetchArtifacts ¶
FetchArtifacts ...
func (*Adapter) HealthCheck ¶
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 ¶
PingSimple checks whether the registry is available. It checks the connectivity and certificate (if TLS enabled) only, regardless of 401/403 error.
Click to show internal directories.
Click to hide internal directories.