sechub

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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
}

type ChangeType

type ChangeType string
const (
	ENABLE  ChangeType = "+"
	DISABLE 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

func (c *Controls) UnmarshalYAML(b []byte) error

type Regions

type Regions []*SecHub

type SecHub

type SecHub struct {
	AutoEnable *bool `yaml:"autoEnable,omitempty"`
	Standards  Standards
	Regions    Regions
	// contains filtered or unexported fields
}

func Diff

func Diff(base, a *SecHub) (*SecHub, error)

func Intersect

func Intersect(a, b *SecHub) *SecHub

func Load

func Load(p string) (*SecHub, error)

func New

func New(r string) *SecHub

func Override

func Override(base, a *SecHub) (*SecHub, error)

func (*SecHub) Apply

func (sh *SecHub) Apply(ctx context.Context, cfg aws.Config, reason string) error

func (*SecHub) Fetch

func (sh *SecHub) Fetch(ctx context.Context, cfg aws.Config) error

func (*SecHub) MarshalYAML

func (s *SecHub) MarshalYAML() ([]byte, error)

func (*SecHub) Overlay added in v0.4.0

func (base *SecHub) Overlay(overlay *SecHub)

func (*SecHub) Plan

func (sh *SecHub) Plan(ctx context.Context, cfg aws.Config, reason string) ([]*Change, error)

func (*SecHub) UnmarshalYAML

func (s *SecHub) UnmarshalYAML(b []byte) error

func (*SecHub) Validate added in v0.5.0

func (sh *SecHub) Validate() error

type SecHubForUnmarshal

type SecHubForUnmarshal struct {
	AutoEnable *bool                          `yaml:"autoEnable,omitempty"`
	Standards  map[string]*Standard           `yaml:"standards,omitempty"`
	Regions    map[string]*SecHubForUnmarshal `yaml:"regions,omitempty"`
}

type Standard

type Standard struct {
	Key      string    `yaml:"key,omitempty"`
	Enable   *bool     `yaml:"enable,omitempty"`
	Controls *Controls `yaml:"controls,omitempty"`
	// contains filtered or unexported fields
}

type Standards

type Standards []*Standard

Jump to

Keyboard shortcuts

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