control

package
v0.0.0-...-3e21e58 Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchHTTPContent

func FetchHTTPContent(target string) ([]byte, error)

FetchHTTPContent dials https for remote content

func PrintUsage

func PrintUsage()

func RegisterCommand

func RegisterCommand(cmd Command) error

Types

type ApiCommand

type ApiCommand struct{}

func (*ApiCommand) Description

func (c *ApiCommand) Description() Description

func (*ApiCommand) Execute

func (c *ApiCommand) Execute(args []string) error

func (*ApiCommand) Name

func (c *ApiCommand) Name() string

type CertificateCommand

type CertificateCommand struct {
}

func (*CertificateCommand) Description

func (c *CertificateCommand) Description() Description

func (*CertificateCommand) Execute

func (c *CertificateCommand) Execute(args []string) error

func (*CertificateCommand) Name

func (c *CertificateCommand) Name() string

type Command

type Command interface {
	Name() string
	Description() Description
	Execute(args []string) error
}

func GetCommand

func GetCommand(name string) Command

type ConfigCommand

type ConfigCommand struct{}

ConfigCommand is the json to pb convert struct

func (*ConfigCommand) Description

func (c *ConfigCommand) Description() Description

Description for help usage

func (*ConfigCommand) Execute

func (c *ConfigCommand) Execute(args []string) error

Execute real work here.

func (*ConfigCommand) LoadArg

func (c *ConfigCommand) LoadArg(arg string) (out io.Reader, err error)

LoadArg loads one arg, maybe an remote url, or local file path

func (*ConfigCommand) Name

func (c *ConfigCommand) Name() string

Name for cmd usage

type Description

type Description struct {
	Short string
	Usage []string
}

type FetchCommand

type FetchCommand struct{}

func (*FetchCommand) Description

func (c *FetchCommand) Description() Description

func (*FetchCommand) Execute

func (c *FetchCommand) Execute(args []string) error

func (*FetchCommand) Name

func (c *FetchCommand) Name() string

type LoveCommand

type LoveCommand struct{}

func (*LoveCommand) Description

func (c *LoveCommand) Description() Description

func (*LoveCommand) Execute

func (*LoveCommand) Execute([]string) error

func (*LoveCommand) Hidden

func (*LoveCommand) Hidden() bool

func (*LoveCommand) Name

func (*LoveCommand) Name() string

type TlsPingCommand

type TlsPingCommand struct{}

func (*TlsPingCommand) Description

func (c *TlsPingCommand) Description() Description

func (*TlsPingCommand) Execute

func (c *TlsPingCommand) Execute(args []string) error

func (*TlsPingCommand) Name

func (c *TlsPingCommand) Name() string

type UUIDCommand

type UUIDCommand struct{}

func (*UUIDCommand) Description

func (c *UUIDCommand) Description() Description

func (*UUIDCommand) Execute

func (c *UUIDCommand) Execute([]string) error

func (*UUIDCommand) Name

func (c *UUIDCommand) Name() string

type VerifyCommand

type VerifyCommand struct{}

func (*VerifyCommand) Description

func (c *VerifyCommand) Description() Description

func (*VerifyCommand) Execute

func (c *VerifyCommand) Execute(args []string) error

func (*VerifyCommand) Name

func (c *VerifyCommand) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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