cluster

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2016 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSSHShell added in v0.2.0

func CreateSSHShell(api libmachine.API, args []string) error

func DeleteHost

func DeleteHost(api libmachine.API) error

DeleteHost deletes the host VM.

func GenerateCerts

func GenerateCerts(pub, priv string, ip net.IP) error

func GetDashboardURL added in v0.3.0

func GetDashboardURL(api libmachine.API) (string, error)

func GetHostDockerEnv

func GetHostDockerEnv(api libmachine.API) (map[string]string, error)

GetHostDockerEnv gets the necessary docker env variables to allow the use of docker through minikube's vm

func GetHostLogs

func GetHostLogs(api libmachine.API) (string, error)

GetHostLogs gets the localkube logs of the host VM.

func GetHostStatus

func GetHostStatus(api libmachine.API) (string, error)

GetHostStatus gets the status of the host VM.

func GetStartCommand

func GetStartCommand() string

func SetupCerts

func SetupCerts(d drivers.Driver) error

SetupCerts gets the generated credentials required to talk to the APIServer.

func StartCluster

func StartCluster(h sshAble) error

StartCluster starts a k8s cluster on the specified Host.

func StartHost

func StartHost(api libmachine.API, config MachineConfig) (*host.Host, error)

StartHost starts a host VM.

func StopHost

func StopHost(api libmachine.API) error

StopHost stops the host VM.

func UpdateCluster

func UpdateCluster(d drivers.Driver) error

Types

type MachineConfig

type MachineConfig struct {
	MinikubeISO string
	Memory      int
	VMDriver    string
}

MachineConfig contains the parameters used to start a cluster.

Jump to

Keyboard shortcuts

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