cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute adds all child commands to the root command and sets flags appropriately.

func SetVersionInfo

func SetVersionInfo(v, c, d string)

SetVersionInfo sets the version information

Types

type AgentConfig

type AgentConfig struct {
	Name         string    `json:"name"`
	Version      string    `json:"version"`
	Description  string    `json:"description"`
	Capabilities []string  `json:"capabilities"`
	Model        ModelInfo `json:"model"`
}

type AgentInfo

type AgentInfo struct {
	Tag         string            `json:"tag"`
	ImageID     string            `json:"image_id"`
	Created     string            `json:"created"`
	Size        string            `json:"size"`
	Config      AgentConfig       `json:"config"`
	Runtime     RuntimeInfo       `json:"runtime"`
	Health      HealthInfo        `json:"health"`
	Ports       []PortMapping     `json:"ports"`
	Environment []EnvVariable     `json:"environment"`
	Labels      map[string]string `json:"labels"`
}

type Config

type Config struct {
	Profiles       map[string]Profile `json:"profiles"`
	DefaultProfile string             `json:"default_profile"`
}

type EnvVariable

type EnvVariable struct {
	Name  string `json:"name"`
	Value string `json:"value"`
	From  string `json:"from,omitempty"`
}

type HealthInfo

type HealthInfo struct {
	Command     []string `json:"command"`
	Interval    string   `json:"interval"`
	Timeout     string   `json:"timeout"`
	Retries     int      `json:"retries"`
	StartPeriod string   `json:"start_period"`
}

type ModelInfo

type ModelInfo struct {
	Provider string            `json:"provider"`
	Name     string            `json:"name"`
	Config   map[string]string `json:"config"`
}

type PortMapping

type PortMapping struct {
	Host      string `json:"host"`
	Container string `json:"container"`
	Protocol  string `json:"protocol"`
}

type Profile

type Profile struct {
	Registry    string `json:"registry"`
	PAT         string `json:"pat"`
	Description string `json:"description"`
}

type RuntimeInfo

type RuntimeInfo struct {
	Type      string `json:"type"`
	BaseImage string `json:"base_image"`
	WorkDir   string `json:"work_dir"`
}

Jump to

Keyboard shortcuts

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