internal

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 14 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 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 HarborInstanceIsHealthy added in v1.3.10

func HarborInstanceIsHealthy(ctx context.Context, harborClient *h.RESTClient) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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