Documentation
¶
Overview ¶
Package types defines internal enums and value types for the Pasture daemon and CLI. These types are not part of the public API surface but are shared across internal packages.
Internal packages import pkg/protocol directly for public convergence types (D11: no internal/types/aliases.go). The review/role enums (VoteType, ReviewAxis, SeverityLevel, RoleId) live in pkg/protocol; this package keeps only the CLI/release value types below.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AllAuditTrailBackends = []AuditTrailBackend{BackendMemory, BackendSqlite}
AllAuditTrailBackends is the ordered slice of all valid AuditTrailBackend values.
var AllBumpKinds = []BumpKind{BumpMajor, BumpMinor, BumpPatch}
AllBumpKinds is the ordered slice of all valid BumpKind values.
var AllDomains = []Domain{DomainUser, DomainPlan, DomainImpl}
AllDomains is the ordered slice of all valid Domain values.
var AllOutputFormats = []OutputFormat{OutputJSON, OutputText}
AllOutputFormats is the ordered slice of all valid OutputFormat values.
Functions ¶
This section is empty.
Types ¶
type AuditTrailBackend ¶
type AuditTrailBackend string
AuditTrailBackend specifies the audit trail storage backend for pastured.
const ( BackendMemory AuditTrailBackend = "memory" BackendSqlite AuditTrailBackend = "sqlite" )
func (AuditTrailBackend) IsValid ¶
func (b AuditTrailBackend) IsValid() bool
IsValid reports whether b is a known AuditTrailBackend value.
type BumpKind ¶
type BumpKind string
BumpKind specifies the semver component to increment in pasture-release.
type Domain ¶
type Domain string
Domain classifies a phase into a high-level lifecycle domain. Values match schema.xml <enum name="DomainType"> entries.
type OutputFormat ¶
type OutputFormat string
OutputFormat specifies the CLI output format for pasture commands.
const ( OutputJSON OutputFormat = "json" OutputText OutputFormat = "text" )
func (OutputFormat) IsValid ¶
func (f OutputFormat) IsValid() bool
IsValid reports whether f is a known OutputFormat value.