openshift

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URLCustomCol      = "-o=custom-columns=URL:.spec.host"
	URLsCustomCol     = "-o=custom-columns=NAME:.metadata.name,HOST:.spec.host"
	ProjectsCustomCol = "-o=custom-columns=NAME:.metadata.name"
)
View Source
const OPENSHIFT_CONTAINER_NAME = "origin"
View Source
const OPENSHIFT_EXEC = "/usr/bin/openshift"

Variables

View Source
var (
	MASTER = OpenShiftPatchTarget{
		"master",
		"/var/lib/origin/openshift.local.config/master/master-config.yaml",
		"/var/lib/minishift/openshift.local.config/master/master-config.yaml",
		"",
	}

	NODE = OpenShiftPatchTarget{
		"node",
		"/var/lib/origin/openshift.local.config/node-%s/node-config.yaml",
		"/var/lib/minishift/openshift.local.config/node-%s/node-config.yaml",
		"",
	}

	UNKNOWN = OpenShiftPatchTarget{
		"unkown",
		"",
		"",
		"",
	}
)

Functions

func GetDockerRegistryInfo

func GetDockerRegistryInfo() (string, error)

func GetServiceURL

func GetServiceURL(service, namespace string, https bool) (string, error)

Get the route for service

func Patch

func Patch(target OpenShiftPatchTarget, patch string, commander docker.DockerCommander) (bool, error)

func RestartOpenShift

func RestartOpenShift(commander docker.DockerCommander) (bool, error)

func ViewConfig

func ViewConfig(target OpenShiftPatchTarget, commander docker.DockerCommander) (string, error)

Types

type OpenShiftPatchTarget

type OpenShiftPatchTarget struct {
	// contains filtered or unexported fields
}

func (*OpenShiftPatchTarget) SetIp

func (t *OpenShiftPatchTarget) SetIp(ip string)

type ServiceURL

type ServiceURL struct {
	Namespace string
	Name      string
	URL       string
}

func GetServiceURLs

func GetServiceURLs(serviceListNamespace string) ([]ServiceURL, error)

Get the available routes to user

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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