Documentation ¶
Index ¶
- type Change
- type ChangeType
- type Controls
- type FindingGroup
- type FindingGroups
- type FindingResource
- type FindingResources
- type Notification
- type Notifications
- type NotifyFinding
- type Regions
- type SecHub
- func (sh *SecHub) Apply(ctx context.Context, cfg aws.Config, reason string) error
- func (sh *SecHub) Fetch(ctx context.Context, cfg aws.Config) error
- func (s *SecHub) MarshalYAML() ([]byte, error)
- func (sh *SecHub) Notify(ctx context.Context, cfg aws.Config, findings []NotifyFinding) error
- func (base *SecHub) Overlay(overlay *SecHub)
- func (sh *SecHub) Plan(ctx context.Context, cfg aws.Config, reason string) ([]*Change, error)
- func (s *SecHub) UnmarshalYAML(b []byte) error
- func (sh *SecHub) Validate() error
- type SecHubForUnmarshal
- type Standard
- type StandardForUnmarshal
- type StandardForYAML
- type Standards
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Change ¶
type Change struct { Key string ChangeType ChangeType DisabledReason string Changed interface{} }
type ChangeType ¶
type ChangeType string
const ( ENABLE ChangeType = "+" DISABLE ChangeType = "-" CHANGE ChangeType = "~" )
type Controls ¶
type Controls struct { Enable []string `yaml:"enable,flow,omitempty"` Disable yaml.MapSlice `yaml:"disable,omitempty"` // contains filtered or unexported fields }
func (*Controls) UnmarshalYAML ¶ added in v0.3.0
type FindingGroup ¶ added in v0.6.0
type FindingGroup struct { ControlID string Resources FindingResources }
type FindingGroups ¶ added in v0.6.0
type FindingGroups []*FindingGroup
func (FindingGroups) ControlIDs ¶ added in v0.6.0
func (fgs FindingGroups) ControlIDs() []string
func (FindingGroups) FindByControlID ¶ added in v0.6.0
func (fgs FindingGroups) FindByControlID(id string) (*FindingGroup, error)
type FindingResource ¶ added in v0.6.0
type FindingResources ¶ added in v0.6.0
type FindingResources []*FindingResource
func (FindingResources) Arns ¶ added in v0.6.0
func (frs FindingResources) Arns() []string
func (FindingResources) FindByArn ¶ added in v0.6.0
func (frs FindingResources) FindByArn(arn string) (*FindingResource, error)
type Notification ¶ added in v0.6.2
type Notifications ¶ added in v0.6.2
type Notifications []*Notification
type NotifyFinding ¶ added in v0.6.2
type NotifyFinding struct { SeverityLabel types.SeverityLabel WorkflowStatus types.WorkflowStatus }
type SecHub ¶
type SecHub struct { AutoEnable *bool `yaml:"autoEnable,omitempty"` Standards Standards Regions Regions Notifications Notifications `yaml:"notifications,omitempty"` // contains filtered or unexported fields }
func (*SecHub) MarshalYAML ¶
func (*SecHub) UnmarshalYAML ¶
type SecHubForUnmarshal ¶
type SecHubForUnmarshal struct { AutoEnable *bool `yaml:"autoEnable,omitempty"` Standards map[string]*Standard `yaml:"standards,omitempty"` Regions map[string]*SecHubForUnmarshal `yaml:"regions,omitempty"` Notifications Notifications `yaml:"notifications,omitempty"` }
type Standard ¶
type Standard struct { Key string `yaml:"key,omitempty"` Enable *bool `yaml:"enable,omitempty"` Controls *Controls `yaml:"controls,omitempty"` Findings FindingGroups `yaml:"-"` // contains filtered or unexported fields }
func (*Standard) UnmarshalYAML ¶ added in v0.6.0
type StandardForUnmarshal ¶ added in v0.6.0
type StandardForYAML ¶ added in v0.6.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.