Documentation
¶
Index ¶
- func AddHostAlias(c command.Runner, name string, ip net.IP) error
- func CacheAndLoadImages(images []string) error
- func CacheBinariesForBootstrapper(version string, clusterBootstrapper string) error
- func CacheImagesForBootstrapper(imageRepository string, version string, clusterBootstrapper string) error
- func CommandRunner(h *host.Host) (command.Runner, error)
- func CopyBinary(cr command.Runner, src string, dest string) error
- func CreateSSHShell(api libmachine.API, cc config.ClusterConfig, n config.Node, args []string, ...) error
- func DeleteHost(api libmachine.API, machineName string, deleteAbandoned ...bool) error
- func DiskUsed(cr command.Runner, dir string) (int, error)
- func IsRunning(api libmachine.API, name string) bool
- func LoadHost(api libmachine.API, machineName string) (*host.Host, error)
- func LoadImages(cc *config.ClusterConfig, runner command.Runner, images []string, ...) error
- func MaybeDisplayAdvice(err error, driver string)
- func NewAPIClient(miniHome ...string) (libmachine.API, error)
- func NewRPCClient(storePath, certsDir string) libmachine.API
- func StartDriver()
- func StartHost(api libmachine.API, cfg *config.ClusterConfig, n *config.Node) (*host.Host, bool, error)
- func Status(api libmachine.API, machineName string) (string, error)
- func StopHost(api libmachine.API, machineName string) error
- type CertGenerator
- type ConnChecker
- type HostInfo
- type LocalClient
- type Machine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHostAlias ¶ added in v1.10.0
AddHostAlias makes fine adjustments to pod resources that aren't possible via kubeadm config.
func CacheAndLoadImages ¶ added in v0.24.0
CacheAndLoadImages caches and loads images to all profiles
func CacheBinariesForBootstrapper ¶ added in v1.0.1
CacheBinariesForBootstrapper will cache binaries for a bootstrapper
func CacheImagesForBootstrapper ¶ added in v0.22.0
func CacheImagesForBootstrapper(imageRepository string, version string, clusterBootstrapper string) error
CacheImagesForBootstrapper will cache images for a bootstrapper
func CommandRunner ¶ added in v0.34.0
CommandRunner returns best available command runner for this host
func CopyBinary ¶ added in v1.0.1
CopyBinary copies a locally cached binary to the guest VM
func CreateSSHShell ¶ added in v1.7.3
func CreateSSHShell(api libmachine.API, cc config.ClusterConfig, n config.Node, args []string, native bool) error
CreateSSHShell creates a new SSH shell / client
func DeleteHost ¶ added in v1.7.3
func DeleteHost(api libmachine.API, machineName string, deleteAbandoned ...bool) error
DeleteHost deletes the host VM. deleteAbandoned will try to delete the machine even if there is no minikube config for it.
func DiskUsed ¶ added in v1.13.0
DiskUsed returns the capacity of dir in the VM/container as a percentage
func IsRunning ¶ added in v1.9.0
func IsRunning(api libmachine.API, name string) bool
IsRunning asserts that a libmachine host is in state "Running"
func LoadImages ¶ added in v0.22.0
func LoadImages(cc *config.ClusterConfig, runner command.Runner, images []string, cacheDir string) error
LoadImages loads previously cached images into the container runtime
func MaybeDisplayAdvice ¶ added in v1.12.0
MaybeDisplayAdvice will provide advice without exiting, so minikube has a chance to try the failover
func NewAPIClient ¶ added in v0.17.0
func NewAPIClient(miniHome ...string) (libmachine.API, error)
NewAPIClient gets a new client.
func NewRPCClient ¶ added in v0.20.0
func NewRPCClient(storePath, certsDir string) libmachine.API
NewRPCClient gets a new client.
func StartHost ¶ added in v1.7.3
func StartHost(api libmachine.API, cfg *config.ClusterConfig, n *config.Node) (*host.Host, bool, error)
StartHost starts a host VM.
Types ¶
type CertGenerator ¶ added in v0.15.0
type CertGenerator struct {
cert.X509CertGenerator
}
CertGenerator is used to override the default machine CertGenerator with a longer timeout.
func (*CertGenerator) ValidateCertificate ¶ added in v0.15.0
ValidateCertificate is a reimplementation of the default generator with a longer timeout.
type ConnChecker ¶ added in v0.16.0
type ConnChecker struct { }
ConnChecker can check the connection
type LocalClient ¶ added in v0.17.0
LocalClient is a non-RPC implementation of the libmachine API
func (*LocalClient) Close ¶ added in v0.17.0
func (api *LocalClient) Close() error
Close closes the client
func (*LocalClient) Create ¶ added in v0.17.0
func (api *LocalClient) Create(h *host.Host) error
Create creates the host
type Machine ¶ added in v1.6.0
Machine contains information about a machine
func LoadMachine ¶ added in v1.9.0
LoadMachine returns a Machine abstracting a libmachine.Host