agent

package
v1.1.53-test Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 1 Imported by: 1 module, 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

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