cli

package
v0.0.0-...-caea6a0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoTokenErrMsg     = "token contains an invalid number of segments"
	UnauthorizeErrMsg = "unauthorized"
)

Variables

View Source
var (
	UnreachableDaemonErr = errors.New("Daemon seems to be unreachable")
	UnauthorizedErr      = errors.New("You seem to not be logged in")
)
View Source
var (
	PasswordsNoMatchErr = errors.New("Passwords do not match, so cancelling signup :-(")
)
View Source
var (
	UnableCreateEListErr = errors.New("Failed to create event list")
)

Functions

func Execute

func Execute()

func PrintError

func PrintError(err error)

func PrintWarning

func PrintWarning(s string)

func ReadSecret

func ReadSecret(inputHint string) (string, error)

func TranslateRPCErr

func TranslateRPCErr(err error) error

Types

type Client

type Client struct {
	TokenFile string
	Token     string
	// contains filtered or unexported fields
}

func NewClient

func NewClient() (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) CmdEvent

func (c *Client) CmdEvent() *cobra.Command

func (*Client) CmdEventCreate

func (c *Client) CmdEventCreate() *cobra.Command

func (*Client) CmdEventList

func (c *Client) CmdEventList() *cobra.Command

func (*Client) CmdEventStop

func (c *Client) CmdEventStop() *cobra.Command

func (*Client) CmdEventTeamRestart

func (c *Client) CmdEventTeamRestart() *cobra.Command

func (*Client) CmdEventTeams

func (c *Client) CmdEventTeams() *cobra.Command

func (*Client) CmdEvents

func (c *Client) CmdEvents() *cobra.Command

func (*Client) CmdExercise

func (c *Client) CmdExercise() *cobra.Command

func (*Client) CmdExerciseList

func (c *Client) CmdExerciseList() *cobra.Command

func (*Client) CmdExerciseReset

func (c *Client) CmdExerciseReset() *cobra.Command

func (*Client) CmdExercises

func (c *Client) CmdExercises() *cobra.Command

func (*Client) CmdFrontend

func (c *Client) CmdFrontend() *cobra.Command

func (*Client) CmdFrontendList

func (c *Client) CmdFrontendList() *cobra.Command

func (*Client) CmdFrontendReset

func (c *Client) CmdFrontendReset() *cobra.Command

func (*Client) CmdFrontendSet

func (c *Client) CmdFrontendSet() *cobra.Command

func (*Client) CmdFrontendSetCpu

func (c *Client) CmdFrontendSetCpu() *cobra.Command

func (*Client) CmdFrontendSetMemory

func (c *Client) CmdFrontendSetMemory() *cobra.Command

func (*Client) CmdFrontends

func (c *Client) CmdFrontends() *cobra.Command

func (*Client) CmdHost

func (c *Client) CmdHost() *cobra.Command

func (*Client) CmdHostMonitor

func (c *Client) CmdHostMonitor() *cobra.Command

func (*Client) CmdInviteUser

func (c *Client) CmdInviteUser() *cobra.Command

func (*Client) CmdLoginUser

func (c *Client) CmdLoginUser() *cobra.Command

func (*Client) CmdSignupUser

func (c *Client) CmdSignupUser() *cobra.Command

func (*Client) CmdTeam

func (c *Client) CmdTeam() *cobra.Command

func (*Client) CmdTeamInfo

func (c *Client) CmdTeamInfo() *cobra.Command

func (*Client) CmdUser

func (c *Client) CmdUser() *cobra.Command

func (*Client) CmdVersion

func (c *Client) CmdVersion() *cobra.Command

func (*Client) CmdVersionClient

func (c *Client) CmdVersionClient() *cobra.Command

func (*Client) CmdVersionDaemon

func (c *Client) CmdVersionDaemon() *cobra.Command

func (*Client) LoadToken

func (c *Client) LoadToken() error

func (*Client) SaveToken

func (c *Client) SaveToken() error

type Creds

type Creds struct {
	Token    string
	Insecure bool
}

func (Creds) GetRequestMetadata

func (c Creds) GetRequestMetadata(context.Context, ...string) (map[string]string, error)

func (Creds) RequireTransportSecurity

func (c Creds) RequireTransportSecurity() bool

type Formatter

type Formatter interface {
	Write(data []formatElement) (string, error)
}

type IncorrectVersonFmt

type IncorrectVersonFmt struct {
	// contains filtered or unexported fields
}

func (*IncorrectVersonFmt) Error

func (ivf *IncorrectVersonFmt) Error() string

Jump to

Keyboard shortcuts

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