cmd

package
v0.0.0-...-f1bde72 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ConfigPath     = "/cluster/terra.toml"
	DefaultRuntime = "io.containerd.runc.v2"
	Port           = 9000
)
View Source
const (
              __    _ __
  ____  _____/ /_  (_) /_
 / __ \/ ___/ __ \/ / __/
/ /_/ / /  / /_/ / / /_
\____/_/  /_.___/_/\__/`
)

Variables

View Source
var (
	ErrNoOS = errors.New("no os version specified")
	ErrNoID = errors.New("no id specified")
)

Functions

func CancelContext

func CancelContext() context.Context

func DumpNodeConfig

func DumpNodeConfig() error

func LoadNode

func LoadNode(path string) (*v1.Node, error)

func NewServer

func NewServer() *grpc.Server

Types

type Component

type Component struct {
	Image string   `toml:"image"`
	Init  []string `toml:"init"`
}

type Disk

type Disk struct {
	Device string `toml:"device"`
}

type GPU

type GPU struct {
	Model        string   `toml:"model"`
	Cores        uint32   `toml:"cores"`
	Memory       uint32   `toml:"memory"`
	Capabilities []string `toml:"capabilities"`
}

type Image

type Image struct {
	Name       string       `toml:"name"`
	Base       string       `toml:"base"`
	Init       string       `toml:"init"`
	Components []*Component `toml:"components"`
	Userland   string       `toml:"userland"`
	SSH        SSH          `toml:"ssh"`
	Packages   []string     `toml:"packages"`
	Services   []string     `toml:"services"`
}

type Network

type Network struct {
	Interfaces  string      `toml:"interfaces"`
	Nameservers []string    `toml:"nameservers"`
	Gateway     string      `toml:"gateway"`
	PXE         *PXENetwork `toml:"pxe"`
}

type Node

type Node struct {
	Hostname string   `toml:"hostname"`
	Labels   []string `toml:"labels"`
	Volumes  []Volume `toml:"volumes"`
	GPUs     []GPU    `toml:"gpus"`
	CPUs     float64  `toml:"cpus"`
	Memory   uint32   `toml:"memory"`
	Domain   string   `toml:"domain"`
	Image    Image    `toml:"image"`
	PXE      PXE      `toml:"pxe"`
	Network  Network  `toml:"network"`
}

func (*Node) ToProto

func (n *Node) ToProto() *v1.Node

type PXE

type PXE struct {
	Target string `toml:"target"`
}

type PXENetwork

type PXENetwork struct {
	Mac       string   `toml:"mac"`
	Address   string   `toml:"address"`
	Bond      []string `toml:"bond"`
	Interface string   `toml:"interface"`
}

type SSH

type SSH struct {
	Github string   `toml:"github"`
	Keys   []string `toml:"keys"`
}

type Volume

type Volume struct {
	Label     string `toml:"label"`
	Type      string `toml:"type"`
	Path      string `toml:"path"`
	Boot      bool   `toml:"boot"`
	TargetIQN string `toml:"target_iqn"`
}

Directories

Path Synopsis
stole from buildkit, tonis said it was ok
stole from buildkit, tonis said it was ok

Jump to

Keyboard shortcuts

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