Help us shape the future of Go! Take the 2026 Go Developer Survey

domain

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor struct {
	UserID          ID   `json:"user_id"`
	OrgID           ID   `json:"org_id"`
	Role            Role `json:"role"`
	TeamIDs         []ID `json:"team_ids"`
	RepositoryIDs   []ID `json:"repository_ids"`
	AllRepositories bool `json:"all_repositories"`
	SessionID       ID   `json:"-"`
}

type Capability

type Capability struct {
	State       CapabilityState `json:"state"`
	Scope       string          `json:"scope"`
	Reason      string          `json:"reason"`
	Source      string          `json:"source"`
	Version     string          `json:"version"`
	LastChecked time.Time       `json:"last_checked"`
}

type CapabilityState

type CapabilityState string
const (
	Supported   CapabilityState = "supported"
	Unsupported CapabilityState = "unsupported"
	Unknown     CapabilityState = "unknown"
)

type ChangeState

type ChangeState string
const (
	ChangeDraft          ChangeState = "draft"
	ChangeOpen           ChangeState = "open"
	ChangeEvaluating     ChangeState = "evaluating"
	ChangeEligible       ChangeState = "eligible"
	ChangeMergeRequested ChangeState = "merge_requested"
	ChangeQueued         ChangeState = "queued"
	ChangeMerged         ChangeState = "merged"
	ChangeBlocked        ChangeState = "blocked"
	ChangeReconciling    ChangeState = "reconciling"
	ChangeClosed         ChangeState = "closed"
)

type Decision

type Decision struct {
	Outcome         string   `json:"outcome"`
	PolicyHash      string   `json:"policy_hash"`
	Blockers        []string `json:"blockers"`
	RequiredActions []string `json:"required_actions"`
	Rules           []string `json:"rules"`
}

type DeploymentState

type DeploymentState string
const (
	DeploymentPlanned           DeploymentState = "planned"
	DeploymentAwaitingGates     DeploymentState = "awaiting_gates"
	DeploymentEligible          DeploymentState = "eligible"
	DeploymentRequested         DeploymentState = "requested"
	DeploymentRunning           DeploymentState = "running"
	DeploymentVerifying         DeploymentState = "verifying"
	DeploymentHealthy           DeploymentState = "healthy"
	DeploymentBlocked           DeploymentState = "blocked"
	DeploymentReconciling       DeploymentState = "reconciling"
	DeploymentFailed            DeploymentState = "failed"
	DeploymentUnverified        DeploymentState = "completed_unverified"
	DeploymentRecoveryRequested DeploymentState = "recovery_requested"
	DeploymentRecovering        DeploymentState = "recovering"
	DeploymentRecovered         DeploymentState = "recovered"
	DeploymentRecoveryFailed    DeploymentState = "recovery_failed"
	DeploymentCancelled         DeploymentState = "cancelled"
)

type Error

type Error struct {
	Code      string `json:"code"`
	Message   string `json:"message"`
	RequestID string `json:"request_id"`
	Retryable bool   `json:"retryable"`
	Details   any    `json:"details,omitempty"`
}

func (*Error) Error

func (e *Error) Error() string

type Event

type Event struct {
	ID               int64           `json:"id"`
	OrgID            ID              `json:"org_id"`
	RepositoryID     ID              `json:"repository_id,omitempty"`
	Type             string          `json:"type"`
	AggregateType    string          `json:"aggregate_type"`
	AggregateID      ID              `json:"aggregate_id"`
	AggregateVersion int64           `json:"aggregate_version"`
	OccurredAt       time.Time       `json:"occurred_at"`
	RequestID        ID              `json:"request_id"`
	DataVersion      int             `json:"data_version"`
	Data             json.RawMessage `json:"data"`
}

type ID

type ID = string

func NewID

func NewID() ID

func StableID

func StableID(parts ...string) ID

type Organisation

type Organisation struct {
	ID      ID     `json:"id"`
	Name    string `json:"name"`
	Version int64  `json:"version"`
	Paused  bool   `json:"paused"`
}

type Page

type Page[T any] struct {
	Items      []T    `json:"items"`
	NextCursor string `json:"next_cursor,omitempty"`
	Complete   bool   `json:"complete"`
}

type ProviderError

type ProviderError struct {
	Kind       string
	Message    string
	RetryAfter time.Duration
	Uncertain  bool
}

func (*ProviderError) Error

func (e *ProviderError) Error() string

type Repository

type Repository struct {
	ID            ID         `json:"id"`
	OrgID         ID         `json:"org_id"`
	ConnectionID  ID         `json:"connection_id"`
	NativeID      string     `json:"native_id"`
	Name          string     `json:"name"`
	URL           string     `json:"url"`
	DefaultBranch string     `json:"default_branch"`
	Provider      string     `json:"provider"`
	Archived      bool       `json:"archived"`
	Paused        bool       `json:"paused"`
	Accessible    bool       `json:"accessible"`
	TeamIDs       []ID       `json:"team_ids"`
	LastSyncedAt  *time.Time `json:"last_synced_at"`
	Version       int64      `json:"version"`
}

type Role

type Role string
const (
	Owner      Role = "owner"
	Admin      Role = "admin"
	Maintainer Role = "maintainer"
	Reviewer   Role = "reviewer"
	Viewer     Role = "viewer"
)

type TaskState

type TaskState string
const (
	TaskQueued      TaskState = "queued"
	TaskReproducing TaskState = "reproducing"
	TaskPlanning    TaskState = "planning"
	TaskRepairing   TaskState = "repairing"
	TaskValidating  TaskState = "validating"
	TaskPublishing  TaskState = "publishing"
	TaskCompleted   TaskState = "completed"
	TaskBlocked     TaskState = "blocked"
	TaskFailed      TaskState = "failed"
	TaskCancelling  TaskState = "cancelling"
	TaskCancelled   TaskState = "cancelled"
	TaskReconciling TaskState = "reconciling"
)

Jump to

Keyboard shortcuts

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