harbor

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRegistryIsNotHarbor = errors.New("registry server is not harbor V2")
)

Functions

func CreateProject

func CreateProject(
	ctx context.Context,
	name, u string,
	credential *types.DockerAuthConfig,
	tlsVerify bool,
) error

CreateProject creates project for harbor v2

func GetURL added in v1.7.2

func GetURL(
	ctx context.Context,
	registry string,
	tlsVerify bool,
) (string, error)

func ProjectExists

func ProjectExists(
	ctx context.Context,
	name, u string,
	credential *types.DockerAuthConfig,
	tlsVerify bool,
) (bool, error)

ProjectExists check project exists or not on harbor v2.

Types

This section is empty.

Jump to

Keyboard shortcuts

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