client

package
v0.0.0-...-d7ab265 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 64

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

type Config

type Config struct {
	Secret string
}

Config contains configurations needed for client

Jump to

Keyboard shortcuts

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