Documentation ¶
Index ¶
- func CheckIfApiExistsAndLoad(api libmachine.API) (*host.Host, error)
- func CheckService(namespace string, service string) error
- func CreateSSHShell(api libmachine.API, args []string) error
- func DeleteHost(api libmachine.API) error
- func EnsureMinikubeRunningOrExit(api libmachine.API, exitStatus int)
- func GenLocalkubeStartCmd(kubernetesConfig KubernetesConfig) (string, 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 GetKubernetesClient() (*kubernetes.Clientset, error)
- func GetLocalkubeStatus(api libmachine.API) (string, error)
- func GetServiceListByLabel(namespace string, key string, value string) (*v1.ServiceList, error)
- func GetServiceURLsForService(api libmachine.API, namespace, service string, t *template.Template) ([]string, error)
- func GetStartCommand(kubernetesConfig KubernetesConfig) (string, error)
- func GetStartCommandB2D(kubernetesConfig KubernetesConfig, localkubeStartCmd string) (string, error)
- func GetStartCommandSystemd(kubernetesConfig KubernetesConfig, localkubeStartCmd string) (string, error)
- 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
- func WaitAndMaybeOpenService(api libmachine.API, namespace string, service string, ...)
- type KubernetesConfig
- type MachineConfig
- type MissingNodePortError
- type ServiceURL
- type ServiceURLs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfApiExistsAndLoad ¶ added in v0.12.0
func CheckIfApiExistsAndLoad(api libmachine.API) (*host.Host, error)
func CheckService ¶ added in v0.13.0
CheckService waits for the specified service to be ready by returning an error until the service is up The check is done by polling the endpoint associated with the service and when the endpoint exists, returning no error->service-online
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, exitStatus int)
EnsureMinikubeRunningOrExit checks that minikube has a status available and that that the status is `Running`, otherwise it will exit
func GenLocalkubeStartCmd ¶ added in v0.14.0
func GenLocalkubeStartCmd(kubernetesConfig KubernetesConfig) (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 GetKubernetesClient ¶ added in v0.8.0
func GetKubernetesClient() (*kubernetes.Clientset, error)
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 GetServiceListByLabel ¶ added in v0.13.0
func GetServiceURLsForService ¶ added in v0.12.1
func GetStartCommand ¶
func GetStartCommand(kubernetesConfig KubernetesConfig) (string, error)
func GetStartCommandB2D ¶ added in v0.14.0
func GetStartCommandB2D(kubernetesConfig KubernetesConfig, localkubeStartCmd string) (string, error)
func GetStartCommandSystemd ¶ added in v0.14.0
func GetStartCommandSystemd(kubernetesConfig KubernetesConfig, localkubeStartCmd string) (string, error)
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
func WaitAndMaybeOpenService ¶ added in v0.13.0
Types ¶
type KubernetesConfig ¶ added in v0.8.0
type KubernetesConfig struct { KubernetesVersion string NodeIP string ContainerRuntime string NetworkPlugin string FeatureGates string ExtraOptions util.ExtraOptionSlice }
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 HypervVirtualSwitch string KvmNetwork string // Only used by the KVM driver Downloader util.ISODownloader }
MachineConfig contains the parameters used to start a cluster.
type MissingNodePortError ¶ added in v0.12.0
type MissingNodePortError struct {
// contains filtered or unexported fields
}
func (MissingNodePortError) Error ¶ added in v0.12.0
func (e MissingNodePortError) Error() string
type ServiceURL ¶ added in v0.12.1
type ServiceURLs ¶ added in v0.12.1
type ServiceURLs []ServiceURL
func GetServiceURLs ¶ added in v0.12.1
func GetServiceURLs(api libmachine.API, namespace string, t *template.Template) (ServiceURLs, error)