Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentConstraint ¶ added in v1.6.0
type DeploymentConstraint struct {
PolicyPath string `json:"policy_path,omitempty" yaml:"-"`
Workflow string `json:"workflow,omitempty" yaml:"workflow"`
Path string `json:"path,omitempty" yaml:"path"`
Environment string `json:"environment,omitempty" yaml:"environment"`
Branch string `json:"branch,omitempty" yaml:"branch"`
RequiredChecks []string `json:"required_checks,omitempty" yaml:"required_checks"`
SecurityGates []string `json:"security_gates,omitempty" yaml:"security_gates"`
FreezeWindows []string `json:"freeze_windows,omitempty" yaml:"freeze_windows"`
KillSwitches []string `json:"kill_switches,omitempty" yaml:"kill_switches"`
ApprovalRequired bool `json:"approval_required,omitempty" yaml:"approval_required"`
}
func LoadDeploymentConstraints ¶ added in v1.6.0
func LoadDeploymentConstraints(root string) ([]DeploymentConstraint, error)
type LoadResult ¶ added in v1.3.0
type LoadResult struct {
BlockedTools map[string]string
PolicyFiles []string
ParseErrors []*model.ParseError
}
func LoadBlockedTools ¶
func LoadBlockedTools(root string) (LoadResult, error)
LoadBlockedTools reads gait policy files and returns blocked tools keyed to stable rule IDs.
Click to show internal directories.
Click to hide internal directories.