Documentation ¶
Index ¶
- func CreateSSHShell(api libmachine.API, args []string) error
- func DeleteHost(api libmachine.API) error
- 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 GetServiceURL(api libmachine.API, namespace, service string) (string, error)
- func GetStartCommand() string
- func SetupCerts(d drivers.Driver) error
- func StartCluster(h sshAble) error
- func StartHost(api libmachine.API, config MachineConfig) (*host.Host, error)
- func StopHost(api libmachine.API) error
- func UpdateCluster(d drivers.Driver) error
- type MachineConfig
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 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 GetServiceURL ¶ added in v0.5.0
func GetServiceURL(api libmachine.API, namespace, service string) (string, error)
func GetStartCommand ¶
func GetStartCommand() string
func SetupCerts ¶
SetupCerts gets the generated credentials required to talk to the APIServer.
func StartCluster ¶
func StartCluster(h sshAble) 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 ¶
Types ¶
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 }
MachineConfig contains the parameters used to start a cluster.
func (*MachineConfig) CacheMinikubeISO ¶ added in v0.7.0
func (m *MachineConfig) CacheMinikubeISO() error
func (*MachineConfig) GetISOCacheFileURI ¶ added in v0.7.0
func (m *MachineConfig) GetISOCacheFileURI() string
func (*MachineConfig) GetISOCacheFilepath ¶ added in v0.7.0
func (m *MachineConfig) GetISOCacheFilepath() string
func (*MachineConfig) IsMinikubeISOCached ¶ added in v0.7.0
func (m *MachineConfig) IsMinikubeISOCached() bool
Click to show internal directories.
Click to hide internal directories.