Documentation ¶
Index ¶
Constants ¶
View Source
const (
UserAgent = "harbor-registryctl-client"
)
const definition
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Health tests the connection with registry server Health() error // DeleteBlob deletes the specified blob. The "reference" should be "digest" DeleteBlob(reference string) (err error) // DeleteManifest deletes the specified manifest. The "reference" can be "tag" or "digest" DeleteManifest(repository, reference string) (err error) }
Client defines methods that an Registry client should implement
func NewClient ¶
func NewClient(baseURL string, cfg *Config, interceptors ...interceptor.Interceptor) Client
NewClient return an instance of Registry client
Click to show internal directories.
Click to hide internal directories.