sechub

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 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
}

type ChangeType

type ChangeType string
const (
	ENABLE  ChangeType = "+"
	DISABLE ChangeType = "-"
)

type Controls

type Controls struct {
	Enable  []string `yaml:"enable,flow,omitempty"`
	Disable []string `yaml:"disable,flow,omitempty"`
	// contains filtered or unexported fields
}

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

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

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

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

func (*SecHub) UnmarshalYAML

func (s *SecHub) UnmarshalYAML(b []byte) 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