securityhub

package
v0.0.0-...-56579fc Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

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

DescribeHub provides a mock function with given fields: ctx, params, optFns

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *MockClient_Expecter

type MockClient_DescribeHub_Call

type MockClient_DescribeHub_Call struct {
	*mock.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 (*MockClient_DescribeHub_Call) Run

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

type MockService struct {
	mock.Mock
}

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

type MockService_Describe_Call struct {
	*mock.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 (*MockService_Describe_Call) Run

func (*MockService_Describe_Call) RunAndReturn

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

func NewProvider(ctx context.Context, log *logp.Logger, cfg aws.Config, factory awslib.CrossRegionFactory[Client], accountId string) *Provider

func (*Provider) Describe

func (p *Provider) Describe(ctx context.Context) ([]SecurityHub, error)

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

type Service

type Service interface {
	Describe(ctx context.Context) ([]SecurityHub, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL