command

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 1 Imported by: 0

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