compliance

package
v0.0.0-...-17e6b21 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComplianceResult

type ComplianceResult struct {
	Valid          bool
	Timestamp      time.Time
	ControlResults map[string]*ControlResult
	Evidence       map[string]interface{}
	Errors         []error
}

type ComplianceValidator

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

func (*ComplianceValidator) ValidateQuantumCompliance

type ControlResult

type ControlResult struct {
	ControlID     string
	Status        string
	Score         float64
	Justification string
	Evidence      []string
	Timestamp     time.Time
}

type OSCALVerifier

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

func NewOSCALVerifier

func NewOSCALVerifier(
	metrics *metrics.QuantumStorageMetrics,
	tracer tracing.Tracer,
	daprClient client.Client,
) *OSCALVerifier

func (*OSCALVerifier) VerifyCompliance

func (ov *OSCALVerifier) VerifyCompliance(
	ctx context.Context,
	attestation *Attestation,
	catalogID string,
) (*ComplianceResult, error)

type PolicyResult

type PolicyResult struct {
	PolicyID   string
	Valid      bool
	Violations []Violation
	Timestamp  time.Time
	Evidence   map[string]interface{}
}

type PolicyVerifier

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

func NewPolicyVerifier

func NewPolicyVerifier(
	metrics *metrics.QuantumStorageMetrics,
	tracer tracing.Tracer,
	daprClient client.Client,
) *PolicyVerifier

func (*PolicyVerifier) VerifyPolicy

func (pv *PolicyVerifier) VerifyPolicy(
	ctx context.Context,
	attestation *Attestation,
	policyID string,
) (*PolicyResult, error)

type Violation

type Violation struct {
	Rule        string
	Description string
	Severity    string
	Evidence    []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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