Documentation ¶
Index ¶
- func AddHostAlias(c command.Runner, name string, ip net.IP) error
- func BuildImage(path string, file string, tag string, push bool, env []string, opt []string, ...) error
- func CacheAndLoadImages(images []string, profiles []*config.Profile, overwrite bool) error
- func CacheBinariesForBootstrapper(version string, excludeBinaries []string, binariesURL string) error
- func CacheImagesForBootstrapper(imageRepository, version 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 DiskAvailable(cr command.Runner, dir string) (int, error)
- func DiskUsed(cr command.Runner, dir string) (int, error)
- func DoLoadImages(images []string, profiles []*config.Profile, cacheDir string, overwrite bool) error
- func DoSaveImages(images []string, output string, profiles []*config.Profile, cacheDir string) error
- func GetHost(api libmachine.API, cc config.ClusterConfig, n config.Node) (*host.Host, error)
- func GetSSHHostAddrPort(api libmachine.API, cc config.ClusterConfig, n config.Node) (string, int, error)
- func IsRunning(api libmachine.API, name string) bool
- func ListImages(profile *config.Profile, format string) error
- func LoadCachedImages(cc *config.ClusterConfig, runner command.Runner, images []string, ...) error
- func LoadHost(api libmachine.API, machineName string) (*host.Host, error)
- func LoadLocalImages(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 PullImages(images []string, profile *config.Profile) error
- func PushImages(images []string, profile *config.Profile) error
- func RemoveImages(images []string, profile *config.Profile) error
- func RunSSHHostCommand(api libmachine.API, cc config.ClusterConfig, n config.Node, command string, ...) (string, error)
- func SaveAndCacheImages(images []string, profiles []*config.Profile) error
- func SaveCachedImages(cc *config.ClusterConfig, runner command.Runner, images []string, ...) error
- func SaveLocalImages(cc *config.ClusterConfig, runner command.Runner, images []string, ...) error
- 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
- func TagImage(profile *config.Profile, source string, target 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 BuildImage ¶ added in v1.20.0
func BuildImage(path string, file string, tag string, push bool, env []string, opt []string, profiles []*config.Profile, allNodes bool, nodeName string) error
BuildImage builds image to all profiles
func CacheAndLoadImages ¶ added in v0.24.0
CacheAndLoadImages caches and loads images to all profiles
func CacheBinariesForBootstrapper ¶ added in v1.0.1
func CacheBinariesForBootstrapper(version string, excludeBinaries []string, binariesURL string) error
CacheBinariesForBootstrapper will cache binaries for a bootstrapper
func CacheImagesForBootstrapper ¶ added in v0.22.0
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 DiskAvailable ¶ added in v1.26.0
DiskAvailable returns the available capacity of dir in the VM/container in GiB
func DiskUsed ¶ added in v1.13.0
DiskUsed returns the capacity of dir in the VM/container as a percentage
func DoLoadImages ¶ added in v1.19.0
func DoLoadImages(images []string, profiles []*config.Profile, cacheDir string, overwrite bool) error
DoLoadImages loads images to all profiles
func DoSaveImages ¶ added in v1.23.0
func DoSaveImages(images []string, output string, profiles []*config.Profile, cacheDir string) error
DoSaveImages saves images from all profiles
func GetHost ¶ added in v1.21.0
func GetHost(api libmachine.API, cc config.ClusterConfig, n config.Node) (*host.Host, error)
GetHost find node's host information by name in the given cluster.
func GetSSHHostAddrPort ¶ added in v1.16.0
func GetSSHHostAddrPort(api libmachine.API, cc config.ClusterConfig, n config.Node) (string, int, error)
GetSSHHostAddrPort returns the host address and port for ssh
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 ListImages ¶ added in v1.19.0
ListImages lists images on all nodes in profile
func LoadCachedImages ¶ added in v1.19.0
func LoadCachedImages(cc *config.ClusterConfig, runner command.Runner, images []string, cacheDir string, overwrite bool) error
LoadCachedImages loads previously cached images into the container runtime
func LoadLocalImages ¶ added in v1.19.0
LoadLocalImages loads 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 PullImages ¶ added in v1.20.0
PullImages pulls images to all nodes in profile
func PushImages ¶ added in v1.23.0
PushImages push images on all nodes in profile
func RemoveImages ¶ added in v1.19.0
RemoveImages removes images from all nodes in profile
func RunSSHHostCommand ¶ added in v1.16.0
func RunSSHHostCommand(api libmachine.API, cc config.ClusterConfig, n config.Node, command string, args []string) (string, error)
RunSSHHostCommand runs a command to the SSH host
func SaveAndCacheImages ¶ added in v1.23.0
SaveAndCacheImages saves images from all profiles into the cache
func SaveCachedImages ¶ added in v1.23.0
func SaveCachedImages(cc *config.ClusterConfig, runner command.Runner, images []string, cacheDir string) error
SaveCachedImages saves from the container runtime to the cache
func SaveLocalImages ¶ added in v1.23.0
func SaveLocalImages(cc *config.ClusterConfig, runner command.Runner, images []string, output string) error
SaveLocalImages saves images from the container runtime
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.
func Status ¶ added in v1.9.0
func Status(api libmachine.API, machineName string) (string, error)
Status returns the status of a libmachine host
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 HostInfo ¶ added in v1.12.2
HostInfo holds information on the user's machine
func LocalHostInfo ¶ added in v1.17.0
LocalHostInfo returns system information such as memory,CPU, DiskSize
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