agent

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Id           string      `json:"id,omitempty"`
	Name         base.Name   `json:"name,omitempty"`
	Kind         base.Kind   `json:"kind,omitempty"`
	Version      *float32    `json:"version,omitempty"`
	Description  string      `json:"description,omitempty"`
	Tags         AgentTags   `json:"tags,omitempty"`
	Created      string      `json:"created,omitempty"`
	LastModified string      `json:"lastModified,omitempty"`
	Links        base.Links  `json:"links,omitempty"`
	Status       AgentStatus `json:"status,omitempty"`
}

type AgentInfo

type AgentInfo struct {
	ProtocolVersion AgentInfoProtocolVersion `json:"protocolVersion,omitempty"`
	InstanceId      string                   `json:"instanceId,omitempty"`
	LastActive      string                   `json:"lastActive,omitempty"`
	Env             AgentInfoEnv             `json:"env,omitempty"`
	PeerCount       *float32                 `json:"peerCount,omitempty"`
	ServiceCount    *float32                 `json:"serviceCount,omitempty"`
}

type AgentInfoEnv

type AgentInfoEnv map[string]any

type AgentInfoProtocolVersion

type AgentInfoProtocolVersion string
const (
	AgentInfoProtocolVersionV1 AgentInfoProtocolVersion = "v1"
	AgentInfoProtocolVersionV2 AgentInfoProtocolVersion = "v2"
)

type AgentStatus

type AgentStatus struct {
	BootstrapConfig *BootstrapConfig           `json:"bootstrapConfig,omitempty"`
	ProtocolVersion AgentStatusProtocolVersion `json:"protocolVersion,omitempty"`
}

type AgentStatusProtocolVersion

type AgentStatusProtocolVersion string
const (
	AgentStatusProtocolVersionV1 AgentStatusProtocolVersion = "v1"
	AgentStatusProtocolVersionV2 AgentStatusProtocolVersion = "v2"
)

type AgentTags

type AgentTags map[string]any

type BootstrapConfig

type BootstrapConfig struct {
	RegistrationToken string                         `json:"registrationToken"`
	AgentId           string                         `json:"agentId"`
	AgentLink         string                         `json:"agentLink"`
	HubEndpoint       string                         `json:"hubEndpoint"`
	ProtocolVersion   BootstrapConfigProtocolVersion `json:"protocolVersion,omitempty"`
}

type BootstrapConfigProtocolVersion

type BootstrapConfigProtocolVersion string
const (
	BootstrapConfigProtocolVersionV1 BootstrapConfigProtocolVersion = "v1"
	BootstrapConfigProtocolVersionV2 BootstrapConfigProtocolVersion = "v2"
)

Jump to

Keyboard shortcuts

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