openshift

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2017 License: Apache-2.0 Imports: 28 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const TIMEOUT = 300

TIMEOUT is how long we'll wait for the termination of OpenShift resource to be successful used when undeploying resources from OpenShift

Variables

This section is empty.

Functions

func GetAbsBuildContext

func GetAbsBuildContext(context string) (string, error)

getAbsBuildContext returns build context relative to project root dir

func GetGitCurrentBranch

func GetGitCurrentBranch(composeFileDir string) (string, error)

GetGitCurrentBranch gets current git branch name for the current git repo

func GetGitCurrentRemoteURL

func GetGitCurrentRemoteURL(composeFileDir string) (string, error)

GetGitCurrentRemoteURL gets current git remote URI for the current git repo

func GetImageTag

func GetImageTag(image string) string

getImageTag get tag name from image name if no tag is specified return 'latest'

func HasGitBinary

func HasGitBinary() bool

HasGitBinary checks if the 'git' binary is available on the system

Types

type OpenShift

type OpenShift struct {
	// Anonymous field allows for inheritance. We are basically inheriting
	// all of kubernetes.Kubernetes Methods and variables here. We'll overwite
	// some of those methods with our own for openshift.
	kubernetes.Kubernetes
}

OpenShift implements Transformer interface and represents OpenShift transformer

func (*OpenShift) Deploy

func (o *OpenShift) Deploy(komposeObject kobject.KomposeObject, opt kobject.ConvertOptions) error

Deploy transofrms and deploys kobject to OpenShift

func (*OpenShift) Transform

func (o *OpenShift) Transform(komposeObject kobject.KomposeObject, opt kobject.ConvertOptions) ([]runtime.Object, error)

Transform maps komposeObject to openshift objects returns objects that are already sorted in the way that Services are first

func (*OpenShift) Undeploy

func (o *OpenShift) Undeploy(komposeObject kobject.KomposeObject, opt kobject.ConvertOptions) []error

Undeploy removes deployed artifacts from OpenShift cluster

Jump to

Keyboard shortcuts

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