Documentation ¶
Index ¶
- Constants
- Variables
- func GetDockerRegistryInfo() (string, error)
- func GetServiceURL(service, namespace string, https bool) (string, error)
- func Patch(target OpenShiftPatchTarget, patch string, commander docker.DockerCommander) (bool, error)
- func RestartOpenShift(commander docker.DockerCommander) (bool, error)
- func ViewConfig(target OpenShiftPatchTarget, commander docker.DockerCommander) (string, error)
- type OpenShiftPatchTarget
- type ServiceURL
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 GetServiceURL ¶
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 ¶
func GetServiceURLs ¶
func GetServiceURLs(serviceListNamespace string) ([]ServiceURL, error)
Get the available routes to user
Click to show internal directories.
Click to hide internal directories.