command

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 1 Imported by: ? modules, 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

Overview

Package command provides the command api model for opampcommander.

Index

Constants

View Source
const (
	// CommandKind is the kind of the command.
	CommandKind = "CommandAudit"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Audit added in v0.1.1

type Audit struct {
	Kind              string         `json:"kind"`
	ID                string         `json:"id"`
	TargetInstanceUID string         `json:"targetInstanceUid"`
	Data              map[string]any `json:"data"`

} // @name CommandAudit

Audit is a common struct that represents a command to be sent to an agent.

type ListResponse added in v0.1.9

type ListResponse = v1.ListResponse[Audit]

ListResponse is a struct that represents the response for listing commands.

func NewListResponse added in v0.1.9

func NewListResponse(commands []Audit, metadata v1.ListMeta) *ListResponse

NewListResponse creates a new ListResponse with the given commands and metadata.

Jump to

Keyboard shortcuts

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