clirequest

package
v0.0.0-...-7cac148 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(argv ...string) *exec.Cmd

Cmd returns a exec.Cmd that reruns the current CLI

Types

type LicenseUsageNode

type LicenseUsageNode struct {
	ID          string                   `json:"id"`
	LastSeen    string                   `json:"last_seen"`
	CheckinType string                   `json:"checkin_type"`
	Metadata    LicenseUsageNodeMetadata `json:"metadata"`
}

type LicenseUsageNodeMetadata

type LicenseUsageNodeMetadata struct {
	Name         string `json:"name"`
	Organization string `json:"organization"`
}

type LicenseUsageResp

type LicenseUsageResp struct {
	Command   string             `json:"command"`
	Status    string             `json:"status"`
	ErrorCode int                `json:"error_code"`
	Result    LicenseUsageResult `json:"result"`
}

func LicenseUsage

func LicenseUsage() (*LicenseUsageResp, error)

LicenseUsage runs the 'license usage' command

type LicenseUsageResult

type LicenseUsageResult struct {
	ScannedNodeCount int                    `json:"scanned_node_count"`
	ManagedNodeCount int                    `json:"managed_node_count"`
	ManagedNodes     []LicenseUsageNode     `json:"managed_nodes"`
	ScannedNodes     []LicenseUsageScanNode `json:"scanned_nodes"`
}

type LicenseUsageScanNode

type LicenseUsageScanNode struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	ScanJobID string `json:"scan_job_id"`
}

type NodeInventoryNode

type NodeInventoryNode struct {
	Name         string `json:"name"`
	Organization string `json:"organization"`
	Status       string `json:"status"`
	Checkin      string `json:"checkin"`
}

type NodeInventoryResp

type NodeInventoryResp struct {
	Command          string              `json:"command"`
	Status           string              `json:"status"`
	ErrorDescription string              `json:"error_description"`
	Nodes            []NodeInventoryNode `json:"nodes"`
	NodeCount        int                 `json:"node_count"`
}

func NodeInventory

func NodeInventory() (*NodeInventoryResp, error)

NodeInventory runs the 'chef-automate node-inventory' command

Jump to

Keyboard shortcuts

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