state

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 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) 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