Documentation ¶
Index ¶
- type Client
- func (c *Client) AssignPrivateIpAddresses(eniID string, addresses int64) error
- func (c *Client) AttachNetworkInterface(index int64, instanceID, eniID string) (string, error)
- func (c *Client) CreateNetworkInterface(toAllocate int64, subnetID, desc string, groups []string) (string, error)
- func (c *Client) DeleteNetworkInterface(eniID string) error
- func (c *Client) GetInstances(vpcs eni.VpcMap, subnets eni.SubnetMap) (eni.InstanceMap, error)
- func (c *Client) GetSubnets() (eni.SubnetMap, error)
- func (c *Client) GetVpcs() (eni.VpcMap, error)
- func (c *Client) ModifyNetworkInterface(eniID, attachmentID string, deleteOnTermination bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents an EC2 API client
func (*Client) AssignPrivateIpAddresses ¶
AssignPrivateIpAddresses assigns the specified number of secondary IP addresses
func (*Client) AttachNetworkInterface ¶
AttachNetworkInterface attaches a previously created ENI to an instance
func (*Client) CreateNetworkInterface ¶
func (c *Client) CreateNetworkInterface(toAllocate int64, subnetID, desc string, groups []string) (string, error)
CreateNetworkInterface creates an ENI with the given parameters
func (*Client) DeleteNetworkInterface ¶
DeleteNetworkInterface deletes an ENI with the specified ID
func (*Client) GetInstances ¶
GetInstances returns the list of all instances including their ENIs as instanceMap
func (*Client) GetSubnets ¶
GetSubnets returns all EC2 subnets as a subnetMap
Click to show internal directories.
Click to hide internal directories.