Documentation ¶
Index ¶
- type AliasInfo
- type Client
- type EventSourceMappingInfo
- type FunctionInfo
- type Lambda
- type LayerInfo
- type MockClient
- func (_m *MockClient) EXPECT() *MockClient_Expecter
- func (_m *MockClient) ListAliases(_a0 context.Context, _a1 *servicelambda.ListAliasesInput, ...) (*servicelambda.ListAliasesOutput, error)
- func (_m *MockClient) ListEventSourceMappings(_a0 context.Context, _a1 *servicelambda.ListEventSourceMappingsInput, ...) (*servicelambda.ListEventSourceMappingsOutput, error)
- func (_m *MockClient) ListFunctions(_a0 context.Context, _a1 *servicelambda.ListFunctionsInput, ...) (*servicelambda.ListFunctionsOutput, error)
- func (_m *MockClient) ListLayers(_a0 context.Context, _a1 *servicelambda.ListLayersInput, ...) (*servicelambda.ListLayersOutput, error)
- type MockClient_Expecter
- func (_e *MockClient_Expecter) ListAliases(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_ListAliases_Call
- func (_e *MockClient_Expecter) ListEventSourceMappings(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_ListEventSourceMappings_Call
- func (_e *MockClient_Expecter) ListFunctions(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_ListFunctions_Call
- func (_e *MockClient_Expecter) ListLayers(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockClient_ListLayers_Call
- type MockClient_ListAliases_Call
- func (_c *MockClient_ListAliases_Call) Return(_a0 *servicelambda.ListAliasesOutput, _a1 error) *MockClient_ListAliases_Call
- func (_c *MockClient_ListAliases_Call) Run(run func(_a0 context.Context, _a1 *servicelambda.ListAliasesInput, ...)) *MockClient_ListAliases_Call
- func (_c *MockClient_ListAliases_Call) RunAndReturn(...) *MockClient_ListAliases_Call
- type MockClient_ListEventSourceMappings_Call
- func (_c *MockClient_ListEventSourceMappings_Call) Return(_a0 *servicelambda.ListEventSourceMappingsOutput, _a1 error) *MockClient_ListEventSourceMappings_Call
- func (_c *MockClient_ListEventSourceMappings_Call) Run(...) *MockClient_ListEventSourceMappings_Call
- func (_c *MockClient_ListEventSourceMappings_Call) RunAndReturn(...) *MockClient_ListEventSourceMappings_Call
- type MockClient_ListFunctions_Call
- func (_c *MockClient_ListFunctions_Call) Return(_a0 *servicelambda.ListFunctionsOutput, _a1 error) *MockClient_ListFunctions_Call
- func (_c *MockClient_ListFunctions_Call) Run(run func(_a0 context.Context, _a1 *servicelambda.ListFunctionsInput, ...)) *MockClient_ListFunctions_Call
- func (_c *MockClient_ListFunctions_Call) RunAndReturn(...) *MockClient_ListFunctions_Call
- type MockClient_ListLayers_Call
- func (_c *MockClient_ListLayers_Call) Return(_a0 *servicelambda.ListLayersOutput, _a1 error) *MockClient_ListLayers_Call
- func (_c *MockClient_ListLayers_Call) Run(run func(_a0 context.Context, _a1 *servicelambda.ListLayersInput, ...)) *MockClient_ListLayers_Call
- func (_c *MockClient_ListLayers_Call) RunAndReturn(...) *MockClient_ListLayers_Call
- type MockLambda
- func (_m *MockLambda) EXPECT() *MockLambda_Expecter
- func (_m *MockLambda) ListAliases(_a0 context.Context) ([]awslib.AwsResource, error)
- func (_m *MockLambda) ListEventSourceMappings(_a0 context.Context) ([]awslib.AwsResource, error)
- func (_m *MockLambda) ListFunctions(_a0 context.Context) ([]awslib.AwsResource, error)
- func (_m *MockLambda) ListLayers(_a0 context.Context, _a1 string, _a2 string) ([]awslib.AwsResource, error)
- type MockLambda_Expecter
- func (_e *MockLambda_Expecter) ListAliases(_a0 interface{}) *MockLambda_ListAliases_Call
- func (_e *MockLambda_Expecter) ListEventSourceMappings(_a0 interface{}) *MockLambda_ListEventSourceMappings_Call
- func (_e *MockLambda_Expecter) ListFunctions(_a0 interface{}) *MockLambda_ListFunctions_Call
- func (_e *MockLambda_Expecter) ListLayers(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockLambda_ListLayers_Call
- type MockLambda_ListAliases_Call
- func (_c *MockLambda_ListAliases_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockLambda_ListAliases_Call
- func (_c *MockLambda_ListAliases_Call) Run(run func(_a0 context.Context)) *MockLambda_ListAliases_Call
- func (_c *MockLambda_ListAliases_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockLambda_ListAliases_Call
- type MockLambda_ListEventSourceMappings_Call
- func (_c *MockLambda_ListEventSourceMappings_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockLambda_ListEventSourceMappings_Call
- func (_c *MockLambda_ListEventSourceMappings_Call) Run(run func(_a0 context.Context)) *MockLambda_ListEventSourceMappings_Call
- func (_c *MockLambda_ListEventSourceMappings_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockLambda_ListEventSourceMappings_Call
- type MockLambda_ListFunctions_Call
- func (_c *MockLambda_ListFunctions_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockLambda_ListFunctions_Call
- func (_c *MockLambda_ListFunctions_Call) Run(run func(_a0 context.Context)) *MockLambda_ListFunctions_Call
- func (_c *MockLambda_ListFunctions_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockLambda_ListFunctions_Call
- type MockLambda_ListLayers_Call
- func (_c *MockLambda_ListLayers_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockLambda_ListLayers_Call
- func (_c *MockLambda_ListLayers_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *MockLambda_ListLayers_Call
- func (_c *MockLambda_ListLayers_Call) RunAndReturn(run func(context.Context, string, string) ([]awslib.AwsResource, error)) *MockLambda_ListLayers_Call
- type Provider
- func (p *Provider) ListAliases(ctx context.Context, region, functionName string) ([]awslib.AwsResource, error)
- func (p *Provider) ListEventSourceMappings(ctx context.Context) ([]awslib.AwsResource, error)
- func (p *Provider) ListFunctions(ctx context.Context) ([]awslib.AwsResource, error)
- func (p *Provider) ListLayers(ctx context.Context) ([]awslib.AwsResource, error)
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) GetResourceArn ¶
func (AliasInfo) GetResourceName ¶
func (AliasInfo) GetResourceType ¶
type Client ¶
type Client interface { lambda.ListAliasesAPIClient lambda.ListEventSourceMappingsAPIClient lambda.ListFunctionsAPIClient lambda.ListLayersAPIClient }
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 LayerInfo ¶
type LayerInfo struct { Layer types.LayersListItem `json:"layer"` // contains filtered or unexported fields }
func (LayerInfo) GetResourceArn ¶
func (LayerInfo) GetResourceName ¶
func (LayerInfo) GetResourceType ¶
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) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
func (*MockClient) ListAliases ¶
func (_m *MockClient) ListAliases(_a0 context.Context, _a1 *servicelambda.ListAliasesInput, _a2 ...func(*servicelambda.Options)) (*servicelambda.ListAliasesOutput, error)
ListAliases provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) ListEventSourceMappings ¶
func (_m *MockClient) ListEventSourceMappings(_a0 context.Context, _a1 *servicelambda.ListEventSourceMappingsInput, _a2 ...func(*servicelambda.Options)) (*servicelambda.ListEventSourceMappingsOutput, error)
ListEventSourceMappings provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) ListFunctions ¶
func (_m *MockClient) ListFunctions(_a0 context.Context, _a1 *servicelambda.ListFunctionsInput, _a2 ...func(*servicelambda.Options)) (*servicelambda.ListFunctionsOutput, error)
ListFunctions provides a mock function with given fields: _a0, _a1, _a2
func (*MockClient) ListLayers ¶
func (_m *MockClient) ListLayers(_a0 context.Context, _a1 *servicelambda.ListLayersInput, _a2 ...func(*servicelambda.Options)) (*servicelambda.ListLayersOutput, error)
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 ¶
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 (_c *MockClient_ListAliases_Call) Return(_a0 *servicelambda.ListAliasesOutput, _a1 error) *MockClient_ListAliases_Call
func (*MockClient_ListAliases_Call) Run ¶
func (_c *MockClient_ListAliases_Call) Run(run func(_a0 context.Context, _a1 *servicelambda.ListAliasesInput, _a2 ...func(*servicelambda.Options))) *MockClient_ListAliases_Call
func (*MockClient_ListAliases_Call) RunAndReturn ¶
func (_c *MockClient_ListAliases_Call) RunAndReturn(run func(context.Context, *servicelambda.ListAliasesInput, ...func(*servicelambda.Options)) (*servicelambda.ListAliasesOutput, error)) *MockClient_ListAliases_Call
type MockClient_ListEventSourceMappings_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 (_c *MockClient_ListEventSourceMappings_Call) Return(_a0 *servicelambda.ListEventSourceMappingsOutput, _a1 error) *MockClient_ListEventSourceMappings_Call
func (*MockClient_ListEventSourceMappings_Call) Run ¶
func (_c *MockClient_ListEventSourceMappings_Call) Run(run func(_a0 context.Context, _a1 *servicelambda.ListEventSourceMappingsInput, _a2 ...func(*servicelambda.Options))) *MockClient_ListEventSourceMappings_Call
func (*MockClient_ListEventSourceMappings_Call) RunAndReturn ¶
func (_c *MockClient_ListEventSourceMappings_Call) RunAndReturn(run func(context.Context, *servicelambda.ListEventSourceMappingsInput, ...func(*servicelambda.Options)) (*servicelambda.ListEventSourceMappingsOutput, error)) *MockClient_ListEventSourceMappings_Call
type MockClient_ListFunctions_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 (_c *MockClient_ListFunctions_Call) Return(_a0 *servicelambda.ListFunctionsOutput, _a1 error) *MockClient_ListFunctions_Call
func (*MockClient_ListFunctions_Call) Run ¶
func (_c *MockClient_ListFunctions_Call) Run(run func(_a0 context.Context, _a1 *servicelambda.ListFunctionsInput, _a2 ...func(*servicelambda.Options))) *MockClient_ListFunctions_Call
func (*MockClient_ListFunctions_Call) RunAndReturn ¶
func (_c *MockClient_ListFunctions_Call) RunAndReturn(run func(context.Context, *servicelambda.ListFunctionsInput, ...func(*servicelambda.Options)) (*servicelambda.ListFunctionsOutput, error)) *MockClient_ListFunctions_Call
type MockClient_ListLayers_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 (_c *MockClient_ListLayers_Call) Return(_a0 *servicelambda.ListLayersOutput, _a1 error) *MockClient_ListLayers_Call
func (*MockClient_ListLayers_Call) Run ¶
func (_c *MockClient_ListLayers_Call) Run(run func(_a0 context.Context, _a1 *servicelambda.ListLayersInput, _a2 ...func(*servicelambda.Options))) *MockClient_ListLayers_Call
func (*MockClient_ListLayers_Call) RunAndReturn ¶
func (_c *MockClient_ListLayers_Call) RunAndReturn(run func(context.Context, *servicelambda.ListLayersInput, ...func(*servicelambda.Options)) (*servicelambda.ListLayersOutput, error)) *MockClient_ListLayers_Call
type MockLambda ¶
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 ¶
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 (_c *MockLambda_ListAliases_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockLambda_ListAliases_Call
func (*MockLambda_ListAliases_Call) Run ¶
func (_c *MockLambda_ListAliases_Call) Run(run func(_a0 context.Context)) *MockLambda_ListAliases_Call
func (*MockLambda_ListAliases_Call) RunAndReturn ¶
func (_c *MockLambda_ListAliases_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockLambda_ListAliases_Call
type MockLambda_ListEventSourceMappings_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 (_c *MockLambda_ListEventSourceMappings_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockLambda_ListEventSourceMappings_Call
func (*MockLambda_ListEventSourceMappings_Call) Run ¶
func (_c *MockLambda_ListEventSourceMappings_Call) Run(run func(_a0 context.Context)) *MockLambda_ListEventSourceMappings_Call
func (*MockLambda_ListEventSourceMappings_Call) RunAndReturn ¶
func (_c *MockLambda_ListEventSourceMappings_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockLambda_ListEventSourceMappings_Call
type MockLambda_ListFunctions_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 (_c *MockLambda_ListFunctions_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockLambda_ListFunctions_Call
func (*MockLambda_ListFunctions_Call) Run ¶
func (_c *MockLambda_ListFunctions_Call) Run(run func(_a0 context.Context)) *MockLambda_ListFunctions_Call
func (*MockLambda_ListFunctions_Call) RunAndReturn ¶
func (_c *MockLambda_ListFunctions_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockLambda_ListFunctions_Call
type MockLambda_ListLayers_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 (_c *MockLambda_ListLayers_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockLambda_ListLayers_Call
func (*MockLambda_ListLayers_Call) Run ¶
func (_c *MockLambda_ListLayers_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *MockLambda_ListLayers_Call
func (*MockLambda_ListLayers_Call) RunAndReturn ¶
func (_c *MockLambda_ListLayers_Call) RunAndReturn(run func(context.Context, string, string) ([]awslib.AwsResource, error)) *MockLambda_ListLayers_Call
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}