consts

package
v1.3.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// GRPC
	GrpcSessionIDKey        = "session-id"
	GrpcClientNameKey       = "client-name"
	GrpcSelectedProtocolKey = "selected-protocol"
	GrpcAppNameKey          = "app-name"
	// GrpcSessionErrorKey carries a session-level failure (e.g. the requested application
	// does not exist) discovered by the agent before it can select a protocol. Sent instead
	// of (never alongside) GrpcSelectedProtocolKey so the server can fail the session before
	// upgrading the client's connection, rather than reporting the error only after upgrade.
	GrpcSessionErrorKey = "session-error"
	// GrpcSessionErrorCodeKey carries an optional machine-readable code for the failure in
	// GrpcSessionErrorKey (e.g. AppConsoleErrorCodeNotReady). Absent for generic failures.
	GrpcSessionErrorCodeKey = "session-error-code"

	// AppConsoleErrorCodeNotReady is the machine-readable code for a console request made
	// while the VM application has no active compute workload (e.g. stopped or still starting).
	AppConsoleErrorCodeNotReady = "app-not-ready"
	// AppConsoleErrorCodeHeader is set on the HTTP response when a console session fails
	// before WebSocket upgrade with a known machine-readable code.
	AppConsoleErrorCodeHeader = "X-Flightctl-App-Console-Error"

	// AppConsoleErrorCloseCode is the WebSocket close status code the flightctl-remote-access
	// service uses to signal an application console session-level failure (e.g. the requested
	// application does not exist), as opposed to a normal end of session. It is in the
	// 4000-4999 range reserved by RFC 6455 for private use. Shared between
	// internal/remote_access_server (sender) and internal/cli (receiver).
	AppConsoleErrorCloseCode = 4001
	// AppConsoleNotReadyCloseCode signals that the application console is temporarily
	// unavailable (AppConsoleErrorCodeNotReady). Clients may retry.
	AppConsoleNotReadyCloseCode = 4002

	// Tasks
	TaskQueue           = "task-queue"
	ImageBuildTaskQueue = "imagebuild-queue"

	// Checkpoints
	CheckpointConsumerEventProcessor = "event_processor"
	CheckpointConsumerTaskQueue      = "task_queue"
	CheckpointKeyGlobal              = "global_checkpoint"

	// Ctx
	DelayDeviceRenderCtxKey    ctxKey = "delay-device-render"
	EventSourceComponentCtxKey ctxKey = "event-source"
	EventActorCtxKey           ctxKey = "event-actor"
	TLSPeerCertificateCtxKey   ctxKey = "tls-peer-certificate"
	OrganizationIDCtxKey       ctxKey = "organization-id"
	UserAgentCtxKey            ctxKey = "user-agent"
	AgentCtxKey                ctxKey = "agent"
	TokenCtxKey                ctxKey = "token"
	IdentityCtxKey             ctxKey = "identity"
	MappedIdentityCtxKey       ctxKey = "mapped-identity"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type UpdateState added in v1.1.0

type UpdateState string

UpdateState represents the state of a device update.

const (
	// The agent is validating the desired device spec and downloading
	// dependencies. No changes have been made to the device's configuration
	// yet.
	UpdateStatePreparing UpdateState = "Preparing"
	//  The agent has validated the desired spec, downloaded all dependencies,
	//  and is ready to update. No changes have been made to the device's
	//  configuration yet.
	UpdateStateReadyToUpdate UpdateState = "ReadyToUpdate"
	// The agent has started the update transaction and is writing the update to
	// disk.
	UpdateStateApplyingUpdate UpdateState = "ApplyingUpdate"
	// The agent initiated a reboot required to activate the new OS image and configuration.
	UpdateStateRebooting UpdateState = "Rebooting"
	// The agent has successfully completed the update and the device is
	// conforming to its device spec. Note that the device's update status may
	// still be reported as `OutOfDate` if the device spec is not yet at the
	// same version as the fleet's device template
	UpdateStateUpdated UpdateState = "Updated"
	// The agent has canceled the update because the desired spec was reverted
	// to the current spec before the update process started.
	UpdateStateCanceled UpdateState = "Canceled"
	// The agent failed to apply the desired spec and will not retry. The
	// device's OS image and configuration have been rolled back to the
	// pre-update version and have been activated
	UpdateStateError UpdateState = "Error"
	// The agent has detected an error and is rolling back to the pre-update OS
	// image and configuration.
	UpdateStateRollingBack UpdateState = "RollingBack"
	// The agent failed to apply the desired spec and will retry. The device's
	// OS image and configuration have been rolled back to the pre-update
	// version and have been activated.
	UpdateStateRetrying UpdateState = "Retrying"
)

Jump to

Keyboard shortcuts

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