Documentation ¶
Overview ¶
Package juju provide utilities functions for interaction with Juju. It also provides a provisioner implementation for Juju.
In order to use the provisioner, just import tsuru's provision package and juju provision package. Then call provision.Get("juju") to get an instance of JujuProvisioner:
import ( "github.com/globocom/tsuru/provision" _ "github.com/globocom/tsuru/provision/juju" ) // ... func main() { provisioner, err := provision.Get("juju") // Use provisioner. }
Index ¶
- func IsReachable(unit provision.Unit) (bool, error)
- func Router() (router.Router, error)
- type JujuProvisioner
- func (p *JujuProvisioner) AddUnits(app provision.App, n uint) ([]provision.Unit, error)
- func (p *JujuProvisioner) Addr(app provision.App) (string, error)
- func (p *JujuProvisioner) CollectStatus() ([]provision.Unit, error)
- func (p *JujuProvisioner) Deploy(a provision.App, version string, w io.Writer) error
- func (p *JujuProvisioner) DeployPipeline() *action.Pipeline
- func (p *JujuProvisioner) Destroy(app provision.App) error
- func (p *JujuProvisioner) ExecuteCommand(stdout, stderr io.Writer, app provision.App, cmd string, args ...string) error
- func (p *JujuProvisioner) ExecuteCommandOnce(stdout, stderr io.Writer, app provision.App, cmd string, args ...string) error
- func (p *JujuProvisioner) InstallDeps(app provision.App, w io.Writer) error
- func (p *JujuProvisioner) Provision(app provision.App) error
- func (p *JujuProvisioner) RemoveUnit(app provision.App, name string) error
- func (p *JujuProvisioner) Restart(app provision.App) error
- func (p *JujuProvisioner) Start(app provision.App) error
- func (p *JujuProvisioner) Stop(app provision.App) error
- func (JujuProvisioner) Swap(app1, app2 provision.App) error
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsReachable ¶
isReachable returns true if the web application deploy in the unit is accessible via http in the port 80.
Types ¶
type JujuProvisioner ¶
type JujuProvisioner struct {
// contains filtered or unexported fields
}
JujuProvisioner is an implementation for the Provisioner interface. For more details on how a provisioner work, check the documentation of the provision package.
func (*JujuProvisioner) CollectStatus ¶
func (p *JujuProvisioner) CollectStatus() ([]provision.Unit, error)
func (*JujuProvisioner) DeployPipeline ¶
func (p *JujuProvisioner) DeployPipeline() *action.Pipeline
func (*JujuProvisioner) ExecuteCommand ¶
func (*JujuProvisioner) ExecuteCommandOnce ¶
func (*JujuProvisioner) InstallDeps ¶
func (*JujuProvisioner) RemoveUnit ¶
func (p *JujuProvisioner) RemoveUnit(app provision.App, name string) error
Click to show internal directories.
Click to hide internal directories.