Documentation ¶
Index ¶
- func CreateSSHShell(api libmachine.API, args []string) error
- func DeleteHost(api libmachine.API) error
- func EnsureMinikubeRunningOrExit(api libmachine.API)
- func GenerateCerts(caCert, caKey, pub, priv string, ip net.IP) error
- func GetHostDockerEnv(api libmachine.API) (map[string]string, error)
- func GetHostLogs(api libmachine.API) (string, error)
- func GetHostStatus(api libmachine.API) (string, error)
- func GetKubernetesClient() (*unversioned.Client, error)
- func GetKubernetesEndpointsWithNamespace(namespace string) (endpointGetter, error)
- func GetKubernetesServicesWithNamespace(namespace string) (serviceGetter, error)
- func GetLocalkubeStatus(api libmachine.API) (string, error)
- func GetServiceURL(api libmachine.API, namespace, service string) (string, error)
- func GetStartCommand(kubernetesConfig KubernetesConfig) string
- func SetupCerts(d drivers.Driver) error
- func StartCluster(h sshAble, kubernetesConfig KubernetesConfig) error
- func StartHost(api libmachine.API, config MachineConfig) (*host.Host, error)
- func StopHost(api libmachine.API) error
- func UpdateCluster(h sshAble, d drivers.Driver, config KubernetesConfig) error
- type BaseAsset
- type CopyableFile
- type FileAsset
- type KubernetesConfig
- type MachineConfig
- type MemoryAsset
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSSHShell ¶ added in v0.2.0
func CreateSSHShell(api libmachine.API, args []string) error
func EnsureMinikubeRunningOrExit ¶ added in v0.8.0
func EnsureMinikubeRunningOrExit(api libmachine.API)
EnsureMinikubeRunningOrExit checks that minikube has a status available and that that the status is `Running`, otherwise it will exit
func GetHostDockerEnv ¶
func GetHostDockerEnv(api libmachine.API) (map[string]string, error)
GetHostDockerEnv gets the necessary docker env variables to allow the use of docker through minikube's vm
func GetHostLogs ¶
func GetHostLogs(api libmachine.API) (string, error)
GetHostLogs gets the localkube logs of the host VM.
func GetHostStatus ¶
func GetHostStatus(api libmachine.API) (string, error)
GetHostStatus gets the status of the host VM.
func GetKubernetesClient ¶ added in v0.8.0
func GetKubernetesClient() (*unversioned.Client, error)
func GetKubernetesEndpointsWithNamespace ¶ added in v0.8.0
func GetKubernetesServicesWithNamespace ¶ added in v0.8.0
func GetLocalkubeStatus ¶ added in v0.10.0
func GetLocalkubeStatus(api libmachine.API) (string, error)
GetLocalkubeStatus gets the status of localkube from the host VM.
func GetServiceURL ¶ added in v0.5.0
func GetServiceURL(api libmachine.API, namespace, service string) (string, error)
func GetStartCommand ¶
func GetStartCommand(kubernetesConfig KubernetesConfig) string
func SetupCerts ¶
SetupCerts gets the generated credentials required to talk to the APIServer.
func StartCluster ¶
func StartCluster(h sshAble, kubernetesConfig KubernetesConfig) error
StartCluster starts a k8s cluster on the specified Host.
func StartHost ¶
func StartHost(api libmachine.API, config MachineConfig) (*host.Host, error)
StartHost starts a host VM.
func UpdateCluster ¶
func UpdateCluster(h sshAble, d drivers.Driver, config KubernetesConfig) error
Types ¶
type BaseAsset ¶ added in v0.9.0
type BaseAsset struct { Length int AssetName string TargetDir string TargetName string Permissions string // contains filtered or unexported fields }
func (*BaseAsset) GetAssetName ¶ added in v0.9.0
func (*BaseAsset) GetPermissions ¶ added in v0.9.0
func (*BaseAsset) GetTargetDir ¶ added in v0.9.0
func (*BaseAsset) GetTargetName ¶ added in v0.9.0
type CopyableFile ¶ added in v0.9.0
type FileAsset ¶ added in v0.9.0
type FileAsset struct {
BaseAsset
}
func NewFileAsset ¶ added in v0.9.0
type KubernetesConfig ¶ added in v0.8.0
type KubernetesConfig struct { KubernetesVersion string NodeIP string ContainerRuntime string NetworkPlugin string }
KubernetesConfig contains the parameters used to configure the VM Kubernetes.
type MachineConfig ¶
type MachineConfig struct { MinikubeISO string Memory int CPUs int DiskSize int VMDriver string DockerEnv []string // Each entry is formatted as KEY=VALUE. InsecureRegistry []string RegistryMirror []string HostOnlyCIDR string // Only used by the virtualbox driver }
MachineConfig contains the parameters used to start a cluster.
func (*MachineConfig) CacheMinikubeISOFromURL ¶ added in v0.8.0
func (m *MachineConfig) CacheMinikubeISOFromURL() error
func (*MachineConfig) GetISOCacheFilepath ¶ added in v0.7.0
func (m *MachineConfig) GetISOCacheFilepath() string
func (*MachineConfig) GetISOFileURI ¶ added in v0.8.0
func (m *MachineConfig) GetISOFileURI() string
func (*MachineConfig) IsMinikubeISOCached ¶ added in v0.7.0
func (m *MachineConfig) IsMinikubeISOCached() bool
func (*MachineConfig) ShouldCacheMinikubeISO ¶ added in v0.8.0
func (m *MachineConfig) ShouldCacheMinikubeISO() bool
type MemoryAsset ¶ added in v0.9.0
type MemoryAsset struct {
BaseAsset
}
func NewMemoryAsset ¶ added in v0.9.0
func NewMemoryAsset(assetName, targetDir, targetName, permissions string) *MemoryAsset
func (*MemoryAsset) GetLength ¶ added in v0.9.0
func (m *MemoryAsset) GetLength() int