commands

package
v0.0.0-...-fa91818 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVersionCommand

func NewVersionCommand(isJSON bool)

NewVersionCommand prints agent version

Types

type RunCommand

type RunCommand struct {
	// contains filtered or unexported fields
}

RunCommand defines the agent's run command

func NewRunCommand

func NewRunCommand(cfg *config.Config, apiClient api.Api, socketServer *socketserver.Server) *RunCommand

NewRunCommand creates an instance of `RunCommand`

func (*RunCommand) Run

func (d *RunCommand) Run() error

Run starts the agent

func (*RunCommand) Shutdown

func (d *RunCommand) Shutdown()

Shutdown stops the agent

Jump to

Keyboard shortcuts

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