Documentation ¶
Index ¶
- Constants
- func Command(w http.ResponseWriter, r *http.Request)
- func DiceDownload(w http.ResponseWriter, r *http.Request)
- func GetFileName(path string) string
- func ReadDownloadResult(w http.ResponseWriter, r *http.Request)
- func Terminal(w http.ResponseWriter, r *http.Request)
- type Action
- func (a Action) CleanCI() ([]string, error)
- func (a Action) CommandContext(ctx context.Context) (cmd *exec.Cmd, err error)
- func (a Action) Docker() ([]string, error)
- func (a Action) DockerLogs() ([]string, error)
- func (a Action) SSH() ([]string, error)
- func (a Action) TerminalContext(ctx context.Context) (cmd *exec.Cmd, err error)
- type ActionCleanCI
- type ActionDocker
- type ActionDockerLogs
- type ActionSSH
- type Download
- type DumpError
- type DumpResult
- type GetDumpRequest
- type GetDumpResponse
- type GetDumpStatusResponse
Constants ¶
View Source
const ( Error = '1' Ping = '2' Pong = '3' Input = '4' Output = '5' GetSize = '6' Size = '7' SetSize = '8' )
View Source
const BufferSize = 1024
Variables ¶
This section is empty.
Functions ¶
func DiceDownload ¶
func DiceDownload(w http.ResponseWriter, r *http.Request)
func GetFileName ¶
func ReadDownloadResult ¶
func ReadDownloadResult(w http.ResponseWriter, r *http.Request)
Types ¶
type Action ¶
type Action struct { Env []string `json:"env"` Name string `json:"name"` Args *json.RawMessage `json:"args"` }
func (Action) CommandContext ¶
func (Action) DockerLogs ¶
type ActionCleanCI ¶
type ActionCleanCI struct {
Days int `json:"days"`
}
type ActionDocker ¶
type ActionDockerLogs ¶
type DumpResult ¶
type GetDumpRequest ¶
type GetDumpResponse ¶
type GetDumpStatusResponse ¶
type GetDumpStatusResponse struct { Data *DumpResult `json:"data"` Error *DumpError `json:"error"` }
Click to show internal directories.
Click to hide internal directories.