Documentation ¶
Index ¶
- Constants
- func Contains(slice []string, searchValue string) bool
- func CreateDeployOutputFile(deployOutput *DeployOutput)
- func FileToBase64(filepath string) string
- func GenerateMachineUniqueName() string
- func GenerateUserName() string
- 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 ParseDotEnvFile(dotEnvFile string) ([]string, error)
- func SSHIntoVM(request SSHIntoVMRequest)
- func StringSliceToPointerSlice(strSlice []string) []*string
- func WhichCloudProvider() string
- type CopyAndRunRemoteFileConfig
- type DeployOutput
- type Remote
- func (r *Remote) CopyAndRunRemoteFile(config *CopyAndRunRemoteFileConfig) error
- func (r *Remote) DownloadFile(srcPath, dstPath string) error
- func (r *Remote) NewSSHConnection() error
- func (r *Remote) ReadPassphrase() (string, error)
- func (r *Remote) RemoteRun(remoteRunConfig *RemoteRunConfig) (string, error)
- func (r *Remote) SSHCopyFile(srcPath, dstPath string) error
- func (r *Remote) WaitForCloudInit(timeout string)
- type RemoteRunConfig
- type SSHIntoVMRequest
Constants ¶
View Source
const (
ONCTLDIR = ".onctl"
)
Variables ¶
This section is empty.
Functions ¶
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 NextApplyDir ¶ added in v0.1.6
func ParseDotEnvFile ¶ added in v0.1.8
func SSHIntoVM ¶
func SSHIntoVM(request SSHIntoVMRequest)
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 Passphrase string Spinner *spinner.Spinner 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) DownloadFile ¶ added in v0.1.9
func (*Remote) NewSSHConnection ¶ added in v0.1.6
func (*Remote) ReadPassphrase ¶ added in v0.1.17
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
WaitForCloudInit waits for cloud-init to finish
type RemoteRunConfig ¶ added in v0.1.6
Source Files ¶
Click to show internal directories.
Click to hide internal directories.