Documentation
¶
Index ¶
- Constants
- type Commit
- type Container
- type ContainersByCreated
- type Docker
- func (d *Docker) BuildImage(p *Project, rev Revision, dockerfile []byte) error
- func (d *Docker) Clean(p *Project) error
- func (d *Docker) Deploy(p *Project, rev Revision, dockerfile []byte, force bool) error
- func (d *Docker) ListContainers(p *Project) ([]*Container, error)
- func (d *Docker) ListImages(p *Project) ([]*Image, error)
- func (d *Docker) Run(p *Project, rev Revision) error
- type DockerGroup
- func (d *DockerGroup) BuildImage(p *Project, rev Revision, dockerfile []byte) []error
- func (d *DockerGroup) Clean(p *Project) []error
- func (d *DockerGroup) Deploy(p *Project, rev Revision, dockerfile []byte, force bool) []error
- func (d *DockerGroup) ListContainers(p *Project) ([]*Container, []error)
- func (d *DockerGroup) ListImages(p *Project) ([]*Image, []error)
- func (d *DockerGroup) Run(p *Project, rev Revision) []error
- type Enviroment
- type Github
- type Image
- type ImageId
- type ImagesByCreated
- type Link
- type LinkDefinition
- type Project
- func (p *Project) Deploy(enviroment string, force bool) []error
- func (p *Project) List() ([]*Container, []error)
- func (p *Project) Status() ([]*ProjectStatus, []error)
- func (p *Project) StatusByEnviroment(e *Enviroment) (*ProjectStatus, []error)
- func (p *Project) String() string
- func (p *Project) Test(enviroment string) (*ProjectDeployResult, error)
- type ProjectDeployResult
- type ProjectStatus
- type Revision
- type VCS
- type VCSInfo
Constants ¶
View Source
const DEFAULT_BRANCH = "master"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainersByCreated ¶
type ContainersByCreated []*Container
func (ContainersByCreated) Len ¶
func (c ContainersByCreated) Len() int
func (ContainersByCreated) Less ¶
func (c ContainersByCreated) Less(i, j int) bool
func (ContainersByCreated) Swap ¶
func (c ContainersByCreated) Swap(i, j int)
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
func (*Docker) BuildImage ¶
type DockerGroup ¶
func NewDockerGroup ¶
func NewDockerGroup(enviroment *Enviroment) (*DockerGroup, error)
func (*DockerGroup) BuildImage ¶
func (d *DockerGroup) BuildImage(p *Project, rev Revision, dockerfile []byte) []error
func (*DockerGroup) Clean ¶
func (d *DockerGroup) Clean(p *Project) []error
func (*DockerGroup) ListContainers ¶
func (d *DockerGroup) ListContainers(p *Project) ([]*Container, []error)
func (*DockerGroup) ListImages ¶
func (d *DockerGroup) ListImages(p *Project) ([]*Image, []error)
type Enviroment ¶
func (*Enviroment) String ¶
func (e *Enviroment) String() string
type Github ¶
func (*Github) GetDockerFile ¶
type Image ¶
type Image struct {
DockerEndPoint string
docker.APIImages
}
func (Image) GetRepoTagsAsImageId ¶
type ImageId ¶
type ImageId string
func (ImageId) GetProjectString ¶
func (ImageId) GetRevisionString ¶
func (ImageId) IsRevision ¶
type ImagesByCreated ¶
type ImagesByCreated []*Image
func (ImagesByCreated) Len ¶
func (c ImagesByCreated) Len() int
func (ImagesByCreated) Less ¶
func (c ImagesByCreated) Less(i, j int) bool
func (ImagesByCreated) Swap ¶
func (c ImagesByCreated) Swap(i, j int)
type LinkDefinition ¶
type LinkDefinition string
func (LinkDefinition) GetAlias ¶
func (l LinkDefinition) GetAlias() string
func (LinkDefinition) GetProjectName ¶
func (l LinkDefinition) GetProjectName() string
type Project ¶
type Project struct {
Name string
Repository VCS
RelatedRepositories []VCS `gcfg:"RelatedRepository"`
Branch string `default:"master"`
Dockerfile string `default:"Dockerfile"`
GithubToken string `json:"-"`
History int `default:"3"`
UseShortRevisions bool `default:"true"`
Files []string `gcfg:"File"`
TestCommand string
NoCache bool
Ports []string `gcfg:"Port"`
Links map[string]*Link `json:"-"`
LinkNames []LinkDefinition `gcfg:"Link"`
LinkedBy []*Project `json:"-"`
Enviroments map[string]*Enviroment `json:"-"`
EnviromentNames []string `gcfg:"Enviroment"`
}
func (*Project) Status ¶
func (p *Project) Status() ([]*ProjectStatus, []error)
func (*Project) StatusByEnviroment ¶
func (p *Project) StatusByEnviroment(e *Enviroment) (*ProjectStatus, []error)
type ProjectDeployResult ¶
type ProjectDeployResult struct {
*command.ExecutionResponse
}
type ProjectStatus ¶
type ProjectStatus struct {
Enviroment *Enviroment
LastRevision Revision
RunningContainers []*Container
Containers []*Container
}
Click to show internal directories.
Click to hide internal directories.