cmd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ActiveSnap

type ActiveSnap struct {
	ActiveSnapID     string `json:"activeSnapId"`
	SnapID           string `json:"snapID"`
	State            string `json:"state"`
	Provider         string `json:"provider"`
	Activated        int64  `json:"activated"`
	ExecutionCounter int    `json:"executionCounter"`
	ErrorCounter     int    `json:"errorCounter"`
}

ActiveSnap defines the fields to print for an activeSnap

type ActiveSnapActionsLog

type ActiveSnapActionsLog struct {
	Provider string                     `json:"provider"`
	State    string                     `json:"state"`
	Output   ActiveSnapActionsLogOutput `json:"output"`
}

ActiveSnapActionsLog defines the fields to print for action logs

type ActiveSnapActionsLogOutput

type ActiveSnapActionsLogOutput struct {
	Stdout string `json:"stdout"`
	Stderr string `json:"stderr"`
	Error  string `json:"error"`
}

ActiveSnapActionsLogOutput defines the fields to print for action logs

type ActiveSnapLog

type ActiveSnapLog struct {
	LogID        int64                  `json:"timestamp"`
	ActiveSnapID string                 `json:"activeSnapId"`
	SnapID       string                 `json:"snapID"`
	State        string                 `json:"state"`
	Trigger      string                 `json:"trigger"`
	Actions      []ActiveSnapActionsLog `json:"actions"`
}

ActiveSnapLog defines the fields to print for an activeSnap's logs

type ActiveSnapStatus

type ActiveSnapStatus struct {
	Message    string     `json:"message"`
	ActiveSnap ActiveSnap `json:"activeSnap"`
}

ActiveSnapStatus defines the fields to unmarshal from a pause/resume operation

type Snap

type Snap struct {
	SnapID      string `json:"snapId"`
	Description string `json:"description"`
	Provider    string `json:"provider"`
	Private     bool   `json:"private"`
}

Snap defines the fields to print for a snap

type SnapStatus

type SnapStatus struct {
	Message string `json:"message"`
	Snap    Snap   `json:"snap"`
}

SnapStatus defines the fields to unmarshal from a create/fork/publish/unpublish operation

Jump to

Keyboard shortcuts

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