Documentation ¶
Index ¶
- Constants
- type AWSClient
- func (c *AWSClient) CreateInstance(parameters interface{}) (string, error)
- func (c *AWSClient) DeleteInstance(instanceId string) error
- func (c *AWSClient) GetInstanceState(instanceId string) (string, error)
- func (c *AWSClient) InjectKeyPair(instanceId string) (string, string, string, error)
- func (c *AWSClient) RevokeKeyPair(instanceId string, privateKey string) error
- type Client
- type SoftLayerClient
- func (c *SoftLayerClient) CreateInstance(parameters interface{}) (string, error)
- func (c *SoftLayerClient) DeleteInstance(instanceId string) error
- func (c *SoftLayerClient) GetInstanceState(instanceId string) (string, error)
- func (c *SoftLayerClient) InjectKeyPair(instanceId string) (string, string, string, error)
- func (c *SoftLayerClient) RevokeKeyPair(instanceId string, privateKeyName string) error
Constants ¶
View Source
const ( AMI_ID = "ami-dc5e75b4" //"ami-ecb68a84" SECURITY_GROUP_ID = "sg-b23aead6" SUBNET_ID = "subnet-0c75a427" KEYPAIR_NAME = "broker_keypair" INSTANCE_TYPE = "t2.micro" LINUX_USER = "ubuntu" KEYPAIR_DIR_NAME = ".gsb" PIRVATE_KEY_FILE_NAME = "broker_id_rsa" PUBLIC_KEY_FILE_NAME = "broker_id_rsa.pub" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSClient ¶
func NewAWSClient ¶
func (*AWSClient) CreateInstance ¶
func (*AWSClient) DeleteInstance ¶
func (*AWSClient) GetInstanceState ¶
state == pending, running, succeeded, failed
func (*AWSClient) InjectKeyPair ¶
type SoftLayerClient ¶
type SoftLayerClient struct {
// contains filtered or unexported fields
}
func NewSoftLayerClient ¶
func NewSoftLayerClient() *SoftLayerClient
func (*SoftLayerClient) CreateInstance ¶
func (c *SoftLayerClient) CreateInstance(parameters interface{}) (string, error)
func (*SoftLayerClient) DeleteInstance ¶
func (c *SoftLayerClient) DeleteInstance(instanceId string) error
func (*SoftLayerClient) GetInstanceState ¶
func (c *SoftLayerClient) GetInstanceState(instanceId string) (string, error)
state == pending, running, succeeded, failed
func (*SoftLayerClient) InjectKeyPair ¶
func (*SoftLayerClient) RevokeKeyPair ¶
func (c *SoftLayerClient) RevokeKeyPair(instanceId string, privateKeyName string) error
Click to show internal directories.
Click to hide internal directories.