control

package
v4.38.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 35 Imported by: 3

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 CertificateChainHashCommand added in v4.38.0

type CertificateChainHashCommand struct {
}

func (CertificateChainHashCommand) Description added in v4.38.0

func (c CertificateChainHashCommand) Description() Description

func (CertificateChainHashCommand) Execute added in v4.38.0

func (c CertificateChainHashCommand) Execute(args []string) error

func (CertificateChainHashCommand) Name added in v4.38.0

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