Version: v0.0.2 Latest Latest

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

Go to latest
Published: Mar 6, 2018 License: Apache-2.0 Imports: 11 Imported by: 0




This section is empty.


This section is empty.


func CreateNewProject

func CreateNewProject(name string) error

func Delete

func Delete(kind string, name string, labels map[string]string) (string, error)

Delete calls oc delete kind is always required (can be set to 'all') name can be omitted if labels are set, in that case set name to ” if you want to delete object just by its name set labels to nil

func DeleteProject

func DeleteProject(name string) error

func GetCurrentProjectName

func GetCurrentProjectName() (string, error)

func GetLabelValues added in v0.0.2

func GetLabelValues(project string, label string) ([]string, error)

GetLabelValues get label values from all object that are labeled with given label returns slice of uniq label values

func GetProjects

func GetProjects() (string, error)

func NewAppS2I

func NewAppS2I(name string, builderImage string, gitUrl string, labels map[string]string) (string, error)

NewAppS2I create new application using S2I with source in git repository

func NewAppS2IEmpty

func NewAppS2IEmpty(name string, builderImage string, labels map[string]string) (string, error)

NewAppS2I create new application using S2I from local directory

func SetVolumes

func SetVolumes(config *VolumeConfig, operations *VolumeOpertaions) (string, error)

func StartBuild

func StartBuild(name string, dir string) (string, error)


type OcCommand

type OcCommand struct {
	// contains filtered or unexported fields

type VolumeConfig

type VolumeConfig struct {
	Name             *string
	Size             *string
	DeploymentConfig *string
	Path             *string

type VolumeOpertaions

type VolumeOpertaions struct {
	Add    bool
	Remove bool
	List   bool

Source Files

Jump to

Keyboard shortcuts

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