runtime

package
v0.0.0-...-27d2001 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evidence

type Evidence struct {
	Title       string            `json:"title,omitempty"`
	Description string            `json:"description,omitempty"`
	Props       []domain.Property `json:"props,omitempty"`
	Links       []domain.Link     `json:"links,omitempty"`
	Remarks     string            `json:"remarks,omitempty"`
}

type ExecutionResult

type ExecutionResult struct {
	Status       ExecutionStatus `json:"status"`
	AssessmentId string          `json:"assessmentId"`
	ComponentId  string          `json:"componentId"`
	ControlId    string          `json:"controlId"`
	TaskId       string          `json:"taskId"`
	ActivityId   string          `json:"activityId"`
	Error        error           `json:"error"`
	Subject      Subject         `json:"subject"`
	Observations []Observation   `json:"observations"`
	Findings     []Finding       `json:"findings"`
	Risks        []Risk          `json:"risks"`
	Logs         []LogEntry      `json:"logs"`
}

ExecutionResult holds the result of an compliance check execution for each subject.

type ExecutionStatus

type ExecutionStatus int
const (
	ExecutionStatusSuccess ExecutionStatus = iota
	ExecutionStatusFailure
)

type Finding

type Finding struct {
	Id          string            `json:"id"`
	Title       string            `json:"title,omitempty"`
	Description string            `json:"description,omitempty"`
	Props       []domain.Property `json:"props,omitempty"`
	Links       []domain.Link     `json:"links,omitempty"`
	Remarks     string            `json:"remarks,omitempty"`
	SubjectId   string            `json:"subjectId,omitempty"`
}

type LogEntry

type LogEntry struct {
	Title       string            `json:"title"`
	SubjectId   string            `json:"subjectId"`
	Description string            `json:"description"`
	Start       time.Time         `json:"start"`
	End         time.Time         `json:"end"`
	Remarks     string            `json:"remarks,omitempty"`
	Props       []domain.Property `json:"props,omitempty"`
	Links       []domain.Link     `json:"links,omitempty"`
}

type LogType

type LogType int

type Observation

type Observation struct {
	Id               string            `json:"id"`
	Title            string            `json:"title"`
	Description      string            `json:"description"`
	Props            []domain.Property `json:"props"`
	Links            []domain.Link     `json:"links"`
	Remarks          string            `json:"remarks"`
	SubjectId        string            `json:"subjectId"`
	Collected        time.Time         `json:"collected"`
	Expires          time.Time         `json:"expires"`
	RelevantEvidence []Evidence        `json:"relevantEvidence"`
}

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func (*Processor) Listen

func (r *Processor) Listen()

type Risk

type Risk struct {
	Title       string            `json:"title"`
	SubjectId   string            `json:"subjectId"`
	Description string            `json:"description"`
	Statement   string            `json:"statement"`
	Props       []domain.Property `json:"props,omitempty"`
	Links       []domain.Link     `json:"links,omitempty"`
}

type Subject

type Subject struct {
	Id          string             `json:"id"`
	SubjectId   string             `json:"subjectId"`
	Type        domain.SubjectType `json:"type"`
	Title       string             `json:"title,omitempty"`
	Description string             `json:"description,omitempty"`
	Props       []domain.Property  `json:"props,omitempty"`
	Links       []domain.Link      `json:"links,omitempty"`
	Remarks     string             `json:"remarks,omitempty"`
}

Jump to

Keyboard shortcuts

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