client

package
Version: v0.0.0-...-ec1c8c9 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 8 Imported by: 16

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) Client

NewClient return an instance of Registry client

type Config

type Config struct {
	Secret string
}

Config contains configurations needed for client

Source Files

Jump to

Keyboard shortcuts

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