Documentation ¶
Index ¶
- func CreateSSHShell(api libmachine.API, args []string) error
- func DeleteHost(api libmachine.API) error
- func GenerateCerts(pub, priv string, ip net.IP) error
- func GetCA(h sshAble) (string, error)
- func GetConsoleURL(api libmachine.API) (string, 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, t *template.Template) (string, error)
- func GetStartCommand(ip string) string
- func StartCluster(h sshAble, ip string, config MachineConfig) error
- func StartHost(api libmachine.API, config MachineConfig) (*host.Host, error)
- func StopHost(api libmachine.API) error
- func UpdateCluster(d drivers.Driver, config MachineConfig) error
- type MachineConfig
- type MissingNodePortError
- type ServiceURL
- type ServiceURLs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSSHShell ¶
func CreateSSHShell(api libmachine.API, args []string) error
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 ¶
func GetHostLogs(api libmachine.API) (string, error)
GetHostLogs gets the openshift logs of the host VM.
func GetHostStatus ¶
func GetHostStatus(api libmachine.API) (string, error)
GetHostStatus gets the status of the host VM.
func GetServiceURL ¶
func GetStartCommand ¶
func StartCluster ¶
func StartCluster(h sshAble, ip string, config MachineConfig) 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(d drivers.Driver, config MachineConfig) error
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 RegistryMirror []string HostOnlyCIDR string // Only used by the virtualbox driver DeployRegistry bool DeployRouter bool OpenShiftVersion string }
MachineConfig contains the parameters used to start a cluster.
func (*MachineConfig) CacheMinikubeISOFromURL ¶ added in v0.3.5
func (m *MachineConfig) CacheMinikubeISOFromURL() error
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
type MissingNodePortError ¶ added in v0.4.0
type MissingNodePortError struct {
// contains filtered or unexported fields
}
func (MissingNodePortError) Error ¶ added in v0.4.0
func (e MissingNodePortError) Error() string
type ServiceURL ¶ added in v0.4.0
type ServiceURLs ¶ added in v0.4.0
type ServiceURLs []ServiceURL
func GetServiceURLs ¶ added in v0.4.0
func GetServiceURLs(api libmachine.API, namespace string, t *template.Template) (ServiceURLs, error)
Click to show internal directories.
Click to hide internal directories.