Documentation ¶
Index ¶
- type API
- func (a *API) AssignPrivateIPAddresses(ctx context.Context, eniID string, toAllocate int) ([]string, error)
- func (a *API) AttachNetworkInterface(ctx context.Context, instanceID, eniID string) error
- func (a *API) CreateNetworkInterface(ctx context.Context, secondaryPrivateIPCount int, vSwitchID string, ...) (string, *eniTypes.ENI, error)
- func (a *API) DeleteNetworkInterface(ctx context.Context, eniID string) error
- func (a *API) GetInstance(ctx context.Context, vpcs ipamTypes.VirtualNetworkMap, ...) (*ipamTypes.Instance, error)
- func (a *API) GetInstances(ctx context.Context, vpcs ipamTypes.VirtualNetworkMap, ...) (*ipamTypes.InstanceMap, error)
- func (a *API) GetSecurityGroups(ctx context.Context) (types.SecurityGroupMap, error)
- func (a *API) GetVPC(ctx context.Context, vpcID string) (*ipamTypes.VirtualNetwork, error)
- func (a *API) GetVPCs(ctx context.Context) (ipamTypes.VirtualNetworkMap, error)
- func (a *API) GetVSwitches(ctx context.Context) (ipamTypes.SubnetMap, error)
- func (a *API) UnassignPrivateIPAddresses(ctx context.Context, eniID string, addresses []string) error
- func (a *API) UpdateENIs(enis map[string]ENIMap)
- func (a *API) UpdateSecurityGroups(securityGroups []*types.SecurityGroup)
- func (a *API) UpdateSubnets(subnets []*ipamTypes.Subnet)
- func (a *API) WaitENIAttached(ctx context.Context, eniID string) (string, error)
- type ENIMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func NewAPI ¶
func NewAPI(subnets []*ipamTypes.Subnet, vpcs []*ipamTypes.VirtualNetwork, securityGroups []*types.SecurityGroup) *API
NewAPI returns a new mocked ECS API
func (*API) AssignPrivateIPAddresses ¶
func (*API) AttachNetworkInterface ¶
func (*API) CreateNetworkInterface ¶
func (*API) DeleteNetworkInterface ¶
func (*API) GetInstance ¶
func (*API) GetInstances ¶
func (a *API) GetInstances(ctx context.Context, vpcs ipamTypes.VirtualNetworkMap, subnets ipamTypes.SubnetMap) (*ipamTypes.InstanceMap, error)
func (*API) GetSecurityGroups ¶
func (*API) GetVSwitches ¶
func (*API) UnassignPrivateIPAddresses ¶
func (*API) UpdateENIs ¶
UpdateENIs replaces the ENIs which the mock API will return
func (*API) UpdateSecurityGroups ¶
func (a *API) UpdateSecurityGroups(securityGroups []*types.SecurityGroup)
UpdateSecurityGroups replaces the security groups which the mock API will return
func (*API) UpdateSubnets ¶
UpdateSubnets replaces the subents which the mock API will return
Click to show internal directories.
Click to hide internal directories.