Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImportLessonDefs ¶
func ImportLessonDefs(syringeConfig *config.SyringeConfig, fileList []string) (map[int32]*LessonDefinition, error)
Types ¶
type Connection ¶
type IframeDetails ¶
type LessonDefinition ¶
type LessonDefinition struct { LessonName string `json:"lessonName" yaml:"lessonName"` LessonID int32 `json:"lessonID" yaml:"lessonID"` Disabled bool `json:"disabled" yaml:"disabled"` Devices []*Endpoint `json:"devices" yaml:"devices"` Utilities []*Endpoint `json:"utilities" yaml:"utilities"` Blackboxes []*Endpoint `json:"blackboxes" yaml:"blackboxes"` Connections []*Connection `json:"connections" yaml:"connections"` TopologyType string `json:"topologyType" yaml:"topologyType"` Stages map[int32]*LessonStage `json:"stages" yaml:"stages"` Category string `json:"category" yaml:"category"` LessonDiagram string `json:"lessondiagram" yaml:"lessondiagram"` LessonVideo string `json:"lessonvideo" yaml:"lessonvideo"` }
func (*LessonDefinition) JSON ¶
func (ld *LessonDefinition) JSON() string
JSON exports the lesson definition as JSON
type LessonStage ¶
type LessonStage struct { LabGuide string `json:"labguide" yaml:"labguide"` Configs map[string]string `json:"configs" yaml:"configs"` IframeResource IframeDetails `json:"iframeresource" yaml:"iframeresource"` Description string `json:"description" yaml:"description"` }
Click to show internal directories.
Click to hide internal directories.