state

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package stage stores controller state and persists it in a ConfigMap.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry added in v1.0.0

type Entry struct {
	ExcludedFromSLO                bool
	SoftDeleted                    bool
	SslCertificateName             string
	SslCertificateBindingReported  bool
	SslCertificateCreationReported bool
}

type Interface added in v1.0.0

type Interface interface {
	Delete(ctx context.Context, id types.Id)
	Get(id types.Id) (Entry, error)
	Insert(ctx context.Context, id types.Id, sslCertificateName string)
	List() map[types.Id]Entry
	SetExcludedFromSLO(ctx context.Context, id types.Id) error
	SetSoftDeleted(ctx context.Context, id types.Id, value bool) error
	SetSslCertificateBindingReported(ctx context.Context, id types.Id) error
	SetSslCertificateCreationReported(ctx context.Context, id types.Id) error
}

func New

func New(ctx context.Context, configmap configmap.Interface) Interface

func NewFake added in v1.0.0

func NewFake() Interface

func NewFakeWithEntries added in v1.0.0

func NewFakeWithEntries(mapping map[types.Id]Entry) Interface

Jump to

Keyboard shortcuts

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