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) CmdAddExercise() *cobra.Command
- func (c *Client) CmdAddNotification() *cobra.Command
- func (c *Client) CmdDeleteTeam() *cobra.Command
- func (c *Client) CmdDestroyUser() *cobra.Command
- func (c *Client) CmdEvent() *cobra.Command
- func (c *Client) CmdEventCreate() *cobra.Command
- func (c *Client) CmdEventList() *cobra.Command
- func (c *Client) CmdEventLoadTest() *cobra.Command
- func (c *Client) CmdEventResume() *cobra.Command
- func (c *Client) CmdEventStop() *cobra.Command
- func (c *Client) CmdEventSuspend() *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) CmdListUsers() *cobra.Command
- func (c *Client) CmdLoginUser() *cobra.Command
- func (c *Client) CmdSignupUser() *cobra.Command
- func (c *Client) CmdSolveChallenge() *cobra.Command
- func (c *Client) CmdTeam() *cobra.Command
- func (c *Client) CmdTeamFlags() *cobra.Command
- func (c *Client) CmdTeamInfo() *cobra.Command
- func (c *Client) CmdTeamResume() *cobra.Command
- func (c *Client) CmdTeamSuspend() *cobra.Command
- func (c *Client) CmdUpdatePasswd() *cobra.Command
- func (c *Client) CmdUpdateTeamPassword() *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") LocalCertificates = map[string]string{ "CERT": "https://gist.githubusercontent.com/mrturkmen06/c53edc50ca777bcece6fca8c21d62ce1/raw/f13ca172eb70c84e0abdfc957cdb563a9a072dcc/localhost.crt", "CERT_KEY": "https://gist.githubusercontent.com/mrturkmen06/2b11591ddda806ce8fa2036693ee347b/raw/2b17c484b520380935102c5268de9911ef2a16eb/localhost.key", "CERT_CA_FILE": "https://gist.githubusercontent.com/mrturkmen06/5de6d51cd398be1c3d7df691fc0e4c71/raw/fb557eba6e55ab753b7ac73f32c5e02e820ed802/haaukins-store.com.crt", } )
View Source
var ( UnableCreateUListErr = errors.New("Failed to create users list") PasswordsNoMatchErr = errors.New("Passwords do not match, so cancelling signup :-(") )
View Source
var (
UnableCreateEListErr = errors.New("Failed to create event list")
)
View Source
var Version string
Functions ¶
func PrintError ¶
func PrintError(err error)
func PrintWarning ¶
func PrintWarning(s string)
func ReadSecret ¶
func TranslateRPCErr ¶
Types ¶
type Client ¶
func (*Client) CmdAddExercise ¶
func (*Client) CmdAddNotification ¶
func (*Client) CmdDeleteTeam ¶
func (*Client) CmdDestroyUser ¶
func (*Client) CmdEventCreate ¶
func (*Client) CmdEventList ¶
func (*Client) CmdEventLoadTest ¶
func (*Client) CmdEventResume ¶
func (*Client) CmdEventStop ¶
func (*Client) CmdEventSuspend ¶
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) CmdListUsers ¶
func (*Client) CmdLoginUser ¶
func (*Client) CmdSignupUser ¶
func (*Client) CmdSolveChallenge ¶
func (*Client) CmdTeamFlags ¶
func (*Client) CmdTeamInfo ¶
func (*Client) CmdTeamResume ¶
func (*Client) CmdTeamSuspend ¶
func (*Client) CmdUpdatePasswd ¶
func (*Client) CmdUpdateTeamPassword ¶
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.