cli

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLICommands

type CLICommands struct{}

func (*CLICommands) Services

func (cmd *CLICommands) Services() *ServiceCommand

type ICLICommands

type ICLICommands interface {
	Services() *ServiceCommand
}

func NewCLICommands

func NewCLICommands() ICLICommands

Accept and process CLI commands.

type ServiceCommand

type ServiceCommand struct{}

func (*ServiceCommand) Add

func (c *ServiceCommand) Add(conf utils.AppConf, update bool)

Add new service

func (*ServiceCommand) Get

func (c *ServiceCommand) Get(name string)

Retrieve details of a servive

func (*ServiceCommand) ListAll

func (c *ServiceCommand) ListAll()

List all services

func (*ServiceCommand) ListRunning

func (c *ServiceCommand) ListRunning()

List running services

func (*ServiceCommand) Start

func (c *ServiceCommand) Start(name string)

Start a stopped servive

func (*ServiceCommand) Stop

func (c *ServiceCommand) Stop(name string)

Stop a running servive

type ServiceProcess

type ServiceProcess struct {
	Pid           string
	Name          string
	Status        string
	Type          string
	Listeners     []interface{}
	RootDirectory string
	RemoteServer  string
	Tunnelled     bool
	CreatedAt     int64
}

Jump to

Keyboard shortcuts

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