v0.0.3 Latest Latest

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

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




View Source
const ComponentLabel = ""

ComponentLabel is a label key used to identify component


This section is empty.


func CreateFromDir

func CreateFromDir(client *occlient.Client, name string, ctype string, dir string) (string, error)

CreateFromDir create new component with source from local directory

func CreateFromGit

func CreateFromGit(client *occlient.Client, name string, ctype string, url string) (string, error)

func Delete

func Delete(client *occlient.Client, name string) (string, error)

Delete whole component

func GetComponentSource added in v0.0.3

func GetComponentSource(client *occlient.Client, componentName string, applicationName string, projectName string) (string, string, error)

GetComponentSource what source type given component uses The first returned string is component source type ("git" or "local") The second returned string is a source (url to git repository or local path)

func GetComponentType added in v0.0.3

func GetComponentType(client *occlient.Client, componentName string, applicationName string, projectName string) (string, error)

GetComponentType returns type of component in given application and project

func GetCurrent

func GetCurrent(client *occlient.Client) (string, error)

GetCurrent component in active application returns "" if there is no active component

func GetLabels added in v0.0.2

func GetLabels(componentName string, applicationName string, additional bool) (map[string]string, error)

GetLabels return labels that should be applied to every object for given component in active application additional labels are used only for creating object if you are creating something use additional=true if you need labels to filter component that use additional=false

func PushLocal added in v0.0.3

func PushLocal(client *occlient.Client, componentName string, dir string) error

PushLocal start new build and push local dir as a source for build

func RebuildGit added in v0.0.3

func RebuildGit(client *occlient.Client, componentName string) error

RebuildGit rebuild git component from the git repo that it was created with

func SetCurrent

func SetCurrent(client *occlient.Client, name string) error


type ComponentInfo added in v0.0.3

type ComponentInfo struct {
	Name string
	Type string

ComponentInfo holds all important information about one component

func List added in v0.0.3

func List(client *occlient.Client) ([]ComponentInfo, error)

List lists components in active application

Jump to

Keyboard shortcuts

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