handlers

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap added in v0.0.2

func Bootstrap(c pwd.PWDApi, ev event.EventApi)

func CloseSession added in v0.0.2

func CloseSession(rw http.ResponseWriter, req *http.Request)

func DeleteInstance

func DeleteInstance(rw http.ResponseWriter, req *http.Request)

func Exec added in v0.0.2

func Exec(rw http.ResponseWriter, req *http.Request)

func FileUpload added in v0.0.2

func FileUpload(rw http.ResponseWriter, req *http.Request)

func GetCurrentPlayground added in v0.0.2

func GetCurrentPlayground(rw http.ResponseWriter, req *http.Request)

func GetInstanceImages added in v0.0.2

func GetInstanceImages(rw http.ResponseWriter, req *http.Request)

func GetSession

func GetSession(rw http.ResponseWriter, req *http.Request)

func GetUser added in v0.0.2

func GetUser(rw http.ResponseWriter, req *http.Request)

func Home added in v0.0.2

func Home(w http.ResponseWriter, r *http.Request)

func Landing added in v0.0.2

func Landing(rw http.ResponseWriter, req *http.Request)

func ListPlaygrounds added in v0.0.2

func ListPlaygrounds(rw http.ResponseWriter, req *http.Request)

func ListProviders added in v0.0.2

func ListProviders(rw http.ResponseWriter, req *http.Request)

func LoggedInUser added in v0.0.2

func LoggedInUser(rw http.ResponseWriter, req *http.Request)

func Login added in v0.0.2

func Login(rw http.ResponseWriter, req *http.Request)

func LoginCallback added in v0.0.2

func LoginCallback(rw http.ResponseWriter, req *http.Request)

func NewInstance

func NewInstance(rw http.ResponseWriter, req *http.Request)

func NewManager added in v0.0.2

func NewManager(s *types.Session) (*manager, error)

func NewPlayground added in v0.0.2

func NewPlayground(rw http.ResponseWriter, req *http.Request)

func NewSession

func NewSession(rw http.ResponseWriter, req *http.Request)

func Ping

func Ping(rw http.ResponseWriter, req *http.Request)

func Register added in v0.0.2

func Register(extend HandlerExtender)

func SessionSetup added in v0.0.2

func SessionSetup(rw http.ResponseWriter, req *http.Request)

func ValidateToken added in v0.0.2

func ValidateToken(req *http.Request) bool

func WSH added in v0.0.2

func WSH(w http.ResponseWriter, r *http.Request)

Types

type CookieID added in v0.0.2

type CookieID struct {
	Id         string `json:"id"`
	UserName   string `json:"user_name"`
	UserAvatar string `json:"user_avatar"`
	ProviderId string `json:"provider_id"`
}

func ReadCookie added in v0.0.2

func ReadCookie(r *http.Request) (*CookieID, error)

func (*CookieID) SetCookie added in v0.0.2

func (c *CookieID) SetCookie(rw http.ResponseWriter, host string) error

type HandlerExtender added in v0.0.2

type HandlerExtender func(h *mux.Router)

type NewSessionResponse added in v0.0.2

type NewSessionResponse struct {
	SessionId string `json:"session_id"`
	Hostname  string `json:"hostname"`
}

type PlaygroundConfigurationResponse added in v0.0.2

type PlaygroundConfigurationResponse struct {
	Id                          string        `json:"id"`
	Domain                      string        `json:"domain"`
	DefaultDinDInstanceImage    string        `json:"default_dind_instance_image"`
	AvailableDinDInstanceImages []string      `json:"available_dind_instance_images"`
	AllowWindowsInstances       bool          `json:"allow_windows_instances"`
	DefaultSessionDuration      time.Duration `json:"default_session_duration"`
	DindVolumeSize              string        `json:"dind_volume_size"`
}

type PublicUserInfo added in v0.0.2

type PublicUserInfo struct {
	Id     string `json:"id"`
	Avatar string `json:"avatar"`
	Name   string `json:"name"`
}

type SessionInfo added in v0.0.2

type SessionInfo struct {
	*types.Session
	Instances map[string]*types.Instance `json:"instances"`
}

Jump to

Keyboard shortcuts

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