Versions in this module Expand all Collapse all v2 v2.0.1 Sep 29, 2020 Changes in this version + const ErrRegistryIDNotExistsMsg + const ErrRegistryIllegalIDFormatMsg + const ErrRegistryInternalErrorsMsg + const ErrRegistryMismatchMsg + const ErrRegistryNameAlreadyExistsMsg + const ErrRegistryNoPermissionMsg + const ErrRegistryNotFoundMsg + const ErrRegistryNotProvidedMsg + const ErrRegistryUnauthorizedMsg + type Client interface + DeleteRegistry func(ctx context.Context, r *model.Registry) error + GetRegistry func(ctx context.Context, name string) (*model.Registry, error) + NewRegistry func(ctx context.Context, name, registryType, url string, ...) (*model.Registry, error) + UpdateRegistry func(ctx context.Context, r *model.Registry) error + type ErrRegistryIDNotExists struct + func (e *ErrRegistryIDNotExists) Error() string + type ErrRegistryIllegalIDFormat struct + func (e *ErrRegistryIllegalIDFormat) Error() string + type ErrRegistryInternalErrors struct + func (e *ErrRegistryInternalErrors) Error() string + type ErrRegistryMismatch struct + func (e *ErrRegistryMismatch) Error() string + type ErrRegistryNameAlreadyExists struct + func (e *ErrRegistryNameAlreadyExists) Error() string + type ErrRegistryNoPermission struct + func (e *ErrRegistryNoPermission) Error() string + type ErrRegistryNotFound struct + func (e *ErrRegistryNotFound) Error() string + type ErrRegistryNotProvided struct + func (e *ErrRegistryNotProvided) Error() string + type ErrRegistryUnauthorized struct + func (e *ErrRegistryUnauthorized) Error() string + type RESTClient struct + AuthInfo runtime.ClientAuthInfoWriter + LegacyClient *client.Harbor + V2Client *v2client.Harbor + func NewClient(legacyClient *client.Harbor, v2Client *v2client.Harbor, ...) *RESTClient + func (c *RESTClient) DeleteRegistry(ctx context.Context, r *model.Registry) error + func (c *RESTClient) GetRegistry(ctx context.Context, name string) (*model.Registry, error) + func (c *RESTClient) NewRegistry(ctx context.Context, name, registryType, url string, ...) (*model.Registry, error) + func (c *RESTClient) UpdateRegistry(ctx context.Context, r *model.Registry) error Other modules containing this package github.com/mittwald/goharbor-client/v3 github.com/mittwald/goharbor-client/v4