Help us shape the future of Go! Take the 2026 Go Developer Survey

minikube

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CommandName is the command to execute the minikube binary
	CommandName = "minikube"
	// Running is the active/running status of minikube cluster
	Running = "Running"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Minikube

type Minikube struct {
	// the command to execute for minikube cluster
	Command string

	// timeout duration for all minikube operations
	Timeout time.Duration

	// wait time for minikube operation. If the command does not return
	// we wait continously till timeout is reached
	WaitTime time.Duration
}

Minikube contains the objects to be used while interfacing with a minikube cluster

func NewMinikube

func NewMinikube() Minikube

NewMinikube returns a new minikube struct with the command to execute and the default wait-timeout

func (Minikube) IsUpAndRunning

func (minikube Minikube) IsUpAndRunning() bool

IsUpAndRunning checks if all components in the minikube cluster is in running state. If the api-server is Running we can proceed with further operations on minikube

func (Minikube) Status

func (minikube Minikube) Status() (map[string]string, error)

Status returns the status of the minikube cluster. The map contains status of each component. apiserver, kubelet etc.

func (Minikube) WaitForMinikubeToBeReady

func (minikube Minikube) WaitForMinikubeToBeReady() error

WaitForMinikubeToBeReady waits for a fixed time or till the kube-config file is available

Jump to

Keyboard shortcuts

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