Documentation ¶
Index ¶
- type APIResult
- type Challenge
- type Client
- func (client *Client) CreateChallenge(chal Challenge) (result Challenge, err error)
- func (client *Client) CreateFile(file FileSpec) (result []File, err error)
- func (client *Client) CreateFlag(flag Flag) (result Flag, err error)
- func (client *Client) DeleteChallenge(chal uint) (err error)
- func (client *Client) DeleteFile(file uint) (err error)
- func (client *Client) DeleteFlag(flag uint) (err error)
- func (client *Client) GetChallenge(chal uint) (result Challenge, err error)
- func (client *Client) GetFile(file uint) (result File, err error)
- func (client *Client) GetFlag(flag uint) (result Flag, err error)
- func (client *Client) Init() (err error)
- func (client *Client) ListChallengeFiles(chal uint) (result []File, err error)
- func (client *Client) ListChallengeFlags(chal uint) (result []Flag, err error)
- func (client *Client) ListChallenges() (result []Challenge, err error)
- func (client *Client) ListFiles() (result []File, err error)
- func (client *Client) ListFlags() (result []Flag, err error)
- func (client *Client) ModifyChallenge(chal Challenge) (result Challenge, err error)
- func (client *Client) ModifyFlag(flag Flag) (result Flag, err error)
- type Config
- type File
- type FileSpec
- type Flag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResult ¶
type APIResult struct { Success bool `json:"success"` Message string `json:"message"` Data *json.RawMessage `json:"data"` }
type Client ¶
type Client struct { Config Config // contains filtered or unexported fields }
func (*Client) CreateChallenge ¶
func (*Client) CreateFile ¶
func (*Client) DeleteChallenge ¶
func (*Client) DeleteFile ¶
func (*Client) DeleteFlag ¶
func (*Client) GetChallenge ¶
func (*Client) ListChallengeFiles ¶
func (*Client) ListChallengeFlags ¶
func (*Client) ListChallenges ¶
func (*Client) ModifyChallenge ¶
Click to show internal directories.
Click to hide internal directories.