lambda

package
v0.0.0-...-e3b4d4c Latest Latest
Warning

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

Go to latest
Published: Sep 26, 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

func (_mock *MockClient) ListAliases(context1 context.Context, listAliasesInput *lambda.ListAliasesInput, fns ...func(*lambda.Options)) (*lambda.ListAliasesOutput, error)

ListAliases provides a mock function for the type MockClient

func (*MockClient) ListEventSourceMappings

func (_mock *MockClient) ListEventSourceMappings(context1 context.Context, listEventSourceMappingsInput *lambda.ListEventSourceMappingsInput, fns ...func(*lambda.Options)) (*lambda.ListEventSourceMappingsOutput, error)

ListEventSourceMappings provides a mock function for the type MockClient

func (*MockClient) ListFunctions

func (_mock *MockClient) ListFunctions(context1 context.Context, listFunctionsInput *lambda.ListFunctionsInput, fns ...func(*lambda.Options)) (*lambda.ListFunctionsOutput, error)

ListFunctions provides a mock function for the type MockClient

func (*MockClient) ListLayers

func (_mock *MockClient) ListLayers(context1 context.Context, listLayersInput *lambda.ListLayersInput, fns ...func(*lambda.Options)) (*lambda.ListLayersOutput, error)

ListLayers provides a mock function for the type MockClient

type MockClient_Expecter

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

func (*MockClient_Expecter) ListAliases

func (_e *MockClient_Expecter) ListAliases(context1 interface{}, listAliasesInput interface{}, fns ...interface{}) *MockClient_ListAliases_Call

ListAliases is a helper method to define mock.On call

  • context1 context.Context
  • listAliasesInput *lambda.ListAliasesInput
  • fns ...func(*lambda.Options)

func (*MockClient_Expecter) ListEventSourceMappings

func (_e *MockClient_Expecter) ListEventSourceMappings(context1 interface{}, listEventSourceMappingsInput interface{}, fns ...interface{}) *MockClient_ListEventSourceMappings_Call

ListEventSourceMappings is a helper method to define mock.On call

  • context1 context.Context
  • listEventSourceMappingsInput *lambda.ListEventSourceMappingsInput
  • fns ...func(*lambda.Options)

func (*MockClient_Expecter) ListFunctions

func (_e *MockClient_Expecter) ListFunctions(context1 interface{}, listFunctionsInput interface{}, fns ...interface{}) *MockClient_ListFunctions_Call

ListFunctions is a helper method to define mock.On call

  • context1 context.Context
  • listFunctionsInput *lambda.ListFunctionsInput
  • fns ...func(*lambda.Options)

func (*MockClient_Expecter) ListLayers

func (_e *MockClient_Expecter) ListLayers(context1 interface{}, listLayersInput interface{}, fns ...interface{}) *MockClient_ListLayers_Call

ListLayers is a helper method to define mock.On call

  • context1 context.Context
  • listLayersInput *lambda.ListLayersInput
  • fns ...func(*lambda.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

func (_c *MockClient_ListAliases_Call) Run(run func(context1 context.Context, listAliasesInput *lambda.ListAliasesInput, fns ...func(*lambda.Options))) *MockClient_ListAliases_Call

func (*MockClient_ListAliases_Call) RunAndReturn

func (_c *MockClient_ListAliases_Call) RunAndReturn(run func(context1 context.Context, listAliasesInput *lambda.ListAliasesInput, fns ...func(*lambda.Options)) (*lambda.ListAliasesOutput, error)) *MockClient_ListAliases_Call

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

func (*MockClient_ListEventSourceMappings_Call) Run

func (*MockClient_ListEventSourceMappings_Call) RunAndReturn

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

func (_c *MockClient_ListFunctions_Call) Run(run func(context1 context.Context, listFunctionsInput *lambda.ListFunctionsInput, fns ...func(*lambda.Options))) *MockClient_ListFunctions_Call

func (*MockClient_ListFunctions_Call) RunAndReturn

func (_c *MockClient_ListFunctions_Call) RunAndReturn(run func(context1 context.Context, listFunctionsInput *lambda.ListFunctionsInput, fns ...func(*lambda.Options)) (*lambda.ListFunctionsOutput, error)) *MockClient_ListFunctions_Call

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

func (_c *MockClient_ListLayers_Call) Run(run func(context1 context.Context, listLayersInput *lambda.ListLayersInput, fns ...func(*lambda.Options))) *MockClient_ListLayers_Call

func (*MockClient_ListLayers_Call) RunAndReturn

func (_c *MockClient_ListLayers_Call) RunAndReturn(run func(context1 context.Context, listLayersInput *lambda.ListLayersInput, fns ...func(*lambda.Options)) (*lambda.ListLayersOutput, error)) *MockClient_ListLayers_Call

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 (_mock *MockLambda) ListAliases(context1 context.Context) ([]awslib.AwsResource, error)

ListAliases provides a mock function for the type MockLambda

func (*MockLambda) ListEventSourceMappings

func (_mock *MockLambda) ListEventSourceMappings(context1 context.Context) ([]awslib.AwsResource, error)

ListEventSourceMappings provides a mock function for the type MockLambda

func (*MockLambda) ListFunctions

func (_mock *MockLambda) ListFunctions(context1 context.Context) ([]awslib.AwsResource, error)

ListFunctions provides a mock function for the type MockLambda

func (*MockLambda) ListLayers

func (_mock *MockLambda) ListLayers(context1 context.Context, s string, s1 string) ([]awslib.AwsResource, error)

ListLayers provides a mock function for the type MockLambda

type MockLambda_Expecter

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

func (*MockLambda_Expecter) ListAliases

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

ListAliases is a helper method to define mock.On call

  • context1 context.Context

func (*MockLambda_Expecter) ListEventSourceMappings

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

ListEventSourceMappings is a helper method to define mock.On call

  • context1 context.Context

func (*MockLambda_Expecter) ListFunctions

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

ListFunctions is a helper method to define mock.On call

  • context1 context.Context

func (*MockLambda_Expecter) ListLayers

func (_e *MockLambda_Expecter) ListLayers(context1 interface{}, s interface{}, s1 interface{}) *MockLambda_ListLayers_Call

ListLayers is a helper method to define mock.On call

  • context1 context.Context
  • s string
  • s1 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

func (_c *MockLambda_ListLayers_Call) RunAndReturn(run func(context1 context.Context, s string, s1 string) ([]awslib.AwsResource, error)) *MockLambda_ListLayers_Call

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