Documentation
¶
Index ¶
- Constants
- 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 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 NextApplyDir(path string) (applyDirName string, nextApplyDirError error)
- func SSHIntoVM(ipAddress string, user string, port int)
- func StringSliceToPointerSlice(strSlice []string) []*string
- func WhichCloudProvider() string
- type CopyAndRunRemoteFileConfig
- type DeployOutput
- type Remote
- type RemoteRunConfig
Constants ¶
View Source
const (
ONCTLDIR = ".onctl"
)
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 GetSecurityGroupByName ¶
func GetSecurityGroupByName(svc *ec2.EC2, name string) []*ec2.SecurityGroup
func GetSecurityGroups ¶
func GetSecurityGroups(svc *ec2.EC2, vpcId *string) []*ec2.SecurityGroup
func NextApplyDir ¶ added in v0.1.6
func WhichCloudProvider ¶
func WhichCloudProvider() string
Types ¶
type CopyAndRunRemoteFileConfig ¶ added in v0.1.6
type DeployOutput ¶
type Remote ¶ added in v0.1.6
type Remote struct {
Username string
IPAddress string
SSHPort int
PrivateKey string
Client *ssh.Client
}
func (*Remote) CopyAndRunRemoteFile ¶ added in v0.1.6
func (r *Remote) CopyAndRunRemoteFile(config *CopyAndRunRemoteFileConfig) error
creates a new apply dir and copies the file to the remote ex. ~/.onctl/apply01 executes the file on the remote
func (*Remote) NewSSHConnection ¶ added in v0.1.6
func (*Remote) RemoteRun ¶ added in v0.1.6
func (r *Remote) RemoteRun(remoteRunConfig *RemoteRunConfig) (string, error)
func (*Remote) SSHCopyFile ¶ added in v0.1.6
func (Remote) WaitForCloudInit ¶ added in v0.1.6
func (r Remote) WaitForCloudInit()
WaitForCloudInit waits for cloud-init to finish
type RemoteRunConfig ¶ added in v0.1.6
Click to show internal directories.
Click to hide internal directories.