Documentation ¶
Index ¶
- func CalculateBackoff(retry int) time.Duration
- func ConnectToEC2ViaSSH(config SSHConfig) (*ssh.Client, error)
- func ConnectToEC2ViaSSHWithRetry(sshConfig SSHConfig) (*ssh.Client, error)
- func GenerateCryptoID(length int) string
- func GenerateRandomID(length int) string
- func GenerateTimestampID() string
- func GenerateUUID() string
- func GetInstanceIDByPublicIP(publicIP string) (string, error)
- func GetPublicIPByInstanceID(instanceID, awsRegion string) (string, error)
- func LoadConfig[T any](baseDir, filename string, data *T) error
- func OpenBrowser(url string) error
- func RunCommandOnEC2(client *ssh.Client, command string) error
- func SaveConfig[T any](data T, baseDir, filename string) error
- func StartEC2Instance(instanceID, region string) error
- func StopEC2Instance(instanceID, region string) error
- func UploadFileToS3(filePath string, bucket string, region string) error
- func WaitForInstanceRunning(instanceID, region string) error
- type ProgressLogger
- type SSHConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateBackoff ¶
func GenerateCryptoID ¶
func GenerateRandomID ¶
func GenerateTimestampID ¶
func GenerateTimestampID() string
func GenerateUUID ¶
func GenerateUUID() string
func GetInstanceIDByPublicIP ¶
func GetPublicIPByInstanceID ¶
func LoadConfig ¶
func OpenBrowser ¶
func SaveConfig ¶
func StartEC2Instance ¶
func StopEC2Instance ¶
func WaitForInstanceRunning ¶
Types ¶
type ProgressLogger ¶
type ProgressLogger struct {
// contains filtered or unexported fields
}
func NewProgressLogger ¶
func NewProgressLogger(totalRetries int, authTimeout time.Duration) *ProgressLogger
func (*ProgressLogger) LogCompletion ¶
func (pl *ProgressLogger) LogCompletion(success bool, message string)
func (*ProgressLogger) LogProgress ¶
func (pl *ProgressLogger) LogProgress(retries int, message string)
Click to show internal directories.
Click to hide internal directories.