harbor

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetHarborCRError         = "Get harbor.goharbor.io CR error"
	CreateHarborCRError      = "Create harbor.goharbor.io CR error"
	UpdateHarborCRError      = "Update harbor.goharbor.io CR error"
	EmptyHarborCRStatusError = "Empty harbor.goharbor.io CR status error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	KubeClient client.Client
	Log        logr.Logger
	Scheme     *runtime.Scheme
}

func NewHarborController

func NewHarborController(options ...k8s.Option) *Controller

func (*Controller) Apply

func (harbor *Controller) Apply(ctx context.Context, harborcluster *goharborv1.HarborCluster, options ...lcm.Option) (*lcm.CRStatus, error)

Apply Harbor instance.

func (*Controller) Delete

func (harbor *Controller) Delete(_ context.Context, _ *goharborv1.HarborCluster) (*lcm.CRStatus, error)

func (*Controller) Upgrade

func (harbor *Controller) Upgrade(_ context.Context, _ *goharborv1.HarborCluster) (*lcm.CRStatus, error)

Jump to

Keyboard shortcuts

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