Documentation ¶
Index ¶
- Constants
- func CheckIfApiExistsAndLoad(api libmachine.API) (*host.Host, error)
- func CreateSSHShell(api libmachine.API, args []string) error
- func DeleteHost(api libmachine.API) error
- func GenerateCerts(pub, priv string, ip net.IP) error
- func GetAlternateDNS(domain string) []string
- func GetConsoleURL(api libmachine.API) (string, error)
- func GetHostDockerEnv(api libmachine.API) (map[string]string, error)
- func GetHostIP(api libmachine.API) (string, error)
- func GetHostLogs(api libmachine.API, follow bool, tail int64) (string, error)
- func GetHostStatus(api libmachine.API, machine string) (string, error)
- func StartHost(api libmachine.API, config MachineConfig) (*host.Host, error)
- func StopHost(api libmachine.API) error
- type MachineConfig
Constants ¶
View Source
const ( DefaultOpenShiftDirectory = "/var/lib/minishift" DefaultCertPath = DefaultOpenShiftDirectory + "/openshift.local.config/master/" DefaultServiceClusterIP = "10.0.0.1" DefaultDNSDomain = "cluster.local" DefaultDNSIP = "10.0.0.10" )
These constants are used by both minikube and openshift
View Source
const (
SshCommunicationError = "exit status 255"
)
Variables ¶
This section is empty.
Functions ¶
func CheckIfApiExistsAndLoad ¶ added in v1.0.0
func CheckIfApiExistsAndLoad(api libmachine.API) (*host.Host, error)
func CreateSSHShell ¶
func CreateSSHShell(api libmachine.API, args []string) error
func GetAlternateDNS ¶ added in v1.0.0
func GetConsoleURL ¶ added in v0.3.0
func GetConsoleURL(api libmachine.API) (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 ¶
GetHostLogs gets the openshift logs of the host VM. If follow is specified, it will tail the logs
func GetHostStatus ¶
func GetHostStatus(api libmachine.API, machine string) (string, error)
GetHostStatus gets the status of the host VM with the specified name.
func StartHost ¶
func StartHost(api libmachine.API, config MachineConfig) (*host.Host, error)
StartHost starts a host VM.
Types ¶
type MachineConfig ¶
type MachineConfig struct { MinikubeISO string ISOCacheDir string Memory int CPUs int DiskSize int VMDriver string DockerEnv []string // Each entry is formatted as KEY=VALUE. DockerEngineOpt []string InsecureRegistry []string RegistryMirror []string HostOnlyCIDR string // Only used by the virtualbox driver ShellProxyEnv util.ProxyConfig // Only used for proxy purpose HypervVirtualSwitch string RemoteIPAddress string // Only used for generic driver purpose to connect remote machine RemoteSSHUser string // Only used for generic driver purpose to specify ssh user SSHKeyToConnectRemote string // Only used for generic driver purpose to specify ssh key path UsingLocalProxy bool }
MachineConfig contains the parameters used to start a cluster.
func (*MachineConfig) CacheMinikubeISOFromURL ¶ added in v0.3.5
func (m *MachineConfig) CacheMinikubeISOFromURL() error
CacheMinikubeISOFromURL download minishift ISO from a given URI. It also checks sha256sum if present and then put ISO to cached directory.
func (*MachineConfig) GetISOCacheFilepath ¶ added in v0.3.3
func (m *MachineConfig) GetISOCacheFilepath() string
func (*MachineConfig) GetISOFileURI ¶ added in v0.3.5
func (m *MachineConfig) GetISOFileURI() string
func (*MachineConfig) IsMinikubeISOCached ¶ added in v0.3.3
func (m *MachineConfig) IsMinikubeISOCached() bool
func (*MachineConfig) ShouldCacheMinikubeISO ¶ added in v0.3.5
func (m *MachineConfig) ShouldCacheMinikubeISO() bool
Click to show internal directories.
Click to hide internal directories.