cesregistry

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocalDoguFetcher

func NewLocalDoguFetcher(doguLocalRegistry local.LocalDoguRegistry) *localDoguFetcher

NewLocalDoguFetcher creates a new dogu fetcher that provides descriptors for dogus.

func NewResourceDoguFetcher

func NewResourceDoguFetcher(client client.Client, doguRemoteRegistry cesremote.Registry) *resourceDoguFetcher

NewResourceDoguFetcher creates a new dogu fetcher that provides descriptors for dogus.

Types

type CesDoguRegistrator

type CesDoguRegistrator struct {
	// contains filtered or unexported fields
}

CesDoguRegistrator is responsible for register dogus in the cluster

func NewCESDoguRegistrator

func NewCESDoguRegistrator(
	client client.Client,
	localDoguRegistry thirdParty.LocalDoguRegistry,
	registry cesregistry.Registry,
	secretGenerator cloudogu.SecretResourceGenerator,
) *CesDoguRegistrator

NewCESDoguRegistrator creates a new instance of the dogu registrator. It registers dogus in the dogu registry and generates keypairs

func (*CesDoguRegistrator) RegisterDoguVersion

func (c *CesDoguRegistrator) RegisterDoguVersion(ctx context.Context, dogu *core.Dogu) error

RegisterDoguVersion registers an upgrade of an existing dogu in a cluster. Use RegisterNewDogu() to complete new dogu installations.

func (*CesDoguRegistrator) RegisterNewDogu

func (c *CesDoguRegistrator) RegisterNewDogu(ctx context.Context, doguResource *k8sv1.Dogu, dogu *core.Dogu) error

RegisterNewDogu registers a completely new dogu in a cluster. Use RegisterDoguVersion() for upgrades of an existing dogu.

func (*CesDoguRegistrator) UnregisterDogu

func (c *CesDoguRegistrator) UnregisterDogu(ctx context.Context, dogu string) error

UnregisterDogu deletes a dogu from the dogu registry

Jump to

Keyboard shortcuts

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