internal

package
v1.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 DeleteHarborProject(ctx context.Context, harborClient *h.RESTClient, p *model.Project) error

func FetchHarborProjectIfExists added in v1.4.0

func FetchHarborProjectIfExists(ctx context.Context, harborClient *h.RESTClient, projectName string) (*model.Project, bool, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL