types

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 0 Imported by: 0

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

View Source
var AllAuditTrailBackends = []AuditTrailBackend{BackendMemory, BackendSqlite}

AllAuditTrailBackends is the ordered slice of all valid AuditTrailBackend values.

AllBumpKinds is the ordered slice of all valid BumpKind values.

AllDomains is the ordered slice of all valid Domain values.

View Source
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.

const (
	BumpMajor BumpKind = "major"
	BumpMinor BumpKind = "minor"
	BumpPatch BumpKind = "patch"
)

func (BumpKind) IsValid

func (k BumpKind) IsValid() bool

IsValid reports whether k is a known BumpKind value.

type Domain

type Domain string

Domain classifies a phase into a high-level lifecycle domain. Values match schema.xml <enum name="DomainType"> entries.

const (
	DomainUser Domain = "user"
	DomainPlan Domain = "plan"
	DomainImpl Domain = "impl"
)

func (Domain) IsValid

func (d Domain) IsValid() bool

IsValid reports whether d is a known Domain value.

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.

Jump to

Keyboard shortcuts

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