Documentation ¶
Index ¶
- type BoltDB
- func (bdb *BoltDB) CreateDeployment(pipeline signalcd.Pipeline) (signalcd.Deployment, error)
- func (bdb *BoltDB) CreatePipeline(p signalcd.Pipeline) (signalcd.Pipeline, error)
- func (bdb *BoltDB) GetCurrentDeployment() (signalcd.Deployment, error)
- func (bdb *BoltDB) GetPipeline(id string) (signalcd.Pipeline, error)
- func (bdb *BoltDB) ListDeployments() ([]signalcd.Deployment, error)
- func (bdb *BoltDB) ListPipelines() ([]signalcd.Pipeline, error)
- func (bdb *BoltDB) SaveStepLogs(ctx context.Context, deployment, step int64, logs []byte) error
- func (bdb *BoltDB) UpdateDeploymentStatus(deploymentNumber int64, step int64, agent string, phase signalcd.Phase) (signalcd.Deployment, error)
- type Events
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltDB ¶
type BoltDB struct {
// contains filtered or unexported fields
}
BoltDB has a connection to the database and implements the needed interfaces.
func (*BoltDB) CreateDeployment ¶
CreateDeployment creates a new Deployment from a Pipeline
func (*BoltDB) CreatePipeline ¶
CreatePipeline saves a Pipeline and returns the saved Pipeline
func (*BoltDB) GetCurrentDeployment ¶
func (bdb *BoltDB) GetCurrentDeployment() (signalcd.Deployment, error)
GetCurrentDeployment gets the current Deployment
func (*BoltDB) GetPipeline ¶
GetPipeline gets a Pipeline by its ID
func (*BoltDB) ListDeployments ¶
func (bdb *BoltDB) ListDeployments() ([]signalcd.Deployment, error)
ListDeployments lists all Deployments
func (*BoltDB) ListPipelines ¶
ListPipelines returns a list of Pipelines
func (*BoltDB) SaveStepLogs ¶
SaveStepLogs saves the logs for a Deployment step by its number
type Events ¶
type Events struct { *BoltDB // contains filtered or unexported fields }
Events wraps BoltDB to publish updated structs
func (*Events) CreateDeployment ¶
CreateDeployment wraps the underlying BoltDB func to publish successfully created Deployments
Click to show internal directories.
Click to hide internal directories.