mustload

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Overview

Package mustload loads minikube clusters, exiting with user-friendly messages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExampleCmd

func ExampleCmd(cname string, action string) string

ExampleCmd Return a minikube command containing the current profile name

func Partial

func Partial(name string, miniHome ...string) (libmachine.API, *config.ClusterConfig)

Partial is a cmd-friendly way to load a cluster which may or may not be running

Types

type ClusterController

type ClusterController struct {
	Config *config.ClusterConfig
	API    libmachine.API
	CP     ControlPlane
}

ClusterController holds all the needed information for a minikube cluster

func Healthy

func Healthy(name string) ClusterController

Healthy is a cmd-friendly way to load a healthy cluster.

func Running

func Running(name string) ClusterController

Running is a cmd-friendly way to load a running cluster.

type ControlPlane added in v1.9.1

type ControlPlane struct {
	// Host is the libmachine host object
	Host *host.Host
	// Node is our internal control object
	Node *config.Node
	// Runner provides command execution
	Runner command.Runner
	// Hostname is the host-accesible target for the apiserver
	Hostname string
	// Port is the host-accessible port for the apiserver
	Port int
	// IP is the host-accessible IP for the control plane
	IP net.IP
}

ControlPlane holds all the needed information for the k8s control plane

Jump to

Keyboard shortcuts

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