elb

package
v0.0.0-...-de93505 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 LoadBalancerDescriber interface {
	DescribeLoadBalancers(ctx context.Context, balancersNames []string) ([]types.LoadBalancerDescription, error)
	DescribeAllLoadBalancers(context.Context) ([]awslib.AwsResource, error)
}

type MockClient

type MockClient struct {
	mock.Mock
}

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

DescribeLoadBalancers provides a mock function with given fields: _a0, _a1, _a2

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *MockClient_Expecter

type MockClient_DescribeLoadBalancers_Call

type MockClient_DescribeLoadBalancers_Call struct {
	*mock.Call
}

MockClient_DescribeLoadBalancers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeLoadBalancers'

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

type MockLoadBalancerDescriber struct {
	mock.Mock
}

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

type MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call

type MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call struct {
	*mock.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 (*MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call) Run

func (*MockLoadBalancerDescriber_DescribeAllLoadBalancers_Call) RunAndReturn

type MockLoadBalancerDescriber_DescribeLoadBalancers_Call

type MockLoadBalancerDescriber_DescribeLoadBalancers_Call struct {
	*mock.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 (*MockLoadBalancerDescriber_DescribeLoadBalancers_Call) Run

func (*MockLoadBalancerDescriber_DescribeLoadBalancers_Call) RunAndReturn

type MockLoadBalancerDescriber_Expecter

type MockLoadBalancerDescriber_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockLoadBalancerDescriber_Expecter) DescribeAllLoadBalancers

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 NewElbProvider(ctx context.Context, log *logp.Logger, awsAccountID string, cfg aws.Config, factory awslib.CrossRegionFactory[Client]) *Provider

func (*Provider) DescribeAllLoadBalancers

func (p *Provider) DescribeAllLoadBalancers(ctx context.Context) ([]awslib.AwsResource, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL