lambda

package
v0.0.0-...-ea883c3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 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 AliasInfo

type AliasInfo struct {
	Alias types.AliasConfiguration `json:"alias_configuration"`
	// contains filtered or unexported fields
}

func (AliasInfo) GetRegion

func (v AliasInfo) GetRegion() string

func (AliasInfo) GetResourceArn

func (v AliasInfo) GetResourceArn() string

func (AliasInfo) GetResourceName

func (v AliasInfo) GetResourceName() string

func (AliasInfo) GetResourceType

func (v AliasInfo) GetResourceType() string

type EventSourceMappingInfo

type EventSourceMappingInfo struct {
	EventSourceMapping types.EventSourceMappingConfiguration `json:"event_source_mapping_configuration"`
	// contains filtered or unexported fields
}

func (EventSourceMappingInfo) GetRegion

func (v EventSourceMappingInfo) GetRegion() string

func (EventSourceMappingInfo) GetResourceArn

func (v EventSourceMappingInfo) GetResourceArn() string

func (EventSourceMappingInfo) GetResourceName

func (v EventSourceMappingInfo) GetResourceName() string

func (EventSourceMappingInfo) GetResourceType

func (v EventSourceMappingInfo) GetResourceType() string

type FunctionInfo

type FunctionInfo struct {
	Function types.FunctionConfiguration `json:"function_configuration"`
	Aliases  []awslib.AwsResource        `json:"alias_configurations"`
	// contains filtered or unexported fields
}

func (FunctionInfo) GetRegion

func (v FunctionInfo) GetRegion() string

func (FunctionInfo) GetResourceArn

func (v FunctionInfo) GetResourceArn() string

func (FunctionInfo) GetResourceName

func (v FunctionInfo) GetResourceName() string

func (FunctionInfo) GetResourceType

func (v FunctionInfo) GetResourceType() string

type Lambda

type Lambda interface {
	ListAliases(context.Context) ([]awslib.AwsResource, error)
	ListEventSourceMappings(context.Context) ([]awslib.AwsResource, error)
	ListFunctions(context.Context) ([]awslib.AwsResource, error)
	ListLayers(context.Context, string, string) ([]awslib.AwsResource, error)
}

type LayerInfo

type LayerInfo struct {
	Layer types.LayersListItem `json:"layer"`
	// contains filtered or unexported fields
}

func (LayerInfo) GetRegion

func (v LayerInfo) GetRegion() string

func (LayerInfo) GetResourceArn

func (v LayerInfo) GetResourceArn() string

func (LayerInfo) GetResourceName

func (v LayerInfo) GetResourceName() string

func (LayerInfo) GetResourceType

func (v LayerInfo) GetResourceType() string

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

func (_m *MockClient) EXPECT() *MockClient_Expecter

func (*MockClient) ListAliases

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

func (*MockClient) ListEventSourceMappings

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

func (*MockClient) ListFunctions

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

func (*MockClient) ListLayers

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

type MockClient_Expecter

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

func (*MockClient_Expecter) ListAliases

func (_e *MockClient_Expecter) ListAliases(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_ListAliases_Call

ListAliases is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *servicelambda.ListAliasesInput
  • _a2 ...func(*servicelambda.Options)

func (*MockClient_Expecter) ListEventSourceMappings

func (_e *MockClient_Expecter) ListEventSourceMappings(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_ListEventSourceMappings_Call

ListEventSourceMappings is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *servicelambda.ListEventSourceMappingsInput
  • _a2 ...func(*servicelambda.Options)

func (*MockClient_Expecter) ListFunctions

func (_e *MockClient_Expecter) ListFunctions(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_ListFunctions_Call

ListFunctions is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *servicelambda.ListFunctionsInput
  • _a2 ...func(*servicelambda.Options)

func (*MockClient_Expecter) ListLayers

func (_e *MockClient_Expecter) ListLayers(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_ListLayers_Call

ListLayers is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *servicelambda.ListLayersInput
  • _a2 ...func(*servicelambda.Options)

type MockClient_ListAliases_Call

type MockClient_ListAliases_Call struct {
	*mock.Call
}

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

func (*MockClient_ListAliases_Call) Return

func (*MockClient_ListAliases_Call) Run

type MockClient_ListEventSourceMappings_Call

type MockClient_ListEventSourceMappings_Call struct {
	*mock.Call
}

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

func (*MockClient_ListEventSourceMappings_Call) Run

type MockClient_ListFunctions_Call

type MockClient_ListFunctions_Call struct {
	*mock.Call
}

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

func (*MockClient_ListFunctions_Call) Return

func (*MockClient_ListFunctions_Call) Run

type MockClient_ListLayers_Call

type MockClient_ListLayers_Call struct {
	*mock.Call
}

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

func (*MockClient_ListLayers_Call) Return

func (*MockClient_ListLayers_Call) Run

type MockLambda

type MockLambda struct {
	mock.Mock
}

MockLambda is an autogenerated mock type for the Lambda type

func NewMockLambda

func NewMockLambda(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLambda

NewMockLambda creates a new instance of MockLambda. 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 (*MockLambda) EXPECT

func (_m *MockLambda) EXPECT() *MockLambda_Expecter

func (*MockLambda) ListAliases

func (_m *MockLambda) ListAliases(_a0 context.Context) ([]awslib.AwsResource, error)

ListAliases provides a mock function with given fields: _a0

func (*MockLambda) ListEventSourceMappings

func (_m *MockLambda) ListEventSourceMappings(_a0 context.Context) ([]awslib.AwsResource, error)

ListEventSourceMappings provides a mock function with given fields: _a0

func (*MockLambda) ListFunctions

func (_m *MockLambda) ListFunctions(_a0 context.Context) ([]awslib.AwsResource, error)

ListFunctions provides a mock function with given fields: _a0

func (*MockLambda) ListLayers

func (_m *MockLambda) ListLayers(_a0 context.Context, _a1 string, _a2 string) ([]awslib.AwsResource, error)

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

type MockLambda_Expecter

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

func (*MockLambda_Expecter) ListAliases

func (_e *MockLambda_Expecter) ListAliases(_a0 interface{}) *MockLambda_ListAliases_Call

ListAliases is a helper method to define mock.On call

  • _a0 context.Context

func (*MockLambda_Expecter) ListEventSourceMappings

func (_e *MockLambda_Expecter) ListEventSourceMappings(_a0 interface{}) *MockLambda_ListEventSourceMappings_Call

ListEventSourceMappings is a helper method to define mock.On call

  • _a0 context.Context

func (*MockLambda_Expecter) ListFunctions

func (_e *MockLambda_Expecter) ListFunctions(_a0 interface{}) *MockLambda_ListFunctions_Call

ListFunctions is a helper method to define mock.On call

  • _a0 context.Context

func (*MockLambda_Expecter) ListLayers

func (_e *MockLambda_Expecter) ListLayers(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockLambda_ListLayers_Call

ListLayers is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 string

type MockLambda_ListAliases_Call

type MockLambda_ListAliases_Call struct {
	*mock.Call
}

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

func (*MockLambda_ListAliases_Call) Return

func (*MockLambda_ListAliases_Call) Run

func (*MockLambda_ListAliases_Call) RunAndReturn

type MockLambda_ListEventSourceMappings_Call

type MockLambda_ListEventSourceMappings_Call struct {
	*mock.Call
}

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

func (*MockLambda_ListEventSourceMappings_Call) Return

func (*MockLambda_ListEventSourceMappings_Call) Run

func (*MockLambda_ListEventSourceMappings_Call) RunAndReturn

type MockLambda_ListFunctions_Call

type MockLambda_ListFunctions_Call struct {
	*mock.Call
}

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

func (*MockLambda_ListFunctions_Call) Return

func (*MockLambda_ListFunctions_Call) Run

func (*MockLambda_ListFunctions_Call) RunAndReturn

type MockLambda_ListLayers_Call

type MockLambda_ListLayers_Call struct {
	*mock.Call
}

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

func (*MockLambda_ListLayers_Call) Return

func (*MockLambda_ListLayers_Call) Run

func (*MockLambda_ListLayers_Call) RunAndReturn

type Provider

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

func NewLambdaProvider

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

func (*Provider) ListAliases

func (p *Provider) ListAliases(ctx context.Context, region, functionName string) ([]awslib.AwsResource, error)

func (*Provider) ListEventSourceMappings

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

func (*Provider) ListFunctions

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

func (*Provider) ListLayers

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

Jump to

Keyboard shortcuts

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