cluster2

package
v0.0.0-...-c283e9f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: BSD-3-Clause Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootConfig

type BootConfig struct {
	Size         int
	Backup       string
	ImagesPath   string
	ManifestPath string
	Logger       log15.Logger
	Client       controller.Client
	HostTimeout  *time.Duration
	Key          string
	Domain       string
	UseKVM       bool
}

type Cluster

type Cluster struct {
	App       *ct.App
	Release   *ct.Release
	HostImage *ct.Artifact
	Hosts     map[string]*Host
	Host      *Host
	IP        string
	Domain    string
	Key       string
	Pin       string
	// contains filtered or unexported fields
}

func Boot

func Boot(c *BootConfig) (*Cluster, error)

func (*Cluster) AddHosts

func (c *Cluster) AddHosts(count int) ([]*cluster.Host, error)

func (*Cluster) Destroy

func (c *Cluster) Destroy() error

type Host

type Host struct {
	*cluster.Host
	JobID string
	IP    string
}

Jump to

Keyboard shortcuts

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