Documentation
¶
Index ¶
- Constants
- func BuildClient(ctx context.Context, client client.Client, harbor *v1alpha2.Instance) (*h.RESTClient, error)
- func GenerateProjectMetadata(projectMeta *v1alpha2.ProjectMetadata) *model.ProjectMetadata
- func HarborInstanceIsHealthy(ctx context.Context, harborClient *h.RESTClient) (bool, error)
Constants ¶
View Source
const FinalizerName = "registries.mittwald.de/finalizer"
View Source
const OldFinalizerName = "harbor-operator.registries.mittwald.de"
deprecated: Use FinalizerName instead. See [^1] [^1]: https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.4.0/#change-your-operators-finalizer-names
Variables ¶
This section is empty.
Functions ¶
func BuildClient ¶
func BuildClient(ctx context.Context, client client.Client, harbor *v1alpha2.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 GenerateProjectMetadata ¶ added in v1.2.6
func GenerateProjectMetadata(projectMeta *v1alpha2.ProjectMetadata) *model.ProjectMetadata
GenerateProjectMetadata constructs the project metadata for a Harbor project
func HarborInstanceIsHealthy ¶ added in v1.3.10
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.