Documentation
¶
Index ¶
- Constants
- func BuildClient(ctx context.Context, client client.Client, harbor *registriesv1alpha2.Instance) (*h.RESTClient, error)
- func FetchReadyHarborInstance(ctx context.Context, namespace, parentInstanceName string, r client.Client) (*registriesv1alpha2.Instance, error)
- type ErrInstanceNotFound
- type ErrInstanceNotReady
- type ErrRegistryNotReady
Constants ¶
View Source
const FinalizerName = "harbor-operator.registries.mittwald.de"
Variables ¶
This section is empty.
Functions ¶
func BuildClient ¶
func BuildClient(ctx context.Context, client client.Client, harbor *registriesv1alpha2.Instance) (*h.RESTClient, error)
BuildClient builds a harbor client to interact with the API using the default (admin) credentials of an existing harbor instance.
func FetchReadyHarborInstance ¶
func FetchReadyHarborInstance(ctx context.Context, namespace, parentInstanceName string, r client.Client) (*registriesv1alpha2.Instance, error)
FetchReadyHarborInstance returns a harbor instance based on the provided instance name Also needs a controller client to fetch the actual instance.
Types ¶
type ErrInstanceNotFound ¶
type ErrInstanceNotFound string
ErrInstanceNotFound is called when the corresponding Harbor instance could not be found.
func (ErrInstanceNotFound) Error ¶
func (e ErrInstanceNotFound) Error() string
type ErrInstanceNotReady ¶
type ErrInstanceNotReady string
ErrInstanceNotFound is called when the corresponding Harbor instance is not ready.
func (ErrInstanceNotReady) Error ¶
func (e ErrInstanceNotReady) Error() string
type ErrRegistryNotReady ¶
type ErrRegistryNotReady string
ErrRegistryNotReady is called when the corresponding RegistryCR (registriesv1alpha2.Registry) is not ready.
func (ErrRegistryNotReady) Error ¶
func (e ErrRegistryNotReady) Error() string
Click to show internal directories.
Click to hide internal directories.