ec2

package
Version: v1.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EC2Instance

type EC2Instance interface {
	LoadDetails(ec2APIHelper api.EC2APIHelper) error
	GetHighestUnusedDeviceIndex() (int64, error)
	FreeDeviceIndex(index int64)
	Name() string
	Os() string
	Type() string
	InstanceID() string
	SubnetID() string
	SubnetMask() string
	SubnetCidrBlock() string
	PrimaryNetworkInterfaceID() string
	InstanceSecurityGroup() []string
	SetNewCustomNetworkingSpec(subnetID string, securityGroup []string)
	UpdateCurrentSubnetAndCidrBlock(helper api.EC2APIHelper) error
}

EC2Instance exposes the immutable details of an ec2 instance and common operations on an EC2 Instance

func NewEC2Instance

func NewEC2Instance(nodeName string, instanceID string, os string) EC2Instance

NewEC2Instance returns a new EC2 Instance type

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL