Documentation ¶
Index ¶
- type Client
- type ElasticLoadBalancerInfo
- type LoadBalancerDescriber
- type MockClient
- func (_m *MockClient) DescribeListeners(_a0 context.Context, _a1 *elasticloadbalancingv2.DescribeListenersInput, ...) (*elasticloadbalancingv2.DescribeListenersOutput, error)
- func (_m *MockClient) DescribeLoadBalancers(_a0 context.Context, _a1 *elasticloadbalancingv2.DescribeLoadBalancersInput, ...) (*elasticloadbalancingv2.DescribeLoadBalancersOutput, error)
- func (_m *MockClient) EXPECT() *MockClient_Expecter
- type MockClient_DescribeListeners_Call
- func (_c *MockClient_DescribeListeners_Call) Return(_a0 *elasticloadbalancingv2.DescribeListenersOutput, _a1 error) *MockClient_DescribeListeners_Call
- func (_c *MockClient_DescribeListeners_Call) Run(...) *MockClient_DescribeListeners_Call
- func (_c *MockClient_DescribeListeners_Call) RunAndReturn(...) *MockClient_DescribeListeners_Call
- type MockClient_DescribeLoadBalancers_Call
- func (_c *MockClient_DescribeLoadBalancers_Call) Return(_a0 *elasticloadbalancingv2.DescribeLoadBalancersOutput, _a1 error) *MockClient_DescribeLoadBalancers_Call
- func (_c *MockClient_DescribeLoadBalancers_Call) Run(...) *MockClient_DescribeLoadBalancers_Call
- func (_c *MockClient_DescribeLoadBalancers_Call) RunAndReturn(...) *MockClient_DescribeLoadBalancers_Call
- type MockClient_Expecter
- type MockLoadBalancerDescriber
- type MockLoadBalancerDescriber_DescribeLoadBalancers_Call
- func (_c *MockLoadBalancerDescriber_DescribeLoadBalancers_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockLoadBalancerDescriber_DescribeLoadBalancers_Call
- func (_c *MockLoadBalancerDescriber_DescribeLoadBalancers_Call) Run(run func(ctx context.Context)) *MockLoadBalancerDescriber_DescribeLoadBalancers_Call
- func (_c *MockLoadBalancerDescriber_DescribeLoadBalancers_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockLoadBalancerDescriber_DescribeLoadBalancers_Call
- type MockLoadBalancerDescriber_Expecter
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { elb.DescribeLoadBalancersAPIClient elb.DescribeListenersAPIClient }
type ElasticLoadBalancerInfo ¶
type ElasticLoadBalancerInfo struct { LoadBalancer types.LoadBalancer `json:"load_balancer"` Listeners []types.Listener `json:"listeners"` // contains filtered or unexported fields }
func (ElasticLoadBalancerInfo) GetRegion ¶
func (v ElasticLoadBalancerInfo) GetRegion() string
func (ElasticLoadBalancerInfo) GetResourceArn ¶
func (v ElasticLoadBalancerInfo) GetResourceArn() string
func (ElasticLoadBalancerInfo) GetResourceName ¶
func (v ElasticLoadBalancerInfo) GetResourceName() string
func (ElasticLoadBalancerInfo) GetResourceType ¶
func (v ElasticLoadBalancerInfo) GetResourceType() string
type LoadBalancerDescriber ¶
type LoadBalancerDescriber interface {
DescribeLoadBalancers(ctx context.Context) ([]awslib.AwsResource, error)
}
type MockClient ¶
MockClient is an autogenerated mock type for the Client type
func NewMockClient ¶
func NewMockClient(t interface { mock.TestingT Cleanup(func()) }) *MockClient
NewMockClient creates a new instance of MockClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockClient) DescribeListeners ¶
func (_m *MockClient) DescribeListeners(_a0 context.Context, _a1 *elasticloadbalancingv2.DescribeListenersInput, _a2 ...func(*elasticloadbalancingv2.Options)) (*elasticloadbalancingv2.DescribeListenersOutput, error)
DescribeListeners provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) DescribeLoadBalancers ¶
func (_m *MockClient) DescribeLoadBalancers(_a0 context.Context, _a1 *elasticloadbalancingv2.DescribeLoadBalancersInput, _a2 ...func(*elasticloadbalancingv2.Options)) (*elasticloadbalancingv2.DescribeLoadBalancersOutput, error)
DescribeLoadBalancers provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
type MockClient_DescribeListeners_Call ¶
MockClient_DescribeListeners_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeListeners'
func (*MockClient_DescribeListeners_Call) Return ¶
func (_c *MockClient_DescribeListeners_Call) Return(_a0 *elasticloadbalancingv2.DescribeListenersOutput, _a1 error) *MockClient_DescribeListeners_Call
func (*MockClient_DescribeListeners_Call) Run ¶
func (_c *MockClient_DescribeListeners_Call) Run(run func(_a0 context.Context, _a1 *elasticloadbalancingv2.DescribeListenersInput, _a2 ...func(*elasticloadbalancingv2.Options))) *MockClient_DescribeListeners_Call
func (*MockClient_DescribeListeners_Call) RunAndReturn ¶
func (_c *MockClient_DescribeListeners_Call) RunAndReturn(run func(context.Context, *elasticloadbalancingv2.DescribeListenersInput, ...func(*elasticloadbalancingv2.Options)) (*elasticloadbalancingv2.DescribeListenersOutput, error)) *MockClient_DescribeListeners_Call
type MockClient_DescribeLoadBalancers_Call ¶
MockClient_DescribeLoadBalancers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeLoadBalancers'
func (*MockClient_DescribeLoadBalancers_Call) Return ¶
func (_c *MockClient_DescribeLoadBalancers_Call) Return(_a0 *elasticloadbalancingv2.DescribeLoadBalancersOutput, _a1 error) *MockClient_DescribeLoadBalancers_Call
func (*MockClient_DescribeLoadBalancers_Call) Run ¶
func (_c *MockClient_DescribeLoadBalancers_Call) Run(run func(_a0 context.Context, _a1 *elasticloadbalancingv2.DescribeLoadBalancersInput, _a2 ...func(*elasticloadbalancingv2.Options))) *MockClient_DescribeLoadBalancers_Call
func (*MockClient_DescribeLoadBalancers_Call) RunAndReturn ¶
func (_c *MockClient_DescribeLoadBalancers_Call) RunAndReturn(run func(context.Context, *elasticloadbalancingv2.DescribeLoadBalancersInput, ...func(*elasticloadbalancingv2.Options)) (*elasticloadbalancingv2.DescribeLoadBalancersOutput, error)) *MockClient_DescribeLoadBalancers_Call
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClient_Expecter) DescribeListeners ¶
func (_e *MockClient_Expecter) DescribeListeners(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeListeners_Call
DescribeListeners is a helper method to define mock.On call
- _a0 context.Context
- _a1 *elasticloadbalancingv2.DescribeListenersInput
- _a2 ...func(*elasticloadbalancingv2.Options)
func (*MockClient_Expecter) DescribeLoadBalancers ¶
func (_e *MockClient_Expecter) DescribeLoadBalancers(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_DescribeLoadBalancers_Call
DescribeLoadBalancers is a helper method to define mock.On call
- _a0 context.Context
- _a1 *elasticloadbalancingv2.DescribeLoadBalancersInput
- _a2 ...func(*elasticloadbalancingv2.Options)
type MockLoadBalancerDescriber ¶
MockLoadBalancerDescriber is an autogenerated mock type for the LoadBalancerDescriber type
func NewMockLoadBalancerDescriber ¶
func NewMockLoadBalancerDescriber(t interface { mock.TestingT Cleanup(func()) }) *MockLoadBalancerDescriber
NewMockLoadBalancerDescriber creates a new instance of MockLoadBalancerDescriber. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockLoadBalancerDescriber) DescribeLoadBalancers ¶
func (_m *MockLoadBalancerDescriber) DescribeLoadBalancers(ctx context.Context) ([]awslib.AwsResource, error)
DescribeLoadBalancers provides a mock function with given fields: ctx
func (*MockLoadBalancerDescriber) EXPECT ¶
func (_m *MockLoadBalancerDescriber) EXPECT() *MockLoadBalancerDescriber_Expecter
type MockLoadBalancerDescriber_DescribeLoadBalancers_Call ¶
MockLoadBalancerDescriber_DescribeLoadBalancers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeLoadBalancers'
func (*MockLoadBalancerDescriber_DescribeLoadBalancers_Call) Return ¶
func (_c *MockLoadBalancerDescriber_DescribeLoadBalancers_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockLoadBalancerDescriber_DescribeLoadBalancers_Call
func (*MockLoadBalancerDescriber_DescribeLoadBalancers_Call) Run ¶
func (_c *MockLoadBalancerDescriber_DescribeLoadBalancers_Call) Run(run func(ctx context.Context)) *MockLoadBalancerDescriber_DescribeLoadBalancers_Call
func (*MockLoadBalancerDescriber_DescribeLoadBalancers_Call) RunAndReturn ¶
func (_c *MockLoadBalancerDescriber_DescribeLoadBalancers_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockLoadBalancerDescriber_DescribeLoadBalancers_Call
type MockLoadBalancerDescriber_Expecter ¶
type MockLoadBalancerDescriber_Expecter struct {
// contains filtered or unexported fields
}
func (*MockLoadBalancerDescriber_Expecter) DescribeLoadBalancers ¶
func (_e *MockLoadBalancerDescriber_Expecter) DescribeLoadBalancers(ctx interface{}) *MockLoadBalancerDescriber_DescribeLoadBalancers_Call
DescribeLoadBalancers is a helper method to define mock.On call
- ctx context.Context
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}