control

package
v0.0.0-...-65d9a5b Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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