elb_v2

package
v0.0.0-...-56579fc Latest Latest
Warning

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

Go to latest
Published: Dec 23, 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 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

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) DescribeListeners

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

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_DescribeListeners_Call

type MockClient_DescribeListeners_Call struct {
	*mock.Call
}

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

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) 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

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) DescribeLoadBalancers

func (_m *MockLoadBalancerDescriber) DescribeLoadBalancers(ctx context.Context) ([]awslib.AwsResource, error)

DescribeLoadBalancers provides a mock function with given fields: ctx

func (*MockLoadBalancerDescriber) EXPECT

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) DescribeLoadBalancers

DescribeLoadBalancers is a helper method to define mock.On call

  • ctx context.Context

type Provider

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

func NewElbV2Provider

func NewElbV2Provider(ctx context.Context, log *logp.Logger, cfg aws.Config, factory awslib.CrossRegionFactory[Client]) *Provider

func (*Provider) DescribeLoadBalancers

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

Jump to

Keyboard shortcuts

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