Skip to content

Instantly share code, notes, and snippets.

@tejasmanohar

tejasmanohar/.go Secret

Created November 11, 2016 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tejasmanohar/3c59bed42f3d46adba411c006e03bf42 to your computer and use it in GitHub Desktop.
Save tejasmanohar/3c59bed42f3d46adba411c006e03bf42 to your computer and use it in GitHub Desktop.
package mocks
import ec2 "github.com/aws/aws-sdk-go/service/ec2"
import mock "github.com/stretchr/testify/mock"
import provider "github.com/NetSys/quilt/cluster/provider"
// EC2Client is an autogenerated mock type for the EC2Client type
type EC2Client struct {
mock.Mock
}
// AssociateAddress provides a mock function with given fields: _a0
func (_m *EC2Client) AssociateAddress(_a0 *ec2.AssociateAddressInput) (*ec2.AssociateAddressOutput, error) {
ret := _m.Called(_a0)
var r0 *ec2.AssociateAddressOutput
if rf, ok := ret.Get(0).(func(*ec2.AssociateAddressInput) *ec2.AssociateAddressOutput); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ec2.AssociateAddressOutput)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*ec2.AssociateAddressInput) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// AuthorizeSecurityGroupIngress provides a mock function with given fields: _a0
func (_m *EC2Client) AuthorizeSecurityGroupIngress(_a0 *ec2.AuthorizeSecurityGroupIngressInput) (*ec2.AuthorizeSecurityGroupIngressOutput, error) {
ret := _m.Called(_a0)
var r0 *ec2.AuthorizeSecurityGroupIngressOutput
if rf, ok := ret.Get(0).(func(*ec2.AuthorizeSecurityGroupIngressInput) *ec2.AuthorizeSecurityGroupIngressOutput); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ec2.AuthorizeSecurityGroupIngressOutput)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*ec2.AuthorizeSecurityGroupIngressInput) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// CancelSpotInstanceRequests provides a mock function with given fields: _a0
func (_m *EC2Client) CancelSpotInstanceRequests(_a0 *ec2.CancelSpotInstanceRequestsInput) (*ec2.CancelSpotInstanceRequestsOutput, error) {
ret := _m.Called(_a0)
var r0 *ec2.CancelSpotInstanceRequestsOutput
if rf, ok := ret.Get(0).(func(*ec2.CancelSpotInstanceRequestsInput) *ec2.CancelSpotInstanceRequestsOutput); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ec2.CancelSpotInstanceRequestsOutput)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*ec2.CancelSpotInstanceRequestsInput) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// CreateSecurityGroup provides a mock function with given fields: _a0
func (_m *EC2Client) CreateSecurityGroup(_a0 *ec2.CreateSecurityGroupInput) (*ec2.CreateSecurityGroupOutput, error) {
ret := _m.Called(_a0)
var r0 *ec2.CreateSecurityGroupOutput
if rf, ok := ret.Get(0).(func(*ec2.CreateSecurityGroupInput) *ec2.CreateSecurityGroupOutput); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ec2.CreateSecurityGroupOutput)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*ec2.CreateSecurityGroupInput) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// CreateTags provides a mock function with given fields: _a0
func (_m *EC2Client) CreateTags(_a0 *ec2.CreateTagsInput) (*ec2.CreateTagsOutput, error) {
ret := _m.Called(_a0)
var r0 *ec2.CreateTagsOutput
if rf, ok := ret.Get(0).(func(*ec2.CreateTagsInput) *ec2.CreateTagsOutput); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ec2.CreateTagsOutput)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*ec2.CreateTagsInput) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// DescribeInstances provides a mock function with given fields: _a0
func (_m *EC2Client) DescribeInstances(_a0 *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error) {
ret := _m.Called(_a0)
var r0 *ec2.DescribeInstancesOutput
if rf, ok := ret.Get(0).(func(*ec2.DescribeInstancesInput) *ec2.DescribeInstancesOutput); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ec2.DescribeInstancesOutput)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*ec2.DescribeInstancesInput) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// DescribeSecurityGroups provides a mock function with given fields: _a0
func (_m *EC2Client) DescribeSecurityGroups(_a0 *ec2.DescribeSecurityGroupsInput) (*ec2.DescribeSecurityGroupsOutput, error) {
ret := _m.Called(_a0)
var r0 *ec2.DescribeSecurityGroupsOutput
if rf, ok := ret.Get(0).(func(*ec2.DescribeSecurityGroupsInput) *ec2.DescribeSecurityGroupsOutput); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ec2.DescribeSecurityGroupsOutput)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*ec2.DescribeSecurityGroupsInput) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// DescribeSpotInstanceRequests provides a mock function with given fields: _a0
func (_m *EC2Client) DescribeSpotInstanceRequests(_a0 *ec2.DescribeSpotInstanceRequestsInput) (*ec2.DescribeSpotInstanceRequestsOutput, error) {
ret := _m.Called(_a0)
var r0 *ec2.DescribeSpotInstanceRequestsOutput
if rf, ok := ret.Get(0).(func(*ec2.DescribeSpotInstanceRequestsInput) *ec2.DescribeSpotInstanceRequestsOutput); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ec2.DescribeSpotInstanceRequestsOutput)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*ec2.DescribeSpotInstanceRequestsInput) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// DescribeVolumes provides a mock function with given fields: _a0
func (_m *EC2Client) DescribeVolumes(_a0 *ec2.DescribeVolumesInput) (*ec2.DescribeVolumesOutput, error) {
ret := _m.Called(_a0)
var r0 *ec2.DescribeVolumesOutput
if rf, ok := ret.Get(0).(func(*ec2.DescribeVolumesInput) *ec2.DescribeVolumesOutput); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ec2.DescribeVolumesOutput)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*ec2.DescribeVolumesInput) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// RequestSpotInstances provides a mock function with given fields: _a0
func (_m *EC2Client) RequestSpotInstances(_a0 *ec2.RequestSpotInstancesInput) (*ec2.RequestSpotInstancesOutput, error) {
ret := _m.Called(_a0)
var r0 *ec2.RequestSpotInstancesOutput
if rf, ok := ret.Get(0).(func(*ec2.RequestSpotInstancesInput) *ec2.RequestSpotInstancesOutput); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ec2.RequestSpotInstancesOutput)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*ec2.RequestSpotInstancesInput) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// RevokeSecurityGroupIngress provides a mock function with given fields: _a0
func (_m *EC2Client) RevokeSecurityGroupIngress(_a0 *ec2.RevokeSecurityGroupIngressInput) (*ec2.RevokeSecurityGroupIngressOutput, error) {
ret := _m.Called(_a0)
var r0 *ec2.RevokeSecurityGroupIngressOutput
if rf, ok := ret.Get(0).(func(*ec2.RevokeSecurityGroupIngressInput) *ec2.RevokeSecurityGroupIngressOutput); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ec2.RevokeSecurityGroupIngressOutput)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*ec2.RevokeSecurityGroupIngressInput) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// TerminateInstances provides a mock function with given fields: _a0
func (_m *EC2Client) TerminateInstances(_a0 *ec2.TerminateInstancesInput) (*ec2.TerminateInstancesOutput, error) {
ret := _m.Called(_a0)
var r0 *ec2.TerminateInstancesOutput
if rf, ok := ret.Get(0).(func(*ec2.TerminateInstancesInput) *ec2.TerminateInstancesOutput); ok {
r0 = rf(_a0)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ec2.TerminateInstancesOutput)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*ec2.TerminateInstancesInput) error); ok {
r1 = rf(_a0)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
var _ provider.EC2Client = (*EC2Client)(nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment