test

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteHarborSyncConfig

func DeleteHarborSyncConfig(cl client.Client, name string)

DeleteHarborSyncConfig deletes a HarborSync config

func DeleteNamespace

func DeleteNamespace(cl client.Client, namespace string)

DeleteNamespace deletes a namespace

func DeleteSecret

func DeleteSecret(cl client.Client, ns, name string)

DeleteSecret deletes a secret

func EnsureHarborSyncConfig

func EnsureHarborSyncConfig(cl client.Client, name string) crdv1.HarborSync

EnsureHarborSyncConfig creates a HarborSync config with defaults

func EnsureHarborSyncConfigWithParams

func EnsureHarborSyncConfigWithParams(
	cl client.Client,
	name,
	projectName string,
	mapping *crdv1.ProjectMapping,
	whc []crdv1.WebhookConfig,
) crdv1.HarborSync

EnsureHarborSyncConfigWithParams does the same as EnsureHarborSyncConfig but gives you more params

func EnsureNamespace

func EnsureNamespace(cl client.Client, namespace string)

EnsureNamespace ensures that a namespace is present

Types

This section is empty.

Jump to

Keyboard shortcuts

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