api

package
v0.1.3-0...-188399e Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TraceAgentIdAttr is tracing attribute that holds an agent id.
	TraceAgentIdAttr attribute.Key = "agent_id"
)

Variables

This section is empty.

Functions

func AgentToken2key

func AgentToken2key(token AgentToken) []byte

Types

type AgentInfo

type AgentInfo struct {
	// Id is the agent's id in the database.
	Id int64
	// ClusterId is the parent cluster's id
	ClusterId string
	// Name is the agent's name.
	// Can contain only /a-z\d-/
	Name string
}

AgentInfo contains information about an agentk.

type AgentToken

type AgentToken string

AgentToken is agentk's bearer access token.

Jump to

Keyboard shortcuts

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