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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AIModel

type AIModel struct {
	ID          string
	Type        string
	Version     string
	LastTrained time.Time
	Accuracy    float64
	Parameters  map[string]interface{}
}

type AnalysisResult

type AnalysisResult struct {
	ComplianceScore float64
	RiskLevel       string
	Findings        []Finding
	Recommendations []Recommendation
	ModelMetadata   ModelMetadata
	Timestamp       time.Time
}

type ComplianceAnalyzer

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

func NewComplianceAnalyzer

func NewComplianceAnalyzer(
	metrics *metrics.QuantumStorageMetrics,
	tracer tracing.Tracer,
	threshold float64,
) (*ComplianceAnalyzer, error)

func (*ComplianceAnalyzer) AnalyzeCompliance

func (ca *ComplianceAnalyzer) AnalyzeCompliance(
	ctx context.Context,
	node *unified.Node,
) (*AnalysisResult, error)

type Finding

type Finding struct {
	ID          string
	Category    string
	Severity    string
	Description string
	Evidence    map[string]interface{}
	Confidence  float64
}

type ModelMetadata

type ModelMetadata struct {
	ModelID      string
	Version      string
	Confidence   float64
	TrainingData TrainingMetrics
}

type Recommendation

type Recommendation struct {
	ID           string
	Priority     int
	Description  string
	Impact       string
	Effort       string
	Timeline     time.Duration
	Dependencies []string
}

type TrainingMetrics

type TrainingMetrics struct {
	LastUpdated time.Time
	DataPoints  int
	Accuracy    float64
	Bias        float64
}

Jump to

Keyboard shortcuts

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