cluster

package
v0.0.0-...-7a2065e Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	// contains filtered or unexported fields
}

Cluster holds configuration info about the nested cluster.

func New

func New(numNodes int, externalProxy, image, masterConfigDir, networkName, nodeImageFile, version string, timeout time.Duration) (*Cluster, error)

New instantiates a new cluster.

Uses NewEnvClient() to create the docker client. Assumes kubecfg lives at admin.conf in masterConfigDir.

Returns an error if it cannot create the docker client.

func (*Cluster) Up

func (c *Cluster) Up(loadImage bool) error

Up synchronously starts a cluster, reporting progress.

Jump to

Keyboard shortcuts

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