state

package
v0.0.0-...-dd9b6ef Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// InstanceNoExistError indicates an OldInstance was passed in the request, but there's no existing Instance to compare it to in the State Store.
	InstanceNoExistError = status.Error(codes.FailedPrecondition, "OldInstance was passed, but there's no existing Instance")
	// OldInstanceDiffersError indicates the request's OldInstance differs from the existing Instance. (Stale read.) Re-read and try again.
	OldInstanceDiffersError = status.Error(codes.FailedPrecondition, "OldInstance differs from existing Instance")
)

Functions

This section is empty.

Types

type Deleter

type Deleter interface {
	Init() error
	Cancel(error) error
	Commit() error
	RunCleanupFuncs() error
}

Deleter is the interface that enables deleting Instances

type Engine

type Engine interface {
	Init() error
	NewUpdater(*pb.Instance, string) Updater
	NewDeleter(*pb.Instance, string) Deleter
	NewGetter(*pb.GetOptions, *pb.InstanceList, string) Getter
	NewTemplatesGetter(*pb.InstanceList, string) TemplatesGetter
}

Engine is the interface that enables modifying state

type Getter

type Getter interface {
	Run() error
	RunCleanupFuncs() error
}

Getter is the interface that enables getting Instances

type TemplatesGetter

type TemplatesGetter interface {
	Run() error
	RunCleanupFuncs() error
}

TemplatesGetter is the interface that enables getting Instance Templates

type Updater

type Updater interface {
	Init() error
	Cancel(error) error
	Commit(bool) error
	RunCleanupFuncs() error
}

Updater is the interface that enables updating Instances

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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