repository

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: AGPL-3.0 Imports: 20 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapClient

type ConfigMapClient interface {
	corev1client.ConfigMapInterface
}

type DoguConfigRepository

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

func NewDoguConfigRepository

func NewDoguConfigRepository(client ConfigMapClient) *DoguConfigRepository

func NewSensitiveDoguConfigRepository

func NewSensitiveDoguConfigRepository(client SecretClient) *DoguConfigRepository

func (DoguConfigRepository) Create

func (DoguConfigRepository) Delete

func (dcr DoguConfigRepository) Delete(ctx context.Context, name dogu.SimpleName) error

func (DoguConfigRepository) Get

func (DoguConfigRepository) SaveOrMerge

func (dcr DoguConfigRepository) SaveOrMerge(ctx context.Context, doguConfig config.DoguConfig) (config.DoguConfig, error)

func (DoguConfigRepository) Update

func (DoguConfigRepository) Watch

func (dcr DoguConfigRepository) Watch(ctx context.Context, dName dogu.SimpleName, filters ...config.WatchFilter) (<-chan DoguConfigWatchResult, error)

type DoguConfigWatchResult

type DoguConfigWatchResult struct {
	PrevState config.DoguConfig
	NewState  config.DoguConfig
	Err       error
}

type GlobalConfigRepository

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

func NewGlobalConfigRepository

func NewGlobalConfigRepository(client ConfigMapClient) *GlobalConfigRepository

func (GlobalConfigRepository) Create

func (GlobalConfigRepository) Delete

func (gcr GlobalConfigRepository) Delete(ctx context.Context) error

func (GlobalConfigRepository) Get

func (GlobalConfigRepository) SaveOrMerge

func (gcr GlobalConfigRepository) SaveOrMerge(ctx context.Context, globalConfig config.GlobalConfig) (config.GlobalConfig, error)

func (GlobalConfigRepository) Update

func (GlobalConfigRepository) Watch

type GlobalConfigWatchResult

type GlobalConfigWatchResult struct {
	PrevState config.GlobalConfig
	NewState  config.GlobalConfig
	Err       error
}

type MaintenanceModeAdapter added in v0.5.0

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

func NewMaintenanceModeAdapter added in v0.5.0

func NewMaintenanceModeAdapter(owner string, client ConfigMapClient) *MaintenanceModeAdapter

NewMaintenanceModeAdapter creates a new adapter to handel the maintenance mode

func (*MaintenanceModeAdapter) Activate added in v0.5.0

Activate enables the maintenance mode and blocks the execution until the maintenance mode is activated. You can set timeouts via the go context. ConflictError if another component already activated the maintenance mode ConnectionError at any connection issues Generic Error at any other issue

func (*MaintenanceModeAdapter) Deactivate added in v0.5.0

func (mma *MaintenanceModeAdapter) Deactivate(ctx context.Context) error

Deactivate disables the maintenance mode if it is active. ConflictError if another component activated the maintenance mode ConnectionError at any connection issues Generic Error at any other issue

type MaintenanceModeDescription added in v0.5.0

type MaintenanceModeDescription struct {
	Title string
	Text  string
}

MaintenanceModeDescription contains data that gets displayed when the maintenance mode is active.

type SecretClient

type SecretClient interface {
	corev1client.SecretInterface
}

Jump to

Keyboard shortcuts

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