Documentation ¶
Overview ¶
Code generated by go awsdoublegen; DO NOT EDIT. This file was generated at 2020-01-29T21:22:05+11:00 For SDKVersion 1.28.13 Package ec2instanceconnectdouble contains test double implementation of ec2instanceconnectiface.EC2InstanceConnectAPI
Package ec2instanceconnectdouble provides a TestDouble implementation of ec2instanceconnectiface.EC2InstanceConnectAPI ¶
Code generated by go awsdoublegen; DO NOT EDIT. This file was generated at 2020-01-29T21:22:05+11:00
Index ¶
- type EC2InstanceConnectDouble
- func (d *EC2InstanceConnectDouble) SendSSHPublicKey(i0 *ec2instanceconnect.SendSSHPublicKeyInput) (r0 *ec2instanceconnect.SendSSHPublicKeyOutput, r1 error)
- func (d *EC2InstanceConnectDouble) SendSSHPublicKeyRequest(i0 *ec2instanceconnect.SendSSHPublicKeyInput) (r0 *request.Request, r1 *ec2instanceconnect.SendSSHPublicKeyOutput)
- func (d *EC2InstanceConnectDouble) SendSSHPublicKeyWithContext(i0 context.Context, i1 *ec2instanceconnect.SendSSHPublicKeyInput, ...) (r0 *ec2instanceconnect.SendSSHPublicKeyOutput, r1 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EC2InstanceConnectDouble ¶
type EC2InstanceConnectDouble struct { ec2instanceconnectiface.EC2InstanceConnectAPI *awsdouble.AWSTestDouble }
EC2InstanceConnectDouble is TestDouble for ec2instanceconnectiface.EC2InstanceConnectAPI
func NewDouble ¶
func NewDouble(t godouble.T, configurators ...func(*awsdouble.AWSTestDouble)) *EC2InstanceConnectDouble
Constructor for EC2InstanceConnectDouble Default configuration will ensure
API operations not explicitly stubbed will return an empty output struct pointer, and nil error. To simulate long polling, "Poll" operations will return these values after a random delay of up to 100ms.
WithContext methods implement a 'Fake' method that returns a cancellation error if the context is cancelled before the method is called.
Pages and PagesWithContext methods similarly implement a 'Fake' method that paginates over the underlying method.
This allows tests to only stub the simple api methods and be generally unconcerned whether the SUT is using the Context or Pagination forms of the API.
func (*EC2InstanceConnectDouble) SendSSHPublicKey ¶
func (d *EC2InstanceConnectDouble) SendSSHPublicKey(i0 *ec2instanceconnect.SendSSHPublicKeyInput) (r0 *ec2instanceconnect.SendSSHPublicKeyOutput, r1 error)
func (*EC2InstanceConnectDouble) SendSSHPublicKeyRequest ¶
func (d *EC2InstanceConnectDouble) SendSSHPublicKeyRequest(i0 *ec2instanceconnect.SendSSHPublicKeyInput) (r0 *request.Request, r1 *ec2instanceconnect.SendSSHPublicKeyOutput)
func (*EC2InstanceConnectDouble) SendSSHPublicKeyWithContext ¶
func (d *EC2InstanceConnectDouble) SendSSHPublicKeyWithContext(i0 context.Context, i1 *ec2instanceconnect.SendSSHPublicKeyInput, i2 ...request.Option) (r0 *ec2instanceconnect.SendSSHPublicKeyOutput, r1 error)