Documentation ¶
Index ¶
- Constants
- type DBConnect
- func (d *DBConnect) Close() bool
- func (d *DBConnect) QueryDeployByName(domain string, environment string, name string) (*DeployStatus, error)
- func (d *DBConnect) StartDeploy(domain string, environment string, name string, version string) bool
- func (d *DBConnect) UpdateDeployByName(domain string, environment string, name string, deployID string, status int) bool
- func (d *DBConnect) ValidAuth(key string) bool
- type DeployStatus
Constants ¶
View Source
const ( Started Success Failed )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBConnect ¶
type DBConnect struct {
// contains filtered or unexported fields
}
func NewDBConnect ¶
NewDBConnect is a factory method that returns a new db connection
func (*DBConnect) QueryDeployByName ¶
func (d *DBConnect) QueryDeployByName(domain string, environment string, name string) (*DeployStatus, error)
QueryDeploy returns the status of a deploy request.
func (*DBConnect) StartDeploy ¶
func (d *DBConnect) StartDeploy(domain string, environment string, name string, version string) bool
StartDeploy inserts or updates the deploy tracker for versions.
type DeployStatus ¶
type DeployStatus struct { DeployID string `json:"deployID"` // The deploy UUID. Domain string `json:"domain"` // The domain name serviced. Environment string `json:"environment"` // The environment serviced (development, qa etc.) Name string `json:"name"` // The application name of the service ex: video-mobile. Version string `json:"version"` // The version of the application ex; 1.0.0-32 Status int `json:"status"` // The status ID of the result. UpdatedAt string `json:"updatedAt"` // The create date and time of the deploy. CreatedAt string `json:"createdAt"` // The last update to this record. }
DeployStatus is used to return deploy status information from the database to the requester.
Click to show internal directories.
Click to hide internal directories.