persistence

package
v0.0.0-...-be2ef80 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDoesNotExist = errors.New("The requested deployment does not exist")

ErrDoesNotExist is an error that is returned if the deployment was not found

View Source
var ErrNotInitialized = errors.New("The deployment store was not initialized")

ErrNotInitialized is returned if the Initialize function is not called

Functions

This section is empty.

Types

type DeploymentStore

type DeploymentStore interface {
	Initialize() error
	UpdateDeployment(DeploymentUpdateCallback) (*deployment.Deployment, error)
	GetDeployment() (*deployment.Deployment, error)
	WriteTo(w io.Writer) error // nolint: vet
}

DeploymentStore can create, update, and retrieve deployments

type DeploymentUpdateCallback

type DeploymentUpdateCallback func(*deployment.Deployment) error

DeploymentUpdateCallback is a function that will be called when UpdateDeployment is called It will receive the current deployment, and be expected to modify it.

Directories

Path Synopsis
Package boltdb provides an implementation of DeploymentStore that uses boltdb.
Package boltdb provides an implementation of DeploymentStore that uses boltdb.

Jump to

Keyboard shortcuts

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