Documentation ¶
Index ¶
- Constants
- func Critical(ctx ...interface{})
- func Debug(ctx ...interface{})
- func Error(ctx ...interface{})
- func Info(ctx ...interface{})
- func Warning(ctx ...interface{})
- type Commit
- type Container
- type ContainersByCreated
- type Docker
- func (d *Docker) BuildImage(p *Project, rev Revision, dockerfile *Dockerfile, output io.Writer) error
- func (d *Docker) Clean(p *Project) error
- func (d *Docker) Deploy(p *Project, rev Revision, dockerfile *Dockerfile, output io.Writer, 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 *Dockerfile, output io.Writer) []error
- func (d *DockerGroup) Clean(p *Project) []error
- func (d *DockerGroup) Deploy(p *Project, rev Revision, dockerfile *Dockerfile, output io.Writer, 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 Dockerfile
- type Environment
- type Etcd
- type Event
- type EventManager
- type Github
- type Image
- type ImageId
- type ImagesByCreated
- type Link
- type LinkDefinition
- type Project
- func (p *Project) Deploy(environment string, output io.Writer, force bool) []error
- func (p *Project) ListContainers() ([]*Container, []error)
- func (p *Project) ListImages() ([]*Image, []error)
- func (p *Project) Status() ([]*ProjectStatus, []error)
- func (p *Project) StatusByEnvironment(e *Environment) (*ProjectStatus, []error)
- func (p *Project) String() string
- func (p *Project) Test(environment string) (*ProjectDeployResult, error)
- type ProjectDeployResult
- type ProjectStatus
- type Revision
- type Subscriber
- type Task
- type TaskStatus
- type VCS
- type VCSInfo
Constants ¶
View Source
const DEFAULT_BRANCH = "master"
Variables ¶
This section is empty.
Functions ¶
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(environment *Environment) (*DockerGroup, error)
func (*DockerGroup) BuildImage ¶
func (d *DockerGroup) BuildImage(p *Project, rev Revision, dockerfile *Dockerfile, output io.Writer) []error
func (*DockerGroup) Clean ¶
func (d *DockerGroup) Clean(p *Project) []error
func (*DockerGroup) Deploy ¶
func (d *DockerGroup) Deploy(p *Project, rev Revision, dockerfile *Dockerfile, output io.Writer, force bool) []error
func (*DockerGroup) ListContainers ¶
func (d *DockerGroup) ListContainers(p *Project) ([]*Container, []error)
func (*DockerGroup) ListImages ¶
func (d *DockerGroup) ListImages(p *Project) ([]*Image, []error)
type Dockerfile ¶ added in v0.1.0
type Dockerfile struct {
// contains filtered or unexported fields
}
func NewDockerfile ¶ added in v0.1.0
func NewDockerfile(blob []byte, p *Project, r Revision, e *Environment) *Dockerfile
func (*Dockerfile) Get ¶ added in v0.1.0
func (d *Dockerfile) Get() []byte
type Environment ¶ added in v0.1.0
type Environment struct { DockerEndPoints []string `gcfg:"DockerEndPoint"` CertPath string `json:"-"` EtcdServers []string `gcfg:"EtcdServer"` Name string }
func (*Environment) String ¶ added in v0.1.0
func (e *Environment) String() string
type EventManager ¶ added in v0.1.0
var Events *EventManager
func NewEventManager ¶ added in v0.1.0
func NewEventManager() *EventManager
func (*EventManager) Has ¶ added in v0.1.0
func (m *EventManager) Has(e Event, s *Subscriber) int
func (*EventManager) Subscribe ¶ added in v0.1.0
func (m *EventManager) Subscribe(e Event, s *Subscriber)
func (*EventManager) Trigger ¶ added in v0.1.0
func (m *EventManager) Trigger(e Event, ctx ...interface{})
func (*EventManager) Unsubscribe ¶ added in v0.1.0
func (m *EventManager) Unsubscribe(e Event, s *Subscriber)
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"` Dockerfile string `default:"Dockerfile"` GithubToken string `json:"-"` History int `default:"3"` UseShortRevisions bool `default:"true"` Files []string `gcfg:"File"` TestCommand string NoCache bool Restart string Ports []string `gcfg:"Port"` Volumes []string `gcfg:"Volume"` Links map[string]*Link `json:"-"` LinkNames []LinkDefinition `gcfg:"Link"` LinkedBy []*Project `json:"-"` Environments map[string]*Environment EnvironmentNames []string `gcfg:"Environment"` TaskStatus TaskStatus WebHook string `gcfg:"WebHook"` }
func (*Project) ListContainers ¶ added in v0.1.0
func (*Project) ListImages ¶ added in v0.1.0
func (*Project) Status ¶
func (p *Project) Status() ([]*ProjectStatus, []error)
func (*Project) StatusByEnvironment ¶ added in v0.1.0
func (p *Project) StatusByEnvironment(e *Environment) (*ProjectStatus, []error)
type ProjectDeployResult ¶
type ProjectDeployResult struct {
*command.ExecutionResponse
}
type ProjectStatus ¶
type ProjectStatus struct { Environment *Environment LastRevision Revision RunningContainers []*Container Containers []*Container }
type Subscriber ¶ added in v0.1.0
type Subscriber struct {
Handler func(...interface{})
}
type TaskStatus ¶ added in v0.2.0
func (TaskStatus) Start ¶ added in v0.2.0
func (ts TaskStatus) Start(e *Environment, t Task)
func (TaskStatus) Stop ¶ added in v0.2.0
func (ts TaskStatus) Stop(e *Environment, t Task)
Click to show internal directories.
Click to hide internal directories.