Documentation
¶
Index ¶
- Constants
- func ValidateCredentialOperation(operation CredentialOperation) error
- func WorkflowModeOutputs(mode WorkflowClassifierMode, result WorkflowClassifications) (map[string]bool, error)
- type CredentialOperation
- type P11WorkflowJob
- type P11WorkflowStep
- type P11WorkflowSummary
- type SyntheticToken
- type WorkflowClassifications
- type WorkflowClassifierMode
Constants ¶
View Source
const WorkflowClassifierVersion = "ci-path-classifier-v1"
Variables ¶
This section is empty.
Functions ¶
func ValidateCredentialOperation ¶
func ValidateCredentialOperation(operation CredentialOperation) error
func WorkflowModeOutputs ¶
func WorkflowModeOutputs(mode WorkflowClassifierMode, result WorkflowClassifications) (map[string]bool, error)
Types ¶
type CredentialOperation ¶
type CredentialOperation struct {
Operation string
TrustTier string
Capability string
Token SyntheticToken
Target string
}
type P11WorkflowJob ¶
type P11WorkflowStep ¶
type P11WorkflowSummary ¶
type P11WorkflowSummary struct {
Name string
Events []string
Permissions map[string]string
PermissionsExpression string
Env map[string]string
Jobs map[string]P11WorkflowJob
Scalars []string
}
func ReadP11WorkflowSummary ¶
func ReadP11WorkflowSummary(path string) (P11WorkflowSummary, error)
type SyntheticToken ¶
type WorkflowClassifications ¶
type WorkflowClassifications struct {
CIMacOS bool `json:"ci_macos"`
CoverageGUI bool `json:"coverage_gui"`
SandboxMacOS bool `json:"sandbox_macos"`
LibghosttyNative bool `json:"libghostty_native"`
LibghosttyDependencyUnit bool `json:"libghostty_dependency_unit"`
DevRelease bool `json:"dev_release"`
StableRelease bool `json:"stable_release"`
DocsPreviewTrigger bool `json:"docs_preview_trigger"`
DocsPreviewGlobal bool `json:"docs_preview_global"`
DocsPreviewBuild bool `json:"docs_preview_build"`
}
func ClassifyWorkflowPaths ¶
func ClassifyWorkflowPaths(changedFiles []string) (WorkflowClassifications, error)
type WorkflowClassifierMode ¶
type WorkflowClassifierMode string
const ( WorkflowClassifierModeCI WorkflowClassifierMode = "ci" WorkflowClassifierModeCoverage WorkflowClassifierMode = "coverage" WorkflowClassifierModeSandbox WorkflowClassifierMode = "sandbox" WorkflowClassifierModeLibghostty WorkflowClassifierMode = "libghostty" WorkflowClassifierModeDevRelease WorkflowClassifierMode = "dev-release" WorkflowClassifierModeStable WorkflowClassifierMode = "stable-release" WorkflowClassifierModeDocsPreview WorkflowClassifierMode = "docs-preview" )
func WorkflowClassifierModes ¶
func WorkflowClassifierModes() []WorkflowClassifierMode
Click to show internal directories.
Click to hide internal directories.