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. |
Click to show internal directories.
Click to hide internal directories.