Documentation ¶
Index ¶
- Constants
- func BlockUntilSSHOpen(host, publicIP, sshUser, sshKey string)
- func Cmd() *cobra.Command
- func DOCreateCmd() *cobra.Command
- func DODeleteCmd() *cobra.Command
- func ExecuteCmd(cmd, hostname, user, sshKey string) (string, error)
- func GetProvisioner() (*doProvisioner, bool)
- func WaitForSSH(ProvisionedNodes ProvisionedNodes, sshKey string) error
- type Client
- func (c Client) CreateKey(token string, config KeyConfig) (KeyConfig, error)
- func (c Client) CreateNode(token string, config NodeConfig, keyconfig KeyConfig) (Droplet, error)
- func (c Client) DeleteDropletsByTag(token string, tag string, keyname string) error
- func (c Client) DeleteKeyByName(token string, keyName string) error
- func (c Client) FindKeyByName(token string, keyName string) (KeyConfig, error)
- func (c Client) GetDroplet(token string, dropletID int) (Droplet, error)
- type DOOpts
- type Droplet
- type KeyConfig
- type LinuxDistro
- type NodeConfig
- type NodeCount
- type ProvisionedNodes
- type TokenSource
Constants ¶
View Source
const ( SSHKEY = "apprenda-key" KET_INSTALL_DIR = "/ket" )
Variables ¶
This section is empty.
Functions ¶
func BlockUntilSSHOpen ¶
func BlockUntilSSHOpen(host, publicIP, sshUser, sshKey string)
BlockUntilSSHOpen waits until the node with the given IP is accessible via SSH.
func DOCreateCmd ¶
func DODeleteCmd ¶
func ExecuteCmd ¶
func GetProvisioner ¶
func GetProvisioner() (*doProvisioner, bool)
func WaitForSSH ¶
func WaitForSSH(ProvisionedNodes ProvisionedNodes, sshKey string) error
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for provisioning machines on AWS
func (Client) CreateNode ¶
func (Client) DeleteDropletsByTag ¶
func (Client) FindKeyByName ¶
type DOOpts ¶
type DOOpts struct { Token string ClusterTag string EtcdNodeCount uint16 MasterNodeCount uint16 WorkerNodeCount uint16 NoPlan bool InstanceType string WorkerType string Image string Region string Storage bool SSHUser string SSHKeyName string SSHPrivateKey string SSHPublicKey string BootstrapNode bool RemoveKey bool BootstrapFile string }
type LinuxDistro ¶
type LinuxDistro string
type NodeConfig ¶
type ProvisionedNodes ¶
type TokenSource ¶
type TokenSource struct {
AccessToken string
}
Click to show internal directories.
Click to hide internal directories.