commandapi

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetCommands(agentID entity.ID) ([]Command, error)
	AckCommand(agentID entity.ID, cmdHash string) error
}

func NewClient

func NewClient(svcURL, licenseKey, userAgent string, httpClient backendhttp.Client) Client

type Command

type Command struct {
	ID       int                    `json:"id"`
	Hash     string                 `json:"hash"`
	Metadata map[string]interface{} `json:"metadata"`
	Name     string                 `json:"name"`
	Args     json.RawMessage        `json:"arguments"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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