state

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentStatus added in v0.5.3

type DeploymentStatus string
var (
	StatusSuccess DeploymentStatus = "SUCCESS"
	StatusFailure DeploymentStatus = "FAILURE"
)

type FileBasedStore

type FileBasedStore struct {
	RootPath string
	Log      *zap.Logger
}

func (*FileBasedStore) LoadServiceState

func (fbs *FileBasedStore) LoadServiceState(service string) (*ServiceState, error)

func (*FileBasedStore) Purge

func (fbs *FileBasedStore) Purge() error

func (*FileBasedStore) SaveServiceState

func (fbs *FileBasedStore) SaveServiceState(service string, state *ServiceState) error

type ServiceState

type ServiceState struct {
	DeploymentID     int              `json:"deploymentID"`
	LastDeployedAt   time.Time        `json:"lastDeployedAt"`
	DeploymentStatus DeploymentStatus `json:"deploymentStatus"`
}

Jump to

Keyboard shortcuts

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