Documentation ¶
Index ¶
Constants ¶
View Source
const ( CreatedState = "create" RunningState = "running" StagingState = "staging" )
View Source
const ( TimeFormat = "2006-01-02 15:04:05" FarmerPreMessage = "----> Farmer: " )
View Source
const ( ProductionType = "production" StagingType = "staging" TestType = "test" )
View Source
const ( ScriptCreate = "create" ScriptDeploy = "deploy" ScriptTest = "test" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Box ¶
type Box struct { ID int `gorm:"primary_key"` Name string `sql:"type:varchar(64);" json:"name"` Directory string `sql:"type:varchar(255);not null" json:"directory"` State string `sql:"type:varchar(32);not null; default:'creating'" json:"state"` Revision int `sql:"default:0" json:"revision"` OutputStream io.Writer `sql:"-" json:"-"` ErrorStream io.Writer `sql:"-" json:"-"` ProductionID int Production Release StagingID int Staging Release TestID int Test Release KeepReleases int `sql:"default:1" json:"keep_releases"` Releases []Release `json:"-"` Domains []Domain `json:"domains"` UpdateTime string `sql:"type:char(64);not null" json:"update_time"` }
func FetchAllBox ¶
func FindBoxById ¶
func FindBoxByName ¶
func (*Box) DeleteDomain ¶
type Container ¶
type Container struct { FarmerConfig IP string `sql:"-" json:"-"` Hostname string `sql:"-" json:"hostname"` }
type FarmerConfig ¶
type Release ¶
type Release struct { ID int `gorm:"primary_key"` ContainerID string `sql:"type:varchar(64)" json:"container_id"` BoxID int `sql:"index" json:"-"` Box *Box `sql:"-" json:"-"` CodeDirectory string `sql:"type:varchar(255);not null" json:"-"` RepoUrl string `sql:"type:varchar(255);not null" json:"repo_url"` Pathspec string `sql:"type:varchar(255);not null" json:"pathspec"` Type string `sql:"type:varchar(16)" json:"type"` Container CreatedAt string `sql:"type:varchar(32);not null" json:"created_at"` }
Click to show internal directories.
Click to hide internal directories.