handlers

package
v0.0.0-...-bc8455f Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCommand

func HandleCommand(config *Config, args *Args) (string, error)

Types

type Args

type Args struct {
	Command string
	Image   string
	Name    string
	GPU     int
}

type Config

type Config struct {
	URL   string `json:"url"`
	Token string `json:"token"`
}

func GetConfig

func GetConfig() *Config

type LoginRequest

type LoginRequest struct {
	Email       string `json:"email"`
	Password    string `json:"password"`
	CreateToken string `json:"token"`
}

type LoginResponse

type LoginResponse struct {
	Token string `json:"token"`
}

type PodStatus

type PodStatus struct {
	Name       string `json:"name"`
	Status     string `json:"status"`
	GPUs       string `json:"gpu"`
	SSHCommand string `json:"ssh_command"`
}

Jump to

Keyboard shortcuts

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