machine

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheAndLoadImages added in v0.24.0

func CacheAndLoadImages(images []string) error

CacheAndLoadImages caches and loads images

func CacheBinariesForBootstrapper added in v1.0.1

func CacheBinariesForBootstrapper(version string, clusterBootstrapper string) error

CacheBinariesForBootstrapper will cache binaries for a bootstrapper

func CacheBinary added in v1.0.1

func CacheBinary(binary, version string) (string, error)

CacheBinary will cache a binary on the host

func CacheImage added in v0.22.0

func CacheImage(image, dst string) error

CacheImage caches an image

func CacheImages added in v0.22.0

func CacheImages(images []string, cacheDir string) error

CacheImages will cache images on the host

The cache directory currently caches images using the imagename_tag For example, k8s.gcr.io/kube-addon-manager:v6.5 would be stored at $CACHE_DIR/k8s.gcr.io/kube-addon-manager_v6.5

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

func CommandRunner(h *host.Host) (bootstrapper.CommandRunner, error)

CommandRunner returns best available command runner for this host

func CopyBinary added in v1.0.1

func CopyBinary(cr bootstrapper.CommandRunner, binary, path string) error

CopyBinary copies previously cached binaries into the path

func DeleteFromImageCacheDir added in v0.24.0

func DeleteFromImageCacheDir(images []string) error

DeleteFromImageCacheDir deletes images from the cache

func LoadImages added in v0.22.0

func LoadImages(cmd bootstrapper.CommandRunner, 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.

func StartDriver

func StartDriver()

StartDriver starts the driver

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

func (cg *CertGenerator) ValidateCertificate(addr string, authOptions *auth.Options) (bool, error)

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

func (*ConnChecker) Check added in v0.16.0

func (cc *ConnChecker) Check(h *host.Host, swarm bool) (string, *auth.Options, error)

Check checks the connection

type LocalClient added in v0.17.0

type LocalClient struct {
	*persist.Filestore
	// contains filtered or unexported fields
}

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

func (*LocalClient) Load added in v0.17.0

func (api *LocalClient) Load(name string) (*host.Host, error)

Load a new client, creating driver

func (*LocalClient) NewHost added in v0.17.0

func (api *LocalClient) NewHost(driverName string, rawDriver []byte) (*host.Host, error)

NewHost creates a new Host

Jump to

Keyboard shortcuts

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