scc

package
v1.4.4 Latest Latest
Warning

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

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

Documentation

Overview

Package scc implements Security Command Center client

Index

Constants

View Source
const (
	FindingStateStringActive      = "ACTIVE"
	FindingStateStringInactive    = "INACTIVE"
	FindingStateStringUnspecified = "UNSPECIFIED"

	FindingSeverityStringCritical = "CRITICAL"
	FindingSeverityStringHigh     = "HIGH"
	FindingSeverityStringMedium   = "MEDIUM"
	FindingSeverityStringLow      = "LOW"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	Time              time.Time
	ResourceName      string
	Category          string
	Description       string
	State             string
	Severity          string
	CisVersion        string
	CisID             string
	SourcePolicyName  string
	SourcePolicyFile  string
	SourcePolicyGroup string
	ExternalURI       string
	Recommendation    string
}

type MultipleErrors

type MultipleErrors []error

func (MultipleErrors) Error

func (m MultipleErrors) Error() error

type SecurityCommandCenterClient

type SecurityCommandCenterClient interface {
	CreateSource() (string, error)
	FindSource() (*string, error)
	UpsertFinding(sourceName string, finding *Finding) error
	Close() error
}

func NewSecurityCommandCenterClient

func NewSecurityCommandCenterClient(ctx context.Context, organizationNumber string) (SecurityCommandCenterClient, error)

func NewSecurityCommandCenterClientWithCredentialsFile

func NewSecurityCommandCenterClientWithCredentialsFile(ctx context.Context, organizationNumber string, credsFile string) (SecurityCommandCenterClient, error)

Jump to

Keyboard shortcuts

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