deployerrors

package
v0.19.1064 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package deployerrors holds the typed CompositeError implementations produced by the installs deploy orchestration itself (as opposed to a runner job's tool output, which is parsed under runners/errparse). It lives next to the installs domain that consumes it: each domain owns the custom errors it knows how to produce.

Index

Constants

View Source
const ComponentBuildUnavailableErrorType compositeerrors.Type = "deploy.component_build_unavailable"

ComponentBuildUnavailableErrorType is the discriminator for a deploy that cannot proceed because the component it targets has no deployable build.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentBuildUnavailableError added in v0.19.1014

type ComponentBuildUnavailableError struct {
	Reason ComponentBuildUnavailableReason `json:"reason"`

	ComponentID   string `json:"component_id,omitempty"`
	ComponentName string `json:"component_name,omitempty"`

	BuildID                string `json:"build_id,omitempty"`
	BuildStatus            string `json:"build_status,omitempty"`
	BuildStatusDescription string `json:"build_status_description,omitempty"`
}

ComponentBuildUnavailableError is the typed payload for a deploy that cannot run because its component build is unavailable. It implements compositeerrors.CompositeError so it can be frozen onto the owning deploy row and rendered in the dashboard, guiding the user to (re)build the component.

func (*ComponentBuildUnavailableError) Error added in v0.19.1014

func (*ComponentBuildUnavailableError) Sections added in v0.19.1014

func (*ComponentBuildUnavailableError) Severity added in v0.19.1014

func (*ComponentBuildUnavailableError) Type added in v0.19.1014

type ComponentBuildUnavailableReason added in v0.19.1014

type ComponentBuildUnavailableReason string

ComponentBuildUnavailableReason describes why the build could not be deployed.

const (
	// ComponentBuildUnavailableReasonFailed means the latest build for the
	// component is in a terminal failure state (error / policy_failed).
	ComponentBuildUnavailableReasonFailed ComponentBuildUnavailableReason = "failed"

	// ComponentBuildUnavailableReasonMissing means no build exists for the
	// component yet, so there is no artifact to deploy.
	ComponentBuildUnavailableReasonMissing ComponentBuildUnavailableReason = "missing"
)

Jump to

Keyboard shortcuts

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