Versions in this module Expand all Collapse all v0 v0.7.0 Nov 27, 2026 Changes in this version + const DefaultLargeFile + const PolicyReviewCheck + const ResultFail + const ResultNeutral + const ResultPass + const StateFailed + const StateNeutral + const StateNotHere + const StatePassed + const StateReady + const StateSkipped + const StateWaiting + func FormatTimeout(d time.Duration) string + func ParseSize(v any) (int64, error) + func PipelineReady(steps []Step, results map[string]string, applies func(name string) bool) []string + func PipelineSkipped(steps []Step, results map[string]string, applies func(name string) bool) map[string]string + func ResolveInputs(s Step, outputs map[string]Output) (values map[string]string, missing []string) + func ValidateChecks(defs ...[]CheckDef) error + type Blocks string + const BlocksLand + const BlocksNothing + const BlocksShip + type CheckDef struct + After []string + AllowSamePerson bool + Blocks Blocks + Inputs []string + Line int + Name string + Origin Origin + Outputs Outputs + Paths []string + Reporter Reporter + Run string + Runner string + Timeout time.Duration + When When + func ParseChecks(data []byte) ([]CheckDef, error) + func (d CheckDef) Applies(paths []string) bool + func (d CheckDef) ArtifactAllowed(name string) bool + func (d CheckDef) Describe() string + func (d CheckDef) IsRun() bool + type InputRef struct + Artifact string + Check string + Field string + Raw string + func ParseInput(s string) (InputRef, error) + func (r InputRef) IsOutput() bool + type Origin string + const OriginCheck + const OriginOrg + const OriginPolicy + const OriginRequired + type Output struct + Artifacts map[string]string + Data map[string]string + type Outputs struct + Artifacts []string + Required []string + type PipelineProblem struct + Check string + Msg string + func ValidatePipeline(steps []Step, known func(name string) bool) []PipelineProblem + func (p PipelineProblem) String() string + type Reporter string + const ReporterCI + const ReporterHuman + const ReporterIndependent + const ReporterSelf type Rules + Checks []CheckDef + LargeFile int64 + func (r Rules) Check(name string) (CheckDef, bool) + func (r Rules) Effective() []CheckDef + func (r Rules) LargeFileLimit() int64 + func (r Rules) RunCheck(command string) (CheckDef, bool) + type Step struct + After []string + Inputs []string + Name string + func StepsOf(defs []CheckDef) []Step + type StepState struct + After []string + Depth int + Name string + Parent string + Reason string + State string + func Pipeline(steps []Step, results map[string]string, applies func(name string) bool) []StepState + type When string + const WhenLand + const WhenManual + const WhenShip v0.6.0 Nov 26, 2026 v0.5.0 Nov 26, 2026 Changes in this version + func ContentKeys(content, scope *regexp.Regexp, data []byte) map[string][]int type Rules + Ignored []string type Unique + Content string + Scope string + func (u Unique) IsContent() bool v0.4.0 Nov 24, 2026 Changes in this version + const RebaseAuto + const RebaseNotify + const RebaseOff + var Modes = []Mode + func ShellQuote(s string) string + type Approver struct + Kind string + Name string + func ParseApprover(s string) (Approver, error) + type Decision struct + Approvers [][]string + Mode Mode + Paths []string + Policies []string + Require []string + func Combine(ds ...Decision) Decision + func (d Decision) LandCommand() string + func (d Decision) Missing(passed, failed []string) []MissingCheck + type MissingCheck struct + Command string + Failed bool + type Mode string + const ModeFast + const ModeGated + const ModeHuman + func (m Mode) Stricter(o Mode) bool + type Policy struct + Approvers []string + Line int + Mode Mode + Paths []string + Require []string + func (p Policy) Describe() string + func (p Policy) Matches(path string) bool type Rules + Policies []Policy + Rebase string + func (r Rules) Decide(paths []string) Decision + func (r Rules) RebaseMode() string v0.3.0 Nov 24, 2026 Changes in this version + const File + const WarningRule + func Check(ctx context.Context, s blob.Store, r Rules, base, tree hash.Hash) ([]engine.Warning, error) + func Files(ctx context.Context, s blob.Store, tree hash.Hash, g Glob) ([]string, error) + func KeyOf(key *regexp.Regexp, path string) (string, bool) + func MatchGlob(pattern, path string) bool + func MergeOptions(ctx context.Context, s blob.Store, trees ...hash.Hash) []engine.MergeOption + func MissingChecks(r Rules, ran []string) []string + func NotVerified(command string) string + type Error struct + Problems []Problem + func (e *Error) Error() string + type Generated struct + Command string + Glob string + type Glob struct + func CompileGlob(pattern string) (Glob, error) + func (g Glob) Dir() string + func (g Glob) Match(path string) bool + func (g Glob) String() string + type Problem struct + Line int + Msg string + func (p Problem) String() string + type Rules struct + Generated []Generated + RequiredChecks []string + Source string + Unique []Unique + func At(ctx context.Context, s blob.Store, tree hash.Hash) (Rules, error) + func Parse(data []byte) (Rules, error) + func (r Rules) GeneratedMatcher() func(path string) (command string, ok bool) + func (r Rules) IsEmpty() bool + func (r Rules) UniqueRule(name string) (Unique, bool) + type Unique struct + Glob string + Key string + Name string