Documentation
¶
Index ¶
- func CacheAndLoadImages(images []string) error
- func CacheBinariesForBootstrapper(version string, clusterBootstrapper string) error
- func CacheBinary(binary, version, osName, archName string) (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 KubernetesReleaseURL(binaryName, version, osName, archName string) string
- func KubernetesReleaseURLSHA1(binaryName, version, osName, archName string) string
- func List(miniHome ...string) (validMachines []*Machine, inValidMachines []*Machine, err error)
- func LoadImages(cc *config.MachineConfig, runner command.Runner, images []string, ...) error
- func NewAPIClient() (libmachine.API, error)
- func NewRPCClient(storePath, certsDir string) libmachine.API
- func StartDriver()
- type CertGenerator
- type ConnChecker
- type LocalClient
- type Machine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 CacheBinary ¶ added in v1.0.1
CacheBinary will cache a binary on the host
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 KubernetesReleaseURL ¶ added in v1.5.0
KubernetesReleaseURL gets the location of a kubernetes client
func KubernetesReleaseURLSHA1 ¶ added in v1.5.0
KubernetesReleaseURLSHA1 gets the location of a kubernetes client checksum
func List ¶ added in v1.6.0
List return all valid and invalid machines If a machine is valid or invalid is determined by the cluster.IsValid function
func LoadImages ¶ added in v0.22.0
func LoadImages(cc *config.MachineConfig, runner command.Runner, images []string, cacheDir string) error
LoadImages loads previously cached images into the container runtime
func NewAPIClient ¶ added in v0.17.0
func NewAPIClient() (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.
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