Versions in this module Expand all Collapse all v1 v1.5.1 Apr 28, 2017 Changes in this version + const AlternateDNSPort + const DefaultDNSPort + const DefaultNamespace + const OpenShiftContainer + const RegistryServiceIP + const SvcDockerRegistry + const SvcRouter + var AllPorts = append(append(RouterPorts, DefaultPorts), AlternateDNSPort) + var BasePorts = []int + var DefaultPorts = append(BasePorts, DefaultDNSPort) + var PortsWithAlternateDNS = append(BasePorts, AlternateDNSPort) + var RouterPorts = []int + var SocatPidFile = filepath.Join(homedir.HomeDir(), cliconfig.OpenShiftConfigHomeDir, "socat-8443.pid") + func AddClusterRole(osClient client.Interface, role, user string) error + func AddRoleToServiceAccount(osClient client.Interface, role, sa, namespace string) error + func AddSCCToServiceAccount(kubeClient kclientset.Interface, scc, sa, namespace string) error + func CheckSocat() error + func CreateProject(f *clientcmd.Factory, name, display, desc, basecmd string, out io.Writer) error + func ErrOpenShiftFailedToStart(container string) errors.Error + func ErrPortsNotAvailable(ports []int) error + func ErrSocatNotFound() errors.Error + func ErrTimedOutWaitingForStart(container string) errors.Error + func GetConfigFromContainer(client *docker.Client) (*configapi.MasterConfig, error) + func ImportObjects(f *clientcmd.Factory, ns, location string) error + func IsPortsNotAvailableErr(err error) bool + func KillExistingSocat() error + func LoggedInUserFactory() (*clientcmd.Factory, error) + func LoggingHost(routingSuffix, serverIP string) string + func Login(username, password, server, configDir string, f *clientcmd.Factory, ...) error + func MetricsHost(routingSuffix, serverIP string) string + func SaveSocatPid(pid int) error + func UnavailablePorts(err error) []int + type Helper struct + func NewHelper(client *docker.Client, hostHelper *host.HostHelper, ...) *Helper + func (h *Helper) DetermineNodeHost(hostConfigDir string, names ...string) (string, error) + func (h *Helper) GetConfigFromLocalDir(configDir string) (*configapi.MasterConfig, string, error) + func (h *Helper) InstallLogging(f *clientcmd.Factory, ...) error + func (h *Helper) InstallMetrics(f *clientcmd.Factory, hostName, imagePrefix, imageVersion string) error + func (h *Helper) InstallRegistry(kubeClient kclientset.Interface, f *clientcmd.Factory, ...) error + func (h *Helper) InstallRouter(kubeClient kclientset.Interface, f *clientcmd.Factory, ...) error + func (h *Helper) Master(ip string) string + func (h *Helper) OriginLog() string + func (h *Helper) OtherIPs(excludeIP string) ([]string, error) + func (h *Helper) ServerIP() (string, error) + func (h *Helper) SetupPersistentStorage(osclient client.Interface, kclient kclientset.Interface, dir string) error + func (h *Helper) Start(opt *StartOptions, out io.Writer) (string, error) + func (h *Helper) StartNode(opt *StartOptions, out io.Writer) error + func (h *Helper) TestContainerNetworking(ip string) error + func (h *Helper) TestForwardedIP(ip string) error + func (h *Helper) TestIP(ip string) error + func (h *Helper) TestPorts(ports []int) error + type StartOptions struct + DNSPort int + DockerRoot string + Environment []string + HTTPProxy string + HTTPSProxy string + HostConfigDir string + HostDataDir string + HostPersistentVolumesDir string + HostVolumesDir string + Images string + KubeconfigContents string + LogLevel int + LoggingHost string + MetricsHost string + NoProxy []string + PortForwarding bool + RouterIP string + RoutingSuffix string + ServerIP string + SetPropagationMode bool + UseExistingConfig bool + UseSharedVolume bool