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 ¶
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 ¶
Status returns the status of the minikube cluster. The map contains status of each component. apiserver, kubelet etc.
func (Minikube) WaitForMinikubeToBeReady ¶
WaitForMinikubeToBeReady waits for a fixed time or till the kube-config file is available
Click to show internal directories.
Click to hide internal directories.