Documentation
¶
Index ¶
- type DB
- func (db *DB) GetDeployment(deploymentID string) (Deployment, error)
- func (db *DB) GetDeploymentHistory(appName string, limit int) ([]Deployment, error)
- func (db *DB) Migrate() error
- func (db *DB) PruneOldDeployments(appName string, deploymentsToKeep int) error
- func (db *DB) SaveDeployment(deployment Deployment) error
- type Deployment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) GetDeployment ¶
func (db *DB) GetDeployment(deploymentID string) (Deployment, error)
func (*DB) GetDeploymentHistory ¶
func (db *DB) GetDeploymentHistory(appName string, limit int) ([]Deployment, error)
func (*DB) PruneOldDeployments ¶
func (*DB) SaveDeployment ¶
func (db *DB) SaveDeployment(deployment Deployment) error
type Deployment ¶
type Deployment struct {
ID string `db:"id" json:"id"`
AppName string `db:"app_name" json:"appName"`
RawAppConfig json.RawMessage `db:"raw_app_config" json:"rawAppConfig"`
DeployedImage json.RawMessage `db:"deployed_image" json:"deployedImage"`
RolledBackFrom *string `db:"rolled_back_from" json:"rolledBackFrom,omitempty"`
}
func (*Deployment) GetDeployedImage ¶
func (d *Deployment) GetDeployedImage() (config.Image, error)
GetDeployedImage parses and returns the deployed image configuration
func (*Deployment) GetImageRef ¶
func (d *Deployment) GetImageRef() (string, error)
Click to show internal directories.
Click to hide internal directories.