engine

package
v0.0.0-...-8264222 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INSTALL_DIR_LINUX   = "/opt/cybermonkey-engine"
	INSTALL_DIR_WINDOWS = "C:\\Program Files\\CyberMonkey-Engine"
)

Variables

This section is empty.

Functions

func RunBackground

func RunBackground() error

func Start

func Start() error

Types

type Dependency

type Dependency interface {
	Install() error   // Install the dependency (this should be idempotent)
	Uninstall() error // Uninstall the dependency (this should be idempotent)
	Info() DependencyInfo
}

type DependencyInfo

type DependencyInfo struct {
	Name      string
	Version   string
	Installed bool
}

type Module

type Module struct {
	Path        string  `yaml:"-"`
	Name        string  `yaml:"name"`
	Description string  `yaml:"description"`
	Points      *int    `yaml:"points"`
	Break       *Script `yaml:"break"`
	Check       Script  `yaml:"check"`
}

type ScoreReport

type ScoreReport struct {
	Points       int      `json:"points"`
	PointsTotal  int      `json:"points_total"`
	Modules      []Module `json:"modules"`
	TotalModules int      `json:"total_modules"`
	MachineName  string   `json:"machine_name"`
}

type Script

type Script struct {
	Script string  `yaml:"script"`
	Type   *string `yaml:"type"`
}

func (*Script) UnmarshalYAML

func (s *Script) UnmarshalYAML(node *yaml.Node) error

Jump to

Keyboard shortcuts

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