Documentation ¶
Index ¶
- func Test()
- type CheckPoint
- type Client
- func (c Client) AssumeTeamRole(gameid, teamid string) (*credentials.Credentials, error)
- func (c Client) GetAllTeams(gameid string) (*Teams, error)
- func (c Client) GetConfig(gameid, teamid, moduleid, key string) error
- func (c Client) GetGame(gameid string) (*Game, error)
- func (c Client) GetInput(gameid, teamid, moduleid, key string) error
- func (c Client) GetTeam(gameid, teamid string) (*Team, error)
- func (c Client) MakeInput(gameid, teamid, moduleid, key, label string, description *string) error
- func (c Client) MakeOutput(gameid, teamid, moduleid, key, label, value string, description *string) error
- func (c Client) Scores(gameid, teamid, scoretype, reason string, score float64) error
- func (c Client) SetCheckPoint(gameid, teamid, moduleid, checkpoint string) error
- func (c Client) SetConfig(gameid, teamid, moduleid, key, value string) error
- type DashBoardInput
- type DashBoardOutput
- type Game
- type KeyConfig
- type SNSAttributes
- type SNSMessage
- type ScoreRequest
- type Team
- type Teams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckPoint ¶
type CheckPoint struct {
CheckPoint *string `json:"checkpoint"`
}
CheckPoint struct
type Client ¶
Client struct
func (Client) AssumeTeamRole ¶
func (c Client) AssumeTeamRole(gameid, teamid string) (*credentials.Credentials, error)
func (Client) MakeOutput ¶
func (Client) SetCheckPoint ¶
type DashBoardInput ¶
type DashBoardInput struct { Key *string `json:"key"` Label *string `json:"label"` Description *string `json:"description"` }
DashBoardInput struct
type DashBoardOutput ¶
type DashBoardOutput struct { Key *string `json:"key"` Label *string `json:"label"` Value *string `json:"value"` Description *string `json:"description"` }
DashBoardOutput struct
type Game ¶
type Game struct { GameID *string `json:"game-id"` Type *string `json:"type"` Name *string `json:"name"` Status *string `json:"status"` ChatEnabled bool `json:"chat-enabled"` Location *string `json:"location"` Description *string `json:"description"` CustomerName *string `json:"customer-name"` StartTime interface{} `json:"start-time"` TimeZone interface{} `json:"start-time-timezone"` Duration int `json:"duration"` MaxExtendDuration int `json:"extend-duration-max"` CurrentExtendDuration int `json:"extend-duration-current"` AvailableExtendDuration int `json:"extend-duration-available"` ExpireEnables bool `json:"expires-enabled"` ExpiresAT interface{} `json:"expires-at"` ExpiresBuffer interface{} `json:"expires-buffer-max"` CurrentExpireBuffer interface{} `json:"expires-buffer-current"` SurveyID *string `json:"survey-id"` SurveyEnabled bool `json:"survey-enabled"` Metadata interface{} `json:"metadata"` TemplateName *string `json:"template-name"` TemplateID *string `json:"template-id"` TemplateVersion interface{} `json:"template-version"` Pool map[string]interface{} `json:"pool"` Account map[string]interface{} `json:"account"` CheckIN map[string]interface{} `json:"check-in""` Region *string `json:"region"` ErrorMessage interface{} `json:"error-message"` TeamNumbers int `json:"total-teams"` Tenant *string `json:"tenant"` Creator *string `json:"created-by"` CreatedAT interface{} `json:"created-at"` InitializeAT interface{} `json:"initialized-at"` StarTimeFirst interface{} `json:"start-time-first"` StartTimeLast interface{} `json:"start-time-last"` Internal bool `json:"internal"` Production bool `json:"production"` ScoreBoard map[string]interface{} `json:"scoreboard"` Program interface{} `json:"program"` Modules interface{} `json:"modules"` Permissions interface{} `json:"permissions"` CanApprove bool `json:"can-approve"` CanAdmin bool `json:"can-admin"` }
Game struct
type SNSAttributes ¶
type SNSAttributes struct { Event struct { Type *string `json:"Type"` Value *string `json:"Value"` } `json:"event"` ModuleID struct { Type *string `json:"Type"` Value *string `json:"Value"` } `json:"module-id"` TeamID struct { Type *string `json:"Type"` Value *string `json:"Value"` } `json:"team-id"` }
func GetSNSAttributes ¶
func GetSNSAttributes(input string) (*SNSAttributes, error)
type SNSMessage ¶
type SNSMessage struct { EventID *string `json:"event-id"` TeamID *string `json:"team-id"` ModuleID *string `json:"module-id"` CFN interface{} `json:"cfn-outputs"` Key *string `json:"key"` PreviousValue *string `json:"previous-value"` NewValue *string `json:"new-value"` }
func GetSNSMessage ¶
func GetSNSMessage(input string) (*SNSMessage, error)
type ScoreRequest ¶
type ScoreRequest struct { Type *string `json:"type"` // "ppm" or "points" Value float64 `json:"value"` Reason string `json:"reason"` }
ScoreRequest struct
type Team ¶
type Team struct { GameID *string `json:"game-id"` TeamID *string `json:"team-id"` Hash *string `json:"team-hash"` Name struct { Value *string `json:"value"` Approved bool `json:"approved"` AutoApproved bool `json:"auto-approve"` Customization bool `json:"allow-customization"` } `json:"name"` Status *string `json:"status"` AutoInitialization bool `json:"auto-initialize"` Badges interface{} `json:"badges"` Score struct { Total int64 `json:"total"` Trend int64 `json:"trend"` } `json:"score"` Account struct { ID *string `json:"account-id"` OPSRole *string `json:"ops-role-arn"` PlayRole *string `json:"player-role-arn"` TeamRole *string `json:"team-role-arn"` SSHKeyPair map[string]string `json:"ssh-keypair"` } `json:"account"` CheckIN map[string]interface{} `json:"check-in"` CredentialExpires interface{} `json:"credentials-expiration"` Region *string `json:"region"` Metadata interface{} `json:"metadata"` CreatedBy *string `json:"created-by"` CreateAT interface{} `json:"created-at"` Error interface{} `json:"error"` Modules map[string]interface{} `json:"modules"` }
Team struct
Click to show internal directories.
Click to hide internal directories.