Documentation
¶
Index ¶
- type CLI
- func (c *CLI) CreateEnv(store Store, config IAASEnvironment, password, cert, key, ca string, ...) error
- func (c *CLI) DeleteEnv(store Store, config IAASEnvironment, password, cert, key, ca string, ...) error
- func (c *CLI) Locks(config IAASEnvironment, ip, password, ca string) ([]byte, error)
- func (c *CLI) Recreate(config IAASEnvironment, ip, password, ca string) error
- func (c *CLI) RunAuthenticatedCommand(action, ip, password, ca string, detach bool, stdout io.Writer, ...) error
- func (c *CLI) UpdateCloudConfig(config IAASEnvironment, ip, password, ca string) error
- func (c *CLI) UploadConcourseStemcell(config IAASEnvironment, ip, password, ca string) error
- type IAASEnvironment
- type ICLI
- type Option
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
CLI struct holds the abstraction of execCmd
func (*CLI) Locks ¶
func (c *CLI) Locks(config IAASEnvironment, ip, password, ca string) ([]byte, error)
Locks runs bosh locks
func (*CLI) Recreate ¶
func (c *CLI) Recreate(config IAASEnvironment, ip, password, ca string) error
Recreate runs BOSH recreate
func (*CLI) RunAuthenticatedCommand ¶
func (c *CLI) RunAuthenticatedCommand(action, ip, password, ca string, detach bool, stdout io.Writer, flags ...string) error
RunAuthenticatedCommand runs the bosh command `action` with flags `flags` specifying `detach` will cause the task to detach once a deployment starts `detach` is currently only implemented with the action `deploy`
func (*CLI) UpdateCloudConfig ¶
func (c *CLI) UpdateCloudConfig(config IAASEnvironment, ip, password, ca string) error
UpdateCloudConfig generates cloud config from template and use it to update bosh cloud config
func (*CLI) UploadConcourseStemcell ¶
func (c *CLI) UploadConcourseStemcell(config IAASEnvironment, ip, password, ca string) error
UploadConcourseStemcell uploads a stemcell for the chosen IAAS
type IAASEnvironment ¶
type IAASEnvironment interface {
ConfigureDirectorManifestCPI() (string, error)
ConfigureDirectorCloudConfig() (string, error)
ConfigureConcourseStemcell() (string, error)
IAASCheck() iaas.Name
}
IAASEnvironment exposes ConfigureDirectorManifestCPI
type ICLI ¶
type ICLI interface {
CreateEnv(store Store, config IAASEnvironment, password, cert, key, ca string, tags map[string]string) error
DeleteEnv(store Store, config IAASEnvironment, password, cert, key, ca string, tags map[string]string) error
RunAuthenticatedCommand(action, ip, password, ca string, detach bool, stdout io.Writer, flags ...string) error
Locks(config IAASEnvironment, ip, password, ca string) ([]byte, error)
Recreate(config IAASEnvironment, ip, password, ca string) error
UpdateCloudConfig(config IAASEnvironment, ip, password, ca string) error
UploadConcourseStemcell(config IAASEnvironment, ip, password, ca string) error
}
Click to show internal directories.
Click to hide internal directories.