Documentation ¶
Index ¶
- type Client
- type MockClient
- type MockClient_DescribeHub_Call
- type MockClient_Expecter
- type MockService
- type MockService_Describe_Call
- func (_c *MockService_Describe_Call) Return(_a0 []SecurityHub, _a1 error) *MockService_Describe_Call
- func (_c *MockService_Describe_Call) Run(run func(ctx context.Context)) *MockService_Describe_Call
- func (_c *MockService_Describe_Call) RunAndReturn(run func(context.Context) ([]SecurityHub, error)) *MockService_Describe_Call
- type MockService_Expecter
- type Provider
- type SecurityHub
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
DescribeHub(ctx context.Context, params *securityhub.DescribeHubInput, optFns ...func(*securityhub.Options)) (*securityhub.DescribeHubOutput, 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) DescribeHub ¶
func (_m *MockClient) DescribeHub(ctx context.Context, params *servicesecurityhub.DescribeHubInput, optFns ...func(*servicesecurityhub.Options)) (*servicesecurityhub.DescribeHubOutput, error)
DescribeHub provides a mock function with given fields: ctx, params, optFns
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
type MockClient_DescribeHub_Call ¶
MockClient_DescribeHub_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeHub'
func (*MockClient_DescribeHub_Call) Return ¶
func (_c *MockClient_DescribeHub_Call) Return(_a0 *servicesecurityhub.DescribeHubOutput, _a1 error) *MockClient_DescribeHub_Call
func (*MockClient_DescribeHub_Call) Run ¶
func (_c *MockClient_DescribeHub_Call) Run(run func(ctx context.Context, params *servicesecurityhub.DescribeHubInput, optFns ...func(*servicesecurityhub.Options))) *MockClient_DescribeHub_Call
func (*MockClient_DescribeHub_Call) RunAndReturn ¶
func (_c *MockClient_DescribeHub_Call) RunAndReturn(run func(context.Context, *servicesecurityhub.DescribeHubInput, ...func(*servicesecurityhub.Options)) (*servicesecurityhub.DescribeHubOutput, error)) *MockClient_DescribeHub_Call
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClient_Expecter) DescribeHub ¶
func (_e *MockClient_Expecter) DescribeHub(ctx interface{}, params interface{}, optFns ...interface{}) *MockClient_DescribeHub_Call
DescribeHub is a helper method to define mock.On call
- ctx context.Context
- params *servicesecurityhub.DescribeHubInput
- optFns ...func(*servicesecurityhub.Options)
type MockService ¶
MockService is an autogenerated mock type for the Service type
func NewMockService ¶
func NewMockService(t interface { mock.TestingT Cleanup(func()) }) *MockService
NewMockService creates a new instance of MockService. 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 (*MockService) Describe ¶
func (_m *MockService) Describe(ctx context.Context) ([]SecurityHub, error)
Describe provides a mock function with given fields: ctx
func (*MockService) EXPECT ¶
func (_m *MockService) EXPECT() *MockService_Expecter
type MockService_Describe_Call ¶
MockService_Describe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Describe'
func (*MockService_Describe_Call) Return ¶
func (_c *MockService_Describe_Call) Return(_a0 []SecurityHub, _a1 error) *MockService_Describe_Call
func (*MockService_Describe_Call) Run ¶
func (_c *MockService_Describe_Call) Run(run func(ctx context.Context)) *MockService_Describe_Call
func (*MockService_Describe_Call) RunAndReturn ¶
func (_c *MockService_Describe_Call) RunAndReturn(run func(context.Context) ([]SecurityHub, error)) *MockService_Describe_Call
type MockService_Expecter ¶
type MockService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockService_Expecter) Describe ¶
func (_e *MockService_Expecter) Describe(ctx interface{}) *MockService_Describe_Call
Describe 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 SecurityHub ¶
type SecurityHub struct { Enabled bool Region string AccountId string *securityhub.DescribeHubOutput }
func (SecurityHub) GetRegion ¶
func (s SecurityHub) GetRegion() string
func (SecurityHub) GetResourceArn ¶
func (s SecurityHub) GetResourceArn() string
func (SecurityHub) GetResourceName ¶
func (s SecurityHub) GetResourceName() string
func (SecurityHub) GetResourceType ¶
func (s SecurityHub) GetResourceType() string