Documentation ¶
Index ¶
- Constants
- Variables
- func Execute()
- func PrintError(err error)
- func PrintWarning(s string)
- func ReadSecret(inputHint string) (string, error)
- func TranslateRPCErr(err error) error
- type Client
- func (c *Client) Close()
- func (c *Client) CmdEvent() *cobra.Command
- func (c *Client) CmdEventCreate() *cobra.Command
- func (c *Client) CmdEventList() *cobra.Command
- func (c *Client) CmdEventStop() *cobra.Command
- func (c *Client) CmdEventTeamRestart() *cobra.Command
- func (c *Client) CmdEventTeams() *cobra.Command
- func (c *Client) CmdEvents() *cobra.Command
- func (c *Client) CmdExercise() *cobra.Command
- func (c *Client) CmdExerciseList() *cobra.Command
- func (c *Client) CmdExerciseReset() *cobra.Command
- func (c *Client) CmdExercises() *cobra.Command
- func (c *Client) CmdFrontend() *cobra.Command
- func (c *Client) CmdFrontendList() *cobra.Command
- func (c *Client) CmdFrontendReset() *cobra.Command
- func (c *Client) CmdFrontendSet() *cobra.Command
- func (c *Client) CmdFrontendSetCpu() *cobra.Command
- func (c *Client) CmdFrontendSetMemory() *cobra.Command
- func (c *Client) CmdFrontends() *cobra.Command
- func (c *Client) CmdHost() *cobra.Command
- func (c *Client) CmdHostMonitor() *cobra.Command
- func (c *Client) CmdInviteUser() *cobra.Command
- func (c *Client) CmdLoginUser() *cobra.Command
- func (c *Client) CmdSignupUser() *cobra.Command
- func (c *Client) CmdTeam() *cobra.Command
- func (c *Client) CmdTeamInfo() *cobra.Command
- func (c *Client) CmdUser() *cobra.Command
- func (c *Client) CmdVersion() *cobra.Command
- func (c *Client) CmdVersionClient() *cobra.Command
- func (c *Client) CmdVersionDaemon() *cobra.Command
- func (c *Client) LoadToken() error
- func (c *Client) SaveToken() error
- type Creds
- type Formatter
- type IncorrectVersonFmt
Constants ¶
View Source
const ( NoTokenErrMsg = "token contains an invalid number of segments" )
Variables ¶
View Source
var ( UnreachableDaemonErr = errors.New("Daemon seems to be unreachable") )
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 PrintError ¶
func PrintError(err error)
func PrintWarning ¶
func PrintWarning(s string)
func ReadSecret ¶
func TranslateRPCErr ¶
Types ¶
type Client ¶
func (*Client) CmdEventCreate ¶
func (*Client) CmdEventList ¶
func (*Client) CmdEventStop ¶
func (*Client) CmdEventTeamRestart ¶
func (*Client) CmdEventTeams ¶
func (*Client) CmdExercise ¶
func (*Client) CmdExerciseList ¶
func (*Client) CmdExerciseReset ¶
func (*Client) CmdExercises ¶
func (*Client) CmdFrontend ¶
func (*Client) CmdFrontendList ¶
func (*Client) CmdFrontendReset ¶
func (*Client) CmdFrontendSet ¶
func (*Client) CmdFrontendSetCpu ¶
func (*Client) CmdFrontendSetMemory ¶
func (*Client) CmdFrontends ¶
func (*Client) CmdHostMonitor ¶
func (*Client) CmdInviteUser ¶
func (*Client) CmdLoginUser ¶
func (*Client) CmdSignupUser ¶
func (*Client) CmdTeamInfo ¶
func (*Client) CmdVersion ¶
func (*Client) CmdVersionClient ¶
func (*Client) CmdVersionDaemon ¶
type IncorrectVersonFmt ¶
type IncorrectVersonFmt struct {
// contains filtered or unexported fields
}
func (*IncorrectVersonFmt) Error ¶
func (ivf *IncorrectVersonFmt) Error() string
Click to show internal directories.
Click to hide internal directories.