Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsSession ¶
type AwsSession struct {
// contains filtered or unexported fields
}
func GetSession ¶
func GetSession(ctx context.Context, creds Creds) (*AwsSession, error)
func NewAwsSession ¶
func NewAwsSession(sess *session.Session) *AwsSession
NewAwsSession creates a new AWS session.
func (*AwsSession) CreateVM ¶
func (c *AwsSession) CreateVM(vm *v1.Vm) error
CreateVM creates a new EC2 instance with given specs.
func (*AwsSession) DeleteVM ¶
func (c *AwsSession) DeleteVM(vm *v1.Vm) error
DeleteVM deletes the existing EC2 instance.
func (*AwsSession) GetExistingVM ¶
func (c *AwsSession) GetExistingVM(vm *v1.Vm) error
GetExistingVM gets the existing EC2 instance details.
Click to show internal directories.
Click to hide internal directories.