Documentation ¶
Index ¶
- type Client
- type MockClient
- func (_m *MockClient) DescribeTrails(ctx context.Context, params *servicecloudtrail.DescribeTrailsInput, ...) (*servicecloudtrail.DescribeTrailsOutput, error)
- func (_m *MockClient) EXPECT() *MockClient_Expecter
- func (_m *MockClient) GetEventSelectors(ctx context.Context, params *servicecloudtrail.GetEventSelectorsInput, ...) (*servicecloudtrail.GetEventSelectorsOutput, error)
- func (_m *MockClient) GetTrailStatus(ctx context.Context, params *servicecloudtrail.GetTrailStatusInput, ...) (*servicecloudtrail.GetTrailStatusOutput, error)
- type MockClient_DescribeTrails_Call
- func (_c *MockClient_DescribeTrails_Call) Return(_a0 *servicecloudtrail.DescribeTrailsOutput, _a1 error) *MockClient_DescribeTrails_Call
- func (_c *MockClient_DescribeTrails_Call) Run(...) *MockClient_DescribeTrails_Call
- func (_c *MockClient_DescribeTrails_Call) RunAndReturn(...) *MockClient_DescribeTrails_Call
- type MockClient_Expecter
- func (_e *MockClient_Expecter) DescribeTrails(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeTrails_Call
- func (_e *MockClient_Expecter) GetEventSelectors(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetEventSelectors_Call
- func (_e *MockClient_Expecter) GetTrailStatus(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetTrailStatus_Call
- type MockClient_GetEventSelectors_Call
- func (_c *MockClient_GetEventSelectors_Call) Return(_a0 *servicecloudtrail.GetEventSelectorsOutput, _a1 error) *MockClient_GetEventSelectors_Call
- func (_c *MockClient_GetEventSelectors_Call) Run(...) *MockClient_GetEventSelectors_Call
- func (_c *MockClient_GetEventSelectors_Call) RunAndReturn(...) *MockClient_GetEventSelectors_Call
- type MockClient_GetTrailStatus_Call
- func (_c *MockClient_GetTrailStatus_Call) Return(_a0 *servicecloudtrail.GetTrailStatusOutput, _a1 error) *MockClient_GetTrailStatus_Call
- func (_c *MockClient_GetTrailStatus_Call) Run(...) *MockClient_GetTrailStatus_Call
- func (_c *MockClient_GetTrailStatus_Call) RunAndReturn(...) *MockClient_GetTrailStatus_Call
- type MockTrailService
- type MockTrailService_DescribeTrails_Call
- func (_c *MockTrailService_DescribeTrails_Call) Return(_a0 []TrailInfo, _a1 error) *MockTrailService_DescribeTrails_Call
- func (_c *MockTrailService_DescribeTrails_Call) Run(run func(ctx context.Context)) *MockTrailService_DescribeTrails_Call
- func (_c *MockTrailService_DescribeTrails_Call) RunAndReturn(run func(context.Context) ([]TrailInfo, error)) *MockTrailService_DescribeTrails_Call
- type MockTrailService_Expecter
- type Provider
- type TrailInfo
- type TrailService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { DescribeTrails(ctx context.Context, params *cloudtrail.DescribeTrailsInput, optFns ...func(*cloudtrail.Options)) (*cloudtrail.DescribeTrailsOutput, error) GetTrailStatus(ctx context.Context, params *cloudtrail.GetTrailStatusInput, optFns ...func(*cloudtrail.Options)) (*cloudtrail.GetTrailStatusOutput, error) GetEventSelectors(ctx context.Context, params *cloudtrail.GetEventSelectorsInput, optFns ...func(*cloudtrail.Options)) (*cloudtrail.GetEventSelectorsOutput, error) }
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) DescribeTrails ¶
func (_m *MockClient) DescribeTrails(ctx context.Context, params *servicecloudtrail.DescribeTrailsInput, optFns ...func(*servicecloudtrail.Options)) (*servicecloudtrail.DescribeTrailsOutput, error)
DescribeTrails provides a mock function with given fields: ctx, params, optFns
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
func (*MockClient) GetEventSelectors ¶
func (_m *MockClient) GetEventSelectors(ctx context.Context, params *servicecloudtrail.GetEventSelectorsInput, optFns ...func(*servicecloudtrail.Options)) (*servicecloudtrail.GetEventSelectorsOutput, error)
GetEventSelectors provides a mock function with given fields: ctx, params, optFns
func (*MockClient) GetTrailStatus ¶
func (_m *MockClient) GetTrailStatus(ctx context.Context, params *servicecloudtrail.GetTrailStatusInput, optFns ...func(*servicecloudtrail.Options)) (*servicecloudtrail.GetTrailStatusOutput, error)
GetTrailStatus provides a mock function with given fields: ctx, params, optFns
type MockClient_DescribeTrails_Call ¶
MockClient_DescribeTrails_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeTrails'
func (*MockClient_DescribeTrails_Call) Return ¶
func (_c *MockClient_DescribeTrails_Call) Return(_a0 *servicecloudtrail.DescribeTrailsOutput, _a1 error) *MockClient_DescribeTrails_Call
func (*MockClient_DescribeTrails_Call) Run ¶
func (_c *MockClient_DescribeTrails_Call) Run(run func(ctx context.Context, params *servicecloudtrail.DescribeTrailsInput, optFns ...func(*servicecloudtrail.Options))) *MockClient_DescribeTrails_Call
func (*MockClient_DescribeTrails_Call) RunAndReturn ¶
func (_c *MockClient_DescribeTrails_Call) RunAndReturn(run func(context.Context, *servicecloudtrail.DescribeTrailsInput, ...func(*servicecloudtrail.Options)) (*servicecloudtrail.DescribeTrailsOutput, error)) *MockClient_DescribeTrails_Call
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClient_Expecter) DescribeTrails ¶
func (_e *MockClient_Expecter) DescribeTrails(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeTrails_Call
DescribeTrails is a helper method to define mock.On call
- ctx context.Context
- params *servicecloudtrail.DescribeTrailsInput
- optFns ...func(*servicecloudtrail.Options)
func (*MockClient_Expecter) GetEventSelectors ¶
func (_e *MockClient_Expecter) GetEventSelectors(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetEventSelectors_Call
GetEventSelectors is a helper method to define mock.On call
- ctx context.Context
- params *servicecloudtrail.GetEventSelectorsInput
- optFns ...func(*servicecloudtrail.Options)
func (*MockClient_Expecter) GetTrailStatus ¶
func (_e *MockClient_Expecter) GetTrailStatus(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_GetTrailStatus_Call
GetTrailStatus is a helper method to define mock.On call
- ctx context.Context
- params *servicecloudtrail.GetTrailStatusInput
- optFns ...func(*servicecloudtrail.Options)
type MockClient_GetEventSelectors_Call ¶
MockClient_GetEventSelectors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEventSelectors'
func (*MockClient_GetEventSelectors_Call) Return ¶
func (_c *MockClient_GetEventSelectors_Call) Return(_a0 *servicecloudtrail.GetEventSelectorsOutput, _a1 error) *MockClient_GetEventSelectors_Call
func (*MockClient_GetEventSelectors_Call) Run ¶
func (_c *MockClient_GetEventSelectors_Call) Run(run func(ctx context.Context, params *servicecloudtrail.GetEventSelectorsInput, optFns ...func(*servicecloudtrail.Options))) *MockClient_GetEventSelectors_Call
func (*MockClient_GetEventSelectors_Call) RunAndReturn ¶
func (_c *MockClient_GetEventSelectors_Call) RunAndReturn(run func(context.Context, *servicecloudtrail.GetEventSelectorsInput, ...func(*servicecloudtrail.Options)) (*servicecloudtrail.GetEventSelectorsOutput, error)) *MockClient_GetEventSelectors_Call
type MockClient_GetTrailStatus_Call ¶
MockClient_GetTrailStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTrailStatus'
func (*MockClient_GetTrailStatus_Call) Return ¶
func (_c *MockClient_GetTrailStatus_Call) Return(_a0 *servicecloudtrail.GetTrailStatusOutput, _a1 error) *MockClient_GetTrailStatus_Call
func (*MockClient_GetTrailStatus_Call) Run ¶
func (_c *MockClient_GetTrailStatus_Call) Run(run func(ctx context.Context, params *servicecloudtrail.GetTrailStatusInput, optFns ...func(*servicecloudtrail.Options))) *MockClient_GetTrailStatus_Call
func (*MockClient_GetTrailStatus_Call) RunAndReturn ¶
func (_c *MockClient_GetTrailStatus_Call) RunAndReturn(run func(context.Context, *servicecloudtrail.GetTrailStatusInput, ...func(*servicecloudtrail.Options)) (*servicecloudtrail.GetTrailStatusOutput, error)) *MockClient_GetTrailStatus_Call
type MockTrailService ¶
MockTrailService is an autogenerated mock type for the TrailService type
func NewMockTrailService ¶
func NewMockTrailService(t interface { mock.TestingT Cleanup(func()) }) *MockTrailService
NewMockTrailService creates a new instance of MockTrailService. 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 (*MockTrailService) DescribeTrails ¶
func (_m *MockTrailService) DescribeTrails(ctx context.Context) ([]TrailInfo, error)
DescribeTrails provides a mock function with given fields: ctx
func (*MockTrailService) EXPECT ¶
func (_m *MockTrailService) EXPECT() *MockTrailService_Expecter
type MockTrailService_DescribeTrails_Call ¶
MockTrailService_DescribeTrails_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeTrails'
func (*MockTrailService_DescribeTrails_Call) Return ¶
func (_c *MockTrailService_DescribeTrails_Call) Return(_a0 []TrailInfo, _a1 error) *MockTrailService_DescribeTrails_Call
func (*MockTrailService_DescribeTrails_Call) Run ¶
func (_c *MockTrailService_DescribeTrails_Call) Run(run func(ctx context.Context)) *MockTrailService_DescribeTrails_Call
func (*MockTrailService_DescribeTrails_Call) RunAndReturn ¶
func (_c *MockTrailService_DescribeTrails_Call) RunAndReturn(run func(context.Context) ([]TrailInfo, error)) *MockTrailService_DescribeTrails_Call
type MockTrailService_Expecter ¶
type MockTrailService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTrailService_Expecter) DescribeTrails ¶
func (_e *MockTrailService_Expecter) DescribeTrails(ctx interface{}) *MockTrailService_DescribeTrails_Call
DescribeTrails is a helper method to define mock.On call
- ctx context.Context
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
type TrailInfo ¶
type TrailInfo struct { Trail types.Trail Status *cloudtrail.GetTrailStatusOutput EventSelectors []types.EventSelector }