Documentation ¶
Index ¶
- type Client
- func (c *Client) AssignPrivateIpAddresses(ctx context.Context, eniID string, addresses int64) error
- func (c *Client) AttachNetworkInterface(ctx context.Context, index int64, instanceID, eniID string) (string, error)
- func (c *Client) CreateNetworkInterface(ctx context.Context, toAllocate int64, subnetID, desc string, groups []string) (string, *v2.ENI, error)
- func (c *Client) DeleteNetworkInterface(ctx context.Context, eniID string) error
- func (c *Client) GetInstances(ctx context.Context, vpcs types.VpcMap, subnets types.SubnetMap) (types.InstanceMap, error)
- func (c *Client) GetSecurityGroups(ctx context.Context) (types.SecurityGroupMap, error)
- func (c *Client) GetSubnets(ctx context.Context) (types.SubnetMap, error)
- func (c *Client) GetVpcs(ctx context.Context) (types.VpcMap, error)
- func (c *Client) ModifyNetworkInterface(ctx context.Context, eniID, attachmentID string, deleteOnTermination bool) error
- func (c *Client) TagENI(ctx context.Context, eniID string, eniTags map[string]string) error
- func (c *Client) UnassignPrivateIpAddresses(ctx context.Context, eniID string, addresses []string) 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 ¶
func (c *Client) AttachNetworkInterface(ctx context.Context, index int64, instanceID, eniID string) (string, error)
AttachNetworkInterface attaches a previously created ENI to an instance
func (*Client) CreateNetworkInterface ¶
func (c *Client) CreateNetworkInterface(ctx context.Context, toAllocate int64, subnetID, desc string, groups []string) (string, *v2.ENI, error)
CreateNetworkInterface creates an ENI with the given parameters
func (*Client) DeleteNetworkInterface ¶
DeleteNetworkInterface deletes an ENI with the specified ID
func (*Client) GetInstances ¶
func (c *Client) GetInstances(ctx context.Context, vpcs types.VpcMap, subnets types.SubnetMap) (types.InstanceMap, error)
GetInstances returns the list of all instances including their ENIs as instanceMap
func (*Client) GetSecurityGroups ¶
GetSecurityGroups returns all EC2 security groups as a SecurityGroupMap
func (*Client) GetSubnets ¶
GetSubnets returns all EC2 subnets as a subnetMap
func (*Client) ModifyNetworkInterface ¶
func (c *Client) ModifyNetworkInterface(ctx context.Context, eniID, attachmentID string, deleteOnTermination bool) error
ModifyNetworkInterface modifies the attributes of an ENI
Click to show internal directories.
Click to hide internal directories.