Documentation ¶
Index ¶
- Constants
- func AssertDeletedReplication(ctx context.Context, log logr.Logger, harborClient *h.RESTClient, ...) error
- func AssertHealthyHarborInstance(ctx context.Context, harborClient *h.RESTClient) error
- func BuildClient(ctx context.Context, cl client.Client, harbor *v1alpha2.Instance) (*h.RESTClient, error)
- func DeleteHarborProject(ctx context.Context, harborClient *h.RESTClient, p *model.Project) error
- func FetchHarborProjectIfExists(ctx context.Context, harborClient *h.RESTClient, projectName string) (*model.Project, bool, error)
- func GenerateProjectMetadata(projectMeta *v1alpha2.ProjectMetadata) *model.ProjectMetadata
- func GetOperationalHarborInstance(ctx context.Context, instanceKey client.ObjectKey, cl client.Client) (*registriesv1alpha2.Instance, error)
- func GetUnhealthyComponents(status []*model.ComponentHealthStatus) []string
Constants ¶
View Source
const FinalizerName = "registries.mittwald.de/finalizer"
Variables ¶
This section is empty.
Functions ¶
func AssertDeletedReplication ¶ added in v1.4.0
func AssertDeletedReplication(ctx context.Context, log logr.Logger, harborClient *h.RESTClient, replication *v1alpha2.Replication) error
AssertDeletedReplication deletes a replication, first ensuring its existence
func AssertHealthyHarborInstance ¶ added in v1.5.0
func AssertHealthyHarborInstance(ctx context.Context, harborClient *h.RESTClient) error
func BuildClient ¶
func BuildClient(ctx context.Context, cl 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 DeleteHarborProject ¶ added in v1.4.0
func FetchHarborProjectIfExists ¶ added in v1.4.0
func GenerateProjectMetadata ¶ added in v1.2.6
func GenerateProjectMetadata(projectMeta *v1alpha2.ProjectMetadata) *model.ProjectMetadata
GenerateProjectMetadata constructs the project metadata for a Harbor project
func GetOperationalHarborInstance ¶ added in v1.4.0
func GetOperationalHarborInstance(ctx context.Context, instanceKey client.ObjectKey, cl client.Client) (*registriesv1alpha2.Instance, error)
GetOperationalHarborInstance returns a harbor instance if it exists. Returns an error if the instance could not be found or is not in the 'Installed' phase.
func GetUnhealthyComponents ¶ added in v1.5.0
func GetUnhealthyComponents(status []*model.ComponentHealthStatus) []string
GetUnhealthyComponents takes a list of components and returns a list of components that are not healthy.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.