Documentation
¶
Index ¶
- func Contains(slice []string, searchValue string) bool
- func CreateConfigDirIfNotExist() (string, error)
- func CreateDeployOutputFile(deployOutput *DeployOutput)
- func FileToBase64(filepath string) string
- func GenerateMachineUniqueName() string
- func GenerateUserName() string
- func GetCustomData() string
- func GetSecurityGroupByName(svc *ec2.EC2, name string) []*ec2.SecurityGroup
- func GetSecurityGroups(svc *ec2.EC2, vpcId *string) []*ec2.SecurityGroup
- func GetSubnets(svc *ec2.EC2, vpcId *string) []*ec2.Subnet
- func GetVpcs(svc *ec2.EC2) *ec2.DescribeVpcsOutput
- func RemoteRun(user string, addr string, sshPort string, privateKey string, cmd string) (string, error)
- func RunDockerCompose(username, ip, privateKey, composeFile string)
- func RunInit(username, ip, sshPort, privateKey, initFile string)
- func RunLocalInit(username, ip, privateKey, initFile string)
- func RunRemoteBashScript(username, ip, sshPort, privateKey, bashScript string) (string, error)
- func SSHCopyFile(user string, addr string, privateKey string, srcPath, dstPath string) error
- func SSHIntoVM(ipAddress, user, port string)
- func StringSliceToPointerSlice(strSlice []string) []*string
- func WaitForCloudInit(username, ip, sshPort, privateKey string)
- func WhichCloudProvider() string
- type DeployOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfigDirIfNotExist ¶
CreateConfigDirIfNotExist creates a directory on home directory if it does not exist and return the path.
func CreateDeployOutputFile ¶
func CreateDeployOutputFile(deployOutput *DeployOutput)
func FileToBase64 ¶ added in v0.1.2
func GenerateMachineUniqueName ¶
func GenerateMachineUniqueName() string
func GenerateUserName ¶ added in v0.1.2
func GenerateUserName() string
func GetCustomData ¶ added in v0.1.2
func GetCustomData() string
func GetSecurityGroupByName ¶
func GetSecurityGroupByName(svc *ec2.EC2, name string) []*ec2.SecurityGroup
func GetSecurityGroups ¶
func GetSecurityGroups(svc *ec2.EC2, vpcId *string) []*ec2.SecurityGroup
func RemoteRun ¶
func RemoteRun(user string, addr string, sshPort string, privateKey string, cmd string) (string, error)
e.g. output, err := remoteRun("root", "MY_IP", "PRIVATE_KEY", "ls")
func RunDockerCompose ¶
func RunDockerCompose(username, ip, privateKey, composeFile string)
func RunLocalInit ¶
func RunLocalInit(username, ip, privateKey, initFile string)
func RunRemoteBashScript ¶
func SSHCopyFile ¶
func WaitForCloudInit ¶
func WaitForCloudInit(username, ip, sshPort, privateKey string)
WaitForCloudInit waits for cloud-init to finish
func WhichCloudProvider ¶
func WhichCloudProvider() string
Types ¶
Click to show internal directories.
Click to hide internal directories.