server

package
v0.0.0-...-37f5ccb Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentPort = 31112
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	Steps []Step
	// contains filtered or unexported fields
}

func NewDestroy

func NewDestroy(o Options) (*Engine, error)

func NewJoin

func NewJoin(o Options) (*Engine, error)

func NewStart

func NewStart(o Options) (*Engine, error)

func NewStop

func NewStop(o Options) (*Engine, error)

func (*Engine) Run

func (e *Engine) Run() (*Result, error)

type Mirror

type Mirror struct {
	Name      string
	Endpoints []string
}

func (*Mirror) Configured

func (m *Mirror) Configured() bool

type Options

type Options struct {
	Verbose       bool
	OutputStream  io.Writer
	Runtime       Runtime
	Mirror        Mirror
	RetryInternal time.Duration
	ServerIP      string
	Domain        *string
	Version       string
	ForceGPU      bool
}

type Result

type Result struct {
	MDZURL string
}

type Runtime

type Runtime string
var (
	RuntimeK3s    Runtime = "k3s"
	RuntimeDocker Runtime = "docker"
)

type Step

type Step interface {
	Run() error
	Verify() error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳