Documentation ¶
Index ¶
- Constants
- Variables
- func GetDockerRegistryInfo(registryAddonEnabled bool, openshiftVersion string) (string, error)
- func IsRunning(commander docker.DockerCommander) bool
- 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 Route
- type RouteSpec
- type Service
- type ServiceSpec
- type Services
Constants ¶
View Source
const (
ProjectsCustomCol = "-o=custom-columns=NAME:.metadata.name"
)
Variables ¶
View Source
var ( MASTER = OpenShiftPatchTarget{ "master", getContainerConfigFile("master"), getLocalConfigFile("master"), } NODE = OpenShiftPatchTarget{ "node", getContainerConfigFile("node"), getLocalConfigFile("node"), } UNKNOWN = OpenShiftPatchTarget{ "unkown", "", "", } )
Functions ¶
func GetDockerRegistryInfo ¶
func IsRunning ¶ added in v1.2.0
func IsRunning(commander docker.DockerCommander) bool
IsRunning checks whether the origin container is in running state. This method returns true if the origin container is running, false otherwise
func Patch ¶
func Patch(target OpenShiftPatchTarget, patch string, commander docker.DockerCommander, openshiftVersion string) (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
}
type RouteSpec ¶ added in v1.17.0
type RouteSpec struct { Items []struct { Spec struct { AlternateBackends []struct { Name string `json:"name"` Weight int `json:"weight"` } `json:"alternateBackends"` Host string `json:"host"` Tls struct { Termination string `json:"termination"` } `json:"tls"` To struct { Name string `json:"name"` Weight int `json:"weight"` } `json:"to"` } `json:"spec"` } `json:"items"` }
type Service ¶ added in v1.3.0
func GetServices ¶ added in v1.17.0
GetServices takes Namespace string and return route/nodeport/name/weight in a Service structure
type ServiceSpec ¶ added in v1.3.0
type Services ¶ added in v1.17.0
func NewServices ¶ added in v1.17.0
func NewServices() *Services
func (*Services) HasService ¶ added in v1.17.0
Click to show internal directories.
Click to hide internal directories.