Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "envy", Short: "", Run: func(cmd *cobra.Command, args []string) { cmd.Usage() }, }
View Source
var Envy = new(EnvyRoot)
View Source
var EnvySocket = "/var/run/envy.sock"
Functions ¶
func CheckAdminCmd ¶
func CheckAdminCmd()
func CheckSystemCmd ¶
func CheckSystemCmd()
func ClientMode ¶
func ClientMode() bool
func SetupLogging ¶
func SetupLogging()
Types ¶
type ExecManager ¶
type ExecManager struct {
ScriptPath string
}
func (*ExecManager) NewEnrollment ¶
func (*ExecManager) NewStudent ¶
func (em *ExecManager) NewStudent(student *pkg.Student) error
type Server ¶
type Server struct { Router *mux.Router Students pkg.StudentStorage Courses pkg.CourseStorage ExecManager *ExecManager }
func NewServer ¶
func NewServer(students pkg.StudentStorage, courses pkg.CourseStorage) *Server
func (*Server) GetStudent ¶
func (s *Server) GetStudent(w http.ResponseWriter, req *http.Request)
func (*Server) ServeEnroll ¶
func (s *Server) ServeEnroll(w http.ResponseWriter, req *http.Request)
type Session ¶
func GetSession ¶
func NewSession ¶
func (*Session) DockerName ¶
func (*Session) SetEnviron ¶
type SignupResponse ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.