reconciler

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReconcileRobotAccounts

func ReconcileRobotAccounts(
	harborAPI harbor.API,
	creds CredentialStore,
	project harbor.Project,
	accountSuffix string,
	pushAccess bool,
	rotationInterval time.Duration,
) (*crdv1.RobotAccountCredential, bool, error)

ReconcileRobotAccounts ensures that the required robot accounts exist in the given project

Types

type CredentialStore

type CredentialStore interface {
	Has(project, name string) bool
	Get(project, name string) (*crdv1.RobotAccountCredential, error)
	Set(project string, cred crdv1.RobotAccountCredential) error
	Reset() error
}

CredentialStore is an interface that is used to store the credentials

type MappingFunc

MappingFunc implements a specific strategy for reconciling the cluster state

func MappingFuncForConfig

func MappingFuncForConfig(mapping crdv1.ProjectMapping) (MappingFunc, error)

MappingFuncForConfig returns a MappingFunc for the given mapping which can be used by the called to reconcile the desired state

Jump to

Keyboard shortcuts

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