Documentation
¶
Index ¶
- Variables
- func CreateProject(ctx context.Context, name, u string, credential *types.DockerAuthConfig, ...) error
- func GetURL(ctx context.Context, registry string, tlsVerify bool) (string, error)
- func ProjectExists(ctx context.Context, name, u string, credential *types.DockerAuthConfig, ...) (bool, error)
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 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.
Click to show internal directories.
Click to hide internal directories.