Documentation ¶
Index ¶
- type Application
- func (app *Application) BuildArgs() (map[string]string, error)
- func (app *Application) DeleteDeployment(deployment string) error
- func (app *Application) Deployments() (map[string]string, error)
- func (app *Application) DirExists() bool
- func (app *Application) EnvironmentVariables() (map[string]string, error)
- func (app *Application) HealthCheck() (string, int, int, error)
- func (app *Application) RegisterMetadata(revision, timestamp string) error
- type Compose
- func (c *Compose) Build() error
- func (c *Compose) GetContainerID(service string) (string, error)
- func (c *Compose) InjectBuildArgs(buildArgs map[string]string)
- func (c *Compose) InjectEnvironmentVariables(envs map[string]string)
- func (c *Compose) Pull() error
- func (c *Compose) RewritePortBindings()
- func (c *Compose) SaveAs(filePath string) error
- func (c *Compose) Stop() error
- func (c *Compose) Up() error
- type ComposeConfig
- type Container
- type Deployment
- type HealthCheckFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { Repository string Username string AppName string // contains filtered or unexported fields }
func ApplicationFromArgs ¶
func ApplicationFromArgs(args []string, etcd *store.Etcd) (*Application, error)
args:
user/app, 19fb23cd71a4cf2eab00ad1a393e40de4ed61531, user, 4c:1f:92:b9:43:2b:23:0b:c0:e8:ab:12:cd:34:ef:56, refs/heads/branch-name
func (*Application) DeleteDeployment ¶
func (app *Application) DeleteDeployment(deployment string) error
func (*Application) Deployments ¶
func (app *Application) Deployments() (map[string]string, error)
func (*Application) DirExists ¶
func (app *Application) DirExists() bool
func (*Application) EnvironmentVariables ¶
func (app *Application) EnvironmentVariables() (map[string]string, error)
func (*Application) HealthCheck ¶
func (app *Application) HealthCheck() (string, int, int, error)
func (*Application) RegisterMetadata ¶
func (app *Application) RegisterMetadata(revision, timestamp string) error
type Compose ¶
type Compose struct { ComposeFilePath string ProjectName string // contains filtered or unexported fields }
func NewCompose ¶
func (*Compose) InjectBuildArgs ¶
func (*Compose) InjectEnvironmentVariables ¶
func (*Compose) RewritePortBindings ¶
func (c *Compose) RewritePortBindings()
type ComposeConfig ¶
type ComposeConfig struct { Version string `yaml:"version,omitempty"` Services map[string]*config.ServiceConfig `yaml:"services,omitempty"` Volumes map[string]*config.VolumeConfig `yaml:"volumes,omitempty"` Networks map[string]*config.NetworkConfig `yaml:"networks,omitempty"` }
type Container ¶
type Container struct { ContainerId string // contains filtered or unexported fields }
func ContainerFromID ¶
func (*Container) ExecuteHealthCheck ¶
func (c *Container) ExecuteHealthCheck(path string, interval, maxTry int, callback HealthCheckFunc) bool
type Deployment ¶
type Deployment struct { App *Application Branch string ComposeFilePath string ProjectName string Revision string Timestamp string }
func DeploymentFromArgs ¶
func DeploymentFromArgs(app *Application, args []string, timestamp, repositoryDir string) (*Deployment, error)
args:
user/app, 19fb23cd71a4cf2eab00ad1a393e40de4ed61531, user, 4c:1f:92:b9:43:2b:23:0b:c0:e8:ab:12:cd:34:ef:56, refs/heads/branch-name
func NewDeployment ¶
func NewDeployment(app *Application, branch, revision, timestamp, repositoryDir string) *Deployment
func (*Deployment) Register ¶
func (d *Deployment) Register() error
type HealthCheckFunc ¶
Click to show internal directories.
Click to hide internal directories.