cluster

package
v1.0.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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

Variables

View Source
var (
	RegistrationParameters = new(registration.RegistrationParameters)
)

Functions

func CheckIfApiExistsAndLoad

func CheckIfApiExistsAndLoad(api libmachine.API) (*host.Host, error)

func CreateSSHShell

func CreateSSHShell(api libmachine.API, args []string) error

func DeleteHost

func DeleteHost(api libmachine.API) error

DeleteHost deletes the host VM.

func GenerateCerts

func GenerateCerts(pub, priv string, ip net.IP) error

func GetAlternateDNS

func GetAlternateDNS(domain string) []string

func GetConsoleURL

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 GetHostIP

func GetHostIP(api libmachine.API) (string, error)

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 StartHost

func StartHost(api libmachine.API, config MachineConfig) (*host.Host, error)

StartHost starts a host VM.

func StopHost

func StopHost(api libmachine.API) error

StopHost stops the host VM.

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
	OpenShiftVersion string
	ShellProxyEnv    string // Only used for proxy purpose
}

MachineConfig contains the parameters used to start a cluster.

func (*MachineConfig) CacheMinikubeISOFromURL

func (m *MachineConfig) CacheMinikubeISOFromURL() error

func (*MachineConfig) GetISOCacheFilepath

func (m *MachineConfig) GetISOCacheFilepath() string

func (*MachineConfig) GetISOFileURI

func (m *MachineConfig) GetISOFileURI() string

func (*MachineConfig) IsMinikubeISOCached

func (m *MachineConfig) IsMinikubeISOCached() bool

func (*MachineConfig) ShouldCacheMinikubeISO

func (m *MachineConfig) ShouldCacheMinikubeISO() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL