manifest

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ApprovalInventoryVersion = "1"
View Source
const Version = "v1"

Variables

This section is empty.

Functions

func ResolvePath

func ResolvePath(statePath string) string

func Save

func Save(path string, m Manifest) error

Types

type Approval

type Approval struct {
	Approver        string `yaml:"approver,omitempty" json:"approver,omitempty"`
	Owner           string `yaml:"owner,omitempty" json:"owner,omitempty"`
	Scope           string `yaml:"scope,omitempty" json:"scope,omitempty"`
	EvidenceURL     string `yaml:"evidence_url,omitempty" json:"evidence_url,omitempty"`
	ControlID       string `yaml:"control_id,omitempty" json:"control_id,omitempty"`
	Approved        string `yaml:"approved,omitempty" json:"approved,omitempty"`
	Expires         string `yaml:"expires,omitempty" json:"expires,omitempty"`
	ReviewCadence   string `yaml:"review_cadence,omitempty" json:"review_cadence,omitempty"`
	LastReviewed    string `yaml:"last_reviewed,omitempty" json:"last_reviewed,omitempty"`
	RenewalState    string `yaml:"renewal_state,omitempty" json:"renewal_state,omitempty"`
	AcceptedRisk    bool   `yaml:"accepted_risk,omitempty" json:"accepted_risk,omitempty"`
	DecisionReason  string `yaml:"decision_reason,omitempty" json:"decision_reason,omitempty"`
	ExclusionReason string `yaml:"exclusion_reason,omitempty" json:"exclusion_reason,omitempty"`
}

type IdentityRecord

type IdentityRecord struct {
	AgentID       string   `yaml:"agent_id" json:"agent_id"`
	ToolID        string   `yaml:"tool_id" json:"tool_id"`
	ToolType      string   `yaml:"tool_type" json:"tool_type"`
	Org           string   `yaml:"org" json:"org"`
	Repo          string   `yaml:"repo" json:"repo"`
	Location      string   `yaml:"location" json:"location"`
	Status        string   `yaml:"status" json:"status"`
	Approval      Approval `yaml:"approval,omitempty" json:"approval,omitempty"`
	ApprovalState string   `yaml:"approval_status" json:"approval_status"`
	FirstSeen     string   `yaml:"first_seen" json:"first_seen"`
	LastSeen      string   `yaml:"last_seen" json:"last_seen"`
	Present       bool     `yaml:"present" json:"present"`
	DataClass     string   `yaml:"data_class" json:"data_class"`
	EndpointClass string   `yaml:"endpoint_class" json:"endpoint_class"`
	AutonomyLevel string   `yaml:"autonomy_level" json:"autonomy_level"`
	RiskScore     float64  `yaml:"risk_score" json:"risk_score"`
}

type Manifest

type Manifest struct {
	Version                  string           `yaml:"version" json:"version"`
	ApprovalInventoryVersion string           `yaml:"approval_inventory_version,omitempty" json:"approval_inventory_version,omitempty"`
	UpdatedAt                string           `yaml:"updated_at" json:"updated_at"`
	Identities               []IdentityRecord `yaml:"identities" json:"identities"`
}

func Load

func Load(path string) (Manifest, error)

Jump to

Keyboard shortcuts

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