cmd

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommands

func NewCommands(set *flag.FlagSet, op Operation) *subcommands.Commander

Types

type Operation

type Operation interface {
	StartBeaconServer(ctx context.Context) (string, <-chan struct{}, error)
	StopBeaconServer(ctx context.Context, addr string) error
	CleanupResources(ctx context.Context, label, value string) error
	ExecuteTest(ctx context.Context, goCmd string, args []string, environments []string) error
}

func NewOperation

func NewOperation() Operation

type StartCommand

type StartCommand struct {
	Operation Operation
	// contains filtered or unexported fields
}

func (*StartCommand) Execute

func (s *StartCommand) Execute(ctx context.Context, _ *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

func (*StartCommand) Name

func (s *StartCommand) Name() string

func (*StartCommand) SetFlags

func (s *StartCommand) SetFlags(f *flag.FlagSet)

func (*StartCommand) Synopsis

func (s *StartCommand) Synopsis() string

func (*StartCommand) Usage

func (s *StartCommand) Usage() string

type StopCommand

type StopCommand struct {
	Operation Operation
	// contains filtered or unexported fields
}

func (*StopCommand) Execute

func (s *StopCommand) Execute(ctx context.Context, _ *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

func (*StopCommand) Name

func (s *StopCommand) Name() string

func (*StopCommand) SetFlags

func (s *StopCommand) SetFlags(f *flag.FlagSet)

func (*StopCommand) Synopsis

func (s *StopCommand) Synopsis() string

func (*StopCommand) Usage

func (s *StopCommand) Usage() string

type TestCommand

type TestCommand struct {
	Operation Operation
	// contains filtered or unexported fields
}

func (*TestCommand) Execute

func (t *TestCommand) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

func (*TestCommand) Name

func (t *TestCommand) Name() string

func (*TestCommand) SetFlags

func (t *TestCommand) SetFlags(f *flag.FlagSet)

func (*TestCommand) Synopsis

func (t *TestCommand) Synopsis() string

func (*TestCommand) Usage

func (t *TestCommand) Usage() string

Jump to

Keyboard shortcuts

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