ee

package
v0.0.0-...-973cc4c Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Test

func Test()

Types

type CheckPoint

type CheckPoint struct {
	CheckPoint *string `json:"checkpoint"`
}

CheckPoint struct

type Client

type Client struct {
	APIBase    string
	APIToken   string
	HTTPClient *http.Client
}

Client struct

func (Client) AssumeTeamRole

func (c Client) AssumeTeamRole(gameid, teamid string) (*credentials.Credentials, error)

func (Client) GetAllTeams

func (c Client) GetAllTeams(gameid string) (*Teams, error)

func (Client) GetConfig

func (c Client) GetConfig(gameid, teamid, moduleid, key string) error

func (Client) GetGame

func (c Client) GetGame(gameid string) (*Game, error)

GetGames func

func (Client) GetInput

func (c Client) GetInput(gameid, teamid, moduleid, key string) error

func (Client) GetTeam

func (c Client) GetTeam(gameid, teamid string) (*Team, error)

func (Client) MakeInput

func (c Client) MakeInput(gameid, teamid, moduleid, key, label string, description *string) error

func (Client) MakeOutput

func (c Client) MakeOutput(gameid, teamid, moduleid, key, label, value string, description *string) error

func (Client) Scores

func (c Client) Scores(gameid, teamid, scoretype, reason string, score float64) error

func (Client) SetCheckPoint

func (c Client) SetCheckPoint(gameid, teamid, moduleid, checkpoint string) error

func (Client) SetConfig

func (c Client) SetConfig(gameid, teamid, moduleid, key, value string) error

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 KeyConfig

type KeyConfig struct {
	Key   *string `json:"key"`
	Value *string `json:"value"`
}

KeyConfig 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

type Teams

type Teams struct {
	Teams []Team `json:"teams"`
}

Teams struct

Jump to

Keyboard shortcuts

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