commands

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package commands implements the CLI interface for the disruptor agent

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildGrpcCmd added in v0.2.0

func BuildGrpcCmd(env runtime.Environment, config *agent.Config) *cobra.Command

BuildGrpcCmd returns a cobra command with the specification of the grpc command

func BuildHTTPCmd

func BuildHTTPCmd(env runtime.Environment, config *agent.Config) *cobra.Command

BuildHTTPCmd returns a cobra command with the specification of the http command

Types

type RootCommand added in v0.3.3

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

RootCommand maintains the state for executing a command on the Agent

func NewRootCommand added in v0.3.3

func NewRootCommand(env runtime.Environment) *RootCommand

NewRootCommand builds the for the agent that parses the configuration arguments

func (*RootCommand) Execute added in v0.3.3

func (c *RootCommand) Execute(ctx context.Context) error

Execute executes the RootCommand

Jump to

Keyboard shortcuts

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