Documentation ¶
Index ¶
- type Client
- type ElasticLoadBalancerInfo
- type LoadBalancerDescriber
- type MockClient
- type MockClient_DescribeLoadBalancers_Call
- func (_c *MockClient_DescribeLoadBalancers_Call) Return(_a0 *elasticloadbalancing.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
- func (_m *MockLoadBalancerDescriber) DescribeAllLoadBalancers(_a0 context.Context) ([]awslib.AwsResource, error)
- func (_m *MockLoadBalancerDescriber) DescribeLoadBalancers(ctx context.Context, balancersNames []string) ([]types.LoadBalancerDescription, error)
- func (_m *MockLoadBalancerDescriber) EXPECT() *MockLoadBalancerDescriber_Expecter
- type MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call
- func (_c *MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call
- func (_c *MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call) Run(run func(_a0 context.Context)) *MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call
- func (_c *MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call
- type MockLoadBalancerDescriber_DescribeLoadBalancers_Call
- func (_c *MockLoadBalancerDescriber_DescribeLoadBalancers_Call) Return(_a0 []types.LoadBalancerDescription, _a1 error) *MockLoadBalancerDescriber_DescribeLoadBalancers_Call
- func (_c *MockLoadBalancerDescriber_DescribeLoadBalancers_Call) Run(run func(ctx context.Context, balancersNames []string)) *MockLoadBalancerDescriber_DescribeLoadBalancers_Call
- func (_c *MockLoadBalancerDescriber_DescribeLoadBalancers_Call) RunAndReturn(run func(context.Context, []string) ([]types.LoadBalancerDescription, error)) *MockLoadBalancerDescriber_DescribeLoadBalancers_Call
- type MockLoadBalancerDescriber_Expecter
- func (_e *MockLoadBalancerDescriber_Expecter) DescribeAllLoadBalancers(_a0 interface{}) *MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call
- func (_e *MockLoadBalancerDescriber_Expecter) DescribeLoadBalancers(ctx interface{}, balancersNames interface{}) *MockLoadBalancerDescriber_DescribeLoadBalancers_Call
- 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 }
type ElasticLoadBalancerInfo ¶
type ElasticLoadBalancerInfo struct { LoadBalancer types.LoadBalancerDescription `json:"load_balancer"` // 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 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) DescribeLoadBalancers ¶
func (_m *MockClient) DescribeLoadBalancers(_a0 context.Context, _a1 *elasticloadbalancing.DescribeLoadBalancersInput, _a2 ...func(*elasticloadbalancing.Options)) (*elasticloadbalancing.DescribeLoadBalancersOutput, error)
DescribeLoadBalancers provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
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 *elasticloadbalancing.DescribeLoadBalancersOutput, _a1 error) *MockClient_DescribeLoadBalancers_Call
func (*MockClient_DescribeLoadBalancers_Call) Run ¶
func (_c *MockClient_DescribeLoadBalancers_Call) Run(run func(_a0 context.Context, _a1 *elasticloadbalancing.DescribeLoadBalancersInput, _a2 ...func(*elasticloadbalancing.Options))) *MockClient_DescribeLoadBalancers_Call
func (*MockClient_DescribeLoadBalancers_Call) RunAndReturn ¶
func (_c *MockClient_DescribeLoadBalancers_Call) RunAndReturn(run func(context.Context, *elasticloadbalancing.DescribeLoadBalancersInput, ...func(*elasticloadbalancing.Options)) (*elasticloadbalancing.DescribeLoadBalancersOutput, error)) *MockClient_DescribeLoadBalancers_Call
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
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 *elasticloadbalancing.DescribeLoadBalancersInput
- _a2 ...func(*elasticloadbalancing.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) DescribeAllLoadBalancers ¶
func (_m *MockLoadBalancerDescriber) DescribeAllLoadBalancers(_a0 context.Context) ([]awslib.AwsResource, error)
DescribeAllLoadBalancers provides a mock function with given fields: _a0
func (*MockLoadBalancerDescriber) DescribeLoadBalancers ¶
func (_m *MockLoadBalancerDescriber) DescribeLoadBalancers(ctx context.Context, balancersNames []string) ([]types.LoadBalancerDescription, error)
DescribeLoadBalancers provides a mock function with given fields: ctx, balancersNames
func (*MockLoadBalancerDescriber) EXPECT ¶
func (_m *MockLoadBalancerDescriber) EXPECT() *MockLoadBalancerDescriber_Expecter
type MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call ¶
MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeAllLoadBalancers'
func (*MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call) Return ¶
func (_c *MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call
func (*MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call) Run ¶
func (_c *MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call) Run(run func(_a0 context.Context)) *MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call
func (*MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call) RunAndReturn ¶
func (_c *MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call
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 []types.LoadBalancerDescription, _a1 error) *MockLoadBalancerDescriber_DescribeLoadBalancers_Call
func (*MockLoadBalancerDescriber_DescribeLoadBalancers_Call) Run ¶
func (_c *MockLoadBalancerDescriber_DescribeLoadBalancers_Call) Run(run func(ctx context.Context, balancersNames []string)) *MockLoadBalancerDescriber_DescribeLoadBalancers_Call
func (*MockLoadBalancerDescriber_DescribeLoadBalancers_Call) RunAndReturn ¶
func (_c *MockLoadBalancerDescriber_DescribeLoadBalancers_Call) RunAndReturn(run func(context.Context, []string) ([]types.LoadBalancerDescription, error)) *MockLoadBalancerDescriber_DescribeLoadBalancers_Call
type MockLoadBalancerDescriber_Expecter ¶
type MockLoadBalancerDescriber_Expecter struct {
// contains filtered or unexported fields
}
func (*MockLoadBalancerDescriber_Expecter) DescribeAllLoadBalancers ¶
func (_e *MockLoadBalancerDescriber_Expecter) DescribeAllLoadBalancers(_a0 interface{}) *MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call
DescribeAllLoadBalancers is a helper method to define mock.On call
- _a0 context.Context
func (*MockLoadBalancerDescriber_Expecter) DescribeLoadBalancers ¶
func (_e *MockLoadBalancerDescriber_Expecter) DescribeLoadBalancers(ctx interface{}, balancersNames interface{}) *MockLoadBalancerDescriber_DescribeLoadBalancers_Call
DescribeLoadBalancers is a helper method to define mock.On call
- ctx context.Context
- balancersNames []string
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewElbProvider ¶
func (*Provider) DescribeAllLoadBalancers ¶
func (*Provider) DescribeLoadBalancers ¶
func (p *Provider) DescribeLoadBalancers(ctx context.Context, balancersNames []string) ([]types.LoadBalancerDescription, error)
DescribeLoadBalancers returns LoadBalancerDescriptions which contain information about the load balancers. When balancersNames is empty, it will describe all the existing load balancers