Documentation ¶
Index ¶
- type API
- func (e *API) AssignPrivateIpAddresses(eniID string, addresses int64) error
- func (e *API) AttachNetworkInterface(index int64, instanceID, eniID string) (string, error)
- func (e *API) CreateNetworkInterface(toAllocate int64, subnetID, desc string, groups []string) (string, error)
- func (e *API) DeleteNetworkInterface(eniID string) error
- func (e *API) FindSubnetByTags(vpcID, availabilityZone string, required types.Tags) (bestSubnet *types.Subnet)
- func (e *API) GetENI(instanceID string, index int) *v2.ENI
- func (e *API) GetENIs(instanceID string) (enis []*v2.ENI)
- func (e *API) GetSubnet(subnetID string) *types.Subnet
- func (e *API) ModifyNetworkInterface(eniID, attachmentID string, deleteOnTermination bool) error
- func (e *API) Resync()
- func (e *API) SetDelay(op Operation, delay time.Duration)
- func (e *API) SetLimiter(limit float64, burst int)
- func (e *API) SetMockError(op Operation, err error)
- type Operation
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 (*API) AssignPrivateIpAddresses ¶
func (*API) AttachNetworkInterface ¶
func (*API) CreateNetworkInterface ¶
func (*API) DeleteNetworkInterface ¶
func (*API) FindSubnetByTags ¶
func (*API) ModifyNetworkInterface ¶
func (*API) SetDelay ¶
SetDelay specifies the delay which should be simulated for an individual EC2 API operation
func (*API) SetLimiter ¶
SetLimiter adds a rate limiter to all simulated API calls
func (*API) SetMockError ¶
SetMockError modifies the mock API to return an error for a particular operation
Click to show internal directories.
Click to hide internal directories.