model

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLabLabels added in v0.10.0

func NewLabLabels() commonModel.Labels

Types

type BoxTemplate added in v0.9.0

type BoxTemplate struct {
	Name string
	Env  []string
}

func (*BoxTemplate) Merge added in v0.9.0

func (t *BoxTemplate) Merge(original *boxModel.BoxV1) *boxModel.BoxV1

type CommonLabOptions added in v0.9.0

type CommonLabOptions struct {
	EventBus *event.EventBus
}

func NewCommonLabOpts added in v0.9.0

func NewCommonLabOpts() *CommonLabOptions

type CreateOptions added in v0.9.0

type CreateOptions struct {
	LabTemplate   *LabV1
	BoxTemplates  map[string]*boxModel.BoxV1
	DumpTemplates map[string]*DumpV1
	Parameters    commonModel.Parameters
	Labels        commonModel.Labels
}

type DumpV1 added in v0.9.0

type DumpV1 struct {
	Kind  string
	Name  string
	Tags  []string
	Group string
	Git   GitDump
}

type GitDump added in v0.9.0

type GitDump struct {
	Repository string
	Branch     string
}

type LabBox

type LabBox struct {
	Alias    string
	Template BoxTemplate
	Size     string
	Vpn      string
	Ports    []string // cloud only
	Dumps    []string // cloud only
}

func (*LabBox) Expand added in v0.9.0

func (box *LabBox) Expand(parameters commonModel.Parameters) (*LabBox, error)

TODO use reflection to expand all fields

type LabClientOptions added in v0.9.0

type LabClientOptions struct {
	Provider  LabProvider
	CloudOpts *commonModel.CloudOptions
}

type LabInfo added in v0.9.0

type LabInfo struct {
	Id      string
	Name    string
	Healthy bool // TODO
}

type LabProvider added in v0.9.0

type LabProvider string
const (
	Cloud LabProvider = "cloud"
)

func (LabProvider) String added in v0.9.0

func (p LabProvider) String() string

type LabV1

type LabV1 struct {
	Kind string
	Name string
	Tags []string
	Box  LabBox
}

func (*LabV1) Pretty added in v0.9.0

func (lab *LabV1) Pretty() string

Jump to

Keyboard shortcuts

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