Documentation ¶
Index ¶
- type Client
- type EnrichedTrail
- type MockClient
- type MockClient_DescribeTrails_Call
- func (_c *MockClient_DescribeTrails_Call) Return(_a0 []awslib.AwsResource, _a1 error) *MockClient_DescribeTrails_Call
- func (_c *MockClient_DescribeTrails_Call) Run(run func(ctx context.Context)) *MockClient_DescribeTrails_Call
- func (_c *MockClient_DescribeTrails_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, error)) *MockClient_DescribeTrails_Call
- type MockClient_Expecter
- type Provider
- type TrailBucket
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) ([]awslib.AwsResource, error)
}
type EnrichedTrail ¶
type EnrichedTrail struct { cloudtrail.TrailInfo BucketInfo TrailBucket `json:"bucket_info"` }
func (EnrichedTrail) GetRegion ¶
func (e EnrichedTrail) GetRegion() string
func (EnrichedTrail) GetResourceArn ¶
func (e EnrichedTrail) GetResourceArn() string
func (EnrichedTrail) GetResourceName ¶
func (e EnrichedTrail) GetResourceName() string
func (EnrichedTrail) GetResourceType ¶
func (e EnrichedTrail) GetResourceType() string
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) ([]awslib.AwsResource, error)
DescribeTrails provides a mock function with given fields: ctx
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
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 []awslib.AwsResource, _a1 error) *MockClient_DescribeTrails_Call
func (*MockClient_DescribeTrails_Call) Run ¶
func (_c *MockClient_DescribeTrails_Call) Run(run func(ctx context.Context)) *MockClient_DescribeTrails_Call
func (*MockClient_DescribeTrails_Call) RunAndReturn ¶
func (_c *MockClient_DescribeTrails_Call) RunAndReturn(run func(context.Context) ([]awslib.AwsResource, 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{}) *MockClient_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 ¶
func (*Provider) DescribeTrails ¶
type TrailBucket ¶
type TrailBucket struct { Policy s3.BucketPolicy `json:"policy,omitempty"` Logging s3.Logging `json:"logging,omitempty"` ACL *s3Client.GetBucketAclOutput `json:"acl,omitempty"` }
Click to show internal directories.
Click to hide internal directories.