courseserver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CourseServer

type CourseServer struct {
	// contains filtered or unexported fields
}

func NewCourseServer

func NewCourseServer(authClient *authclient.AuthClient, acClient *accesscode.AccessCodeClient, hfClientset hfClientset.Interface, hfInformerFactory hfInformers.SharedInformerFactory, ctx context.Context) (*CourseServer, error)

func (CourseServer) AppendDynamicScenariosByCategories added in v1.0.0

func (c CourseServer) AppendDynamicScenariosByCategories(scenariosList []string, categories []string) []string

func (CourseServer) CreateFunc added in v0.1.9

func (c CourseServer) CreateFunc(w http.ResponseWriter, r *http.Request)

func (CourseServer) DeleteFunc added in v0.1.9

func (c CourseServer) DeleteFunc(w http.ResponseWriter, r *http.Request)

func (CourseServer) GetCourse

func (c CourseServer) GetCourse(w http.ResponseWriter, r *http.Request)

func (CourseServer) GetCourseById

func (c CourseServer) GetCourseById(id string) (hfv1.Course, error)

func (CourseServer) ListCoursesForAccesscode added in v0.1.9

func (c CourseServer) ListCoursesForAccesscode(w http.ResponseWriter, r *http.Request)

func (CourseServer) ListFunc added in v0.1.9

func (c CourseServer) ListFunc(w http.ResponseWriter, r *http.Request)

func (CourseServer) SetupRoutes

func (c CourseServer) SetupRoutes(r *mux.Router)

func (CourseServer) UpdateFunc added in v0.1.9

func (c CourseServer) UpdateFunc(w http.ResponseWriter, r *http.Request)

type PreparedCourse

type PreparedCourse struct {
	Id string `json:"id"`
	hfv1.CourseSpec
}

Jump to

Keyboard shortcuts

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