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.
Click to show internal directories.
Click to hide internal directories.