agent

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package agent implements `hadron agent ...` — agent lifecycle management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdAgent

func NewCmdAgent(f *cmdutil.Factory) *cobra.Command

NewCmdAgent builds the `hadron agent` command group.

func ParseVisibility added in v0.9.0

func ParseVisibility(s string) (*gen.AgentVisibility, error)

ParseVisibility is exported for reuse outside this package (#405 precedent) — one place to change if the enum grows a member.

Types

type OfferReadinessDTO added in v0.42.0

type OfferReadinessDTO struct {
	Ready   bool             `json:"ready"`
	Reasons []OfferReasonDTO `json:"reasons"`
}

OfferReadinessDTO is the server's AgentOfferReadiness. Reasons is empty exactly when Ready, and never null.

type OfferReasonDTO added in v0.42.0

type OfferReasonDTO struct {
	Code           string            `json:"code"`
	Count          int               `json:"count"`
	Subjects       []OfferSubjectDTO `json:"subjects"`
	OmittedByCap   int               `json:"omittedByCap"`
	HiddenByAccess int               `json:"hiddenByAccess"`
}

OfferReasonDTO is one reason an Agent is not ready to be offered (AgentOfferReason, cor:dmo:050:19). Count is every blocked subject; Subjects are the ones the server named; OmittedByCap and HiddenByAccess are counts, never names.

type OfferSubjectDTO added in v0.42.0

type OfferSubjectDTO struct {
	Name string `json:"name"`
}

OfferSubjectDTO is one blocking subject the server named (AgentOfferSubject); only the name is reachable.

Jump to

Keyboard shortcuts

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