Documentation
¶
Index ¶
- type AliasInfo
- type Client
- type EventSourceMappingInfo
- type FunctionInfo
- type Lambda
- type LayerInfo
- type MockClient
- func (_m *MockClient) EXPECT() *MockClient_Expecter
- func (_mock *MockClient) ListAliases(context1 context.Context, listAliasesInput *lambda.ListAliasesInput, ...) (*lambda.ListAliasesOutput, error)
- func (_mock *MockClient) ListEventSourceMappings(context1 context.Context, ...) (*lambda.ListEventSourceMappingsOutput, error)
- func (_mock *MockClient) ListFunctions(context1 context.Context, listFunctionsInput *lambda.ListFunctionsInput, ...) (*lambda.ListFunctionsOutput, error)
- func (_mock *MockClient) ListLayers(context1 context.Context, listLayersInput *lambda.ListLayersInput, ...) (*lambda.ListLayersOutput, error)
- type MockClient_Expecter
- func (_e *MockClient_Expecter) ListAliases(context1 interface{}, listAliasesInput interface{}, fns ...interface{}) *MockClient_ListAliases_Call
- func (_e *MockClient_Expecter) ListEventSourceMappings(context1 interface{}, listEventSourceMappingsInput interface{}, ...) *MockClient_ListEventSourceMappings_Call
- func (_e *MockClient_Expecter) ListFunctions(context1 interface{}, listFunctionsInput interface{}, fns ...interface{}) *MockClient_ListFunctions_Call
- func (_e *MockClient_Expecter) ListLayers(context1 interface{}, listLayersInput interface{}, fns ...interface{}) *MockClient_ListLayers_Call
- type MockClient_ListAliases_Call
- type MockClient_ListEventSourceMappings_Call
- func (_c *MockClient_ListEventSourceMappings_Call) Return(listEventSourceMappingsOutput *lambda.ListEventSourceMappingsOutput, err error) *MockClient_ListEventSourceMappings_Call
- func (_c *MockClient_ListEventSourceMappings_Call) Run(run func(context1 context.Context, ...)) *MockClient_ListEventSourceMappings_Call
- func (_c *MockClient_ListEventSourceMappings_Call) RunAndReturn(...) *MockClient_ListEventSourceMappings_Call
- type MockClient_ListFunctions_Call
- func (_c *MockClient_ListFunctions_Call) Return(listFunctionsOutput *lambda.ListFunctionsOutput, err error) *MockClient_ListFunctions_Call
- func (_c *MockClient_ListFunctions_Call) Run(...) *MockClient_ListFunctions_Call
- func (_c *MockClient_ListFunctions_Call) RunAndReturn(...) *MockClient_ListFunctions_Call
- type MockClient_ListLayers_Call
- type MockLambda
- func (_m *MockLambda) EXPECT() *MockLambda_Expecter
- func (_mock *MockLambda) ListAliases(context1 context.Context) ([]awslib.AwsResource, error)
- func (_mock *MockLambda) ListEventSourceMappings(context1 context.Context) ([]awslib.AwsResource, error)
- func (_mock *MockLambda) ListFunctions(context1 context.Context) ([]awslib.AwsResource, error)
- func (_mock *MockLambda) ListLayers(context1 context.Context, s string, s1 string) ([]awslib.AwsResource, error)
- type MockLambda_Expecter
- func (_e *MockLambda_Expecter) ListAliases(context1 interface{}) *MockLambda_ListAliases_Call
- func (_e *MockLambda_Expecter) ListEventSourceMappings(context1 interface{}) *MockLambda_ListEventSourceMappings_Call
- func (_e *MockLambda_Expecter) ListFunctions(context1 interface{}) *MockLambda_ListFunctions_Call
- func (_e *MockLambda_Expecter) ListLayers(context1 interface{}, s interface{}, s1 interface{}) *MockLambda_ListLayers_Call
- type MockLambda_ListAliases_Call
- func (_c *MockLambda_ListAliases_Call) Return(awsResources []awslib.AwsResource, err error) *MockLambda_ListAliases_Call
- func (_c *MockLambda_ListAliases_Call) Run(run func(context1 context.Context)) *MockLambda_ListAliases_Call
- func (_c *MockLambda_ListAliases_Call) RunAndReturn(run func(context1 context.Context) ([]awslib.AwsResource, error)) *MockLambda_ListAliases_Call
- type MockLambda_ListEventSourceMappings_Call
- func (_c *MockLambda_ListEventSourceMappings_Call) Return(awsResources []awslib.AwsResource, err error) *MockLambda_ListEventSourceMappings_Call
- func (_c *MockLambda_ListEventSourceMappings_Call) Run(run func(context1 context.Context)) *MockLambda_ListEventSourceMappings_Call
- func (_c *MockLambda_ListEventSourceMappings_Call) RunAndReturn(run func(context1 context.Context) ([]awslib.AwsResource, error)) *MockLambda_ListEventSourceMappings_Call
- type MockLambda_ListFunctions_Call
- func (_c *MockLambda_ListFunctions_Call) Return(awsResources []awslib.AwsResource, err error) *MockLambda_ListFunctions_Call
- func (_c *MockLambda_ListFunctions_Call) Run(run func(context1 context.Context)) *MockLambda_ListFunctions_Call
- func (_c *MockLambda_ListFunctions_Call) RunAndReturn(run func(context1 context.Context) ([]awslib.AwsResource, error)) *MockLambda_ListFunctions_Call
- type MockLambda_ListLayers_Call
- func (_c *MockLambda_ListLayers_Call) Return(awsResources []awslib.AwsResource, err error) *MockLambda_ListLayers_Call
- func (_c *MockLambda_ListLayers_Call) Run(run func(context1 context.Context, s string, s1 string)) *MockLambda_ListLayers_Call
- func (_c *MockLambda_ListLayers_Call) RunAndReturn(...) *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 (_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 ¶
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(listAliasesOutput *lambda.ListAliasesOutput, err error) *MockClient_ListAliases_Call
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 ¶
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(listEventSourceMappingsOutput *lambda.ListEventSourceMappingsOutput, err error) *MockClient_ListEventSourceMappings_Call
func (*MockClient_ListEventSourceMappings_Call) Run ¶
func (_c *MockClient_ListEventSourceMappings_Call) Run(run func(context1 context.Context, listEventSourceMappingsInput *lambda.ListEventSourceMappingsInput, fns ...func(*lambda.Options))) *MockClient_ListEventSourceMappings_Call
func (*MockClient_ListEventSourceMappings_Call) RunAndReturn ¶
func (_c *MockClient_ListEventSourceMappings_Call) RunAndReturn(run func(context1 context.Context, listEventSourceMappingsInput *lambda.ListEventSourceMappingsInput, fns ...func(*lambda.Options)) (*lambda.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(listFunctionsOutput *lambda.ListFunctionsOutput, err error) *MockClient_ListFunctions_Call
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 ¶
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(listLayersOutput *lambda.ListLayersOutput, err error) *MockClient_ListLayers_Call
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 ¶
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 ¶
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(awsResources []awslib.AwsResource, err error) *MockLambda_ListAliases_Call
func (*MockLambda_ListAliases_Call) Run ¶
func (_c *MockLambda_ListAliases_Call) Run(run func(context1 context.Context)) *MockLambda_ListAliases_Call
func (*MockLambda_ListAliases_Call) RunAndReturn ¶
func (_c *MockLambda_ListAliases_Call) RunAndReturn(run func(context1 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(awsResources []awslib.AwsResource, err error) *MockLambda_ListEventSourceMappings_Call
func (*MockLambda_ListEventSourceMappings_Call) Run ¶
func (_c *MockLambda_ListEventSourceMappings_Call) Run(run func(context1 context.Context)) *MockLambda_ListEventSourceMappings_Call
func (*MockLambda_ListEventSourceMappings_Call) RunAndReturn ¶
func (_c *MockLambda_ListEventSourceMappings_Call) RunAndReturn(run func(context1 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(awsResources []awslib.AwsResource, err error) *MockLambda_ListFunctions_Call
func (*MockLambda_ListFunctions_Call) Run ¶
func (_c *MockLambda_ListFunctions_Call) Run(run func(context1 context.Context)) *MockLambda_ListFunctions_Call
func (*MockLambda_ListFunctions_Call) RunAndReturn ¶
func (_c *MockLambda_ListFunctions_Call) RunAndReturn(run func(context1 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(awsResources []awslib.AwsResource, err error) *MockLambda_ListLayers_Call
func (*MockLambda_ListLayers_Call) Run ¶
func (_c *MockLambda_ListLayers_Call) Run(run func(context1 context.Context, s string, s1 string)) *MockLambda_ListLayers_Call
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
}