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: 4 Imported by: 0




View Source
const ApplicationLabel = ""

ApplicationLabel is label key that is used to group all object that belong to one application It should be save to use just this label to filter application


View Source
var AdditionalApplicationLabels = []string{


AdditionalApplicationLabels additional labels that are applied to all objects belonging to one application Those labels are not used for filtering or grouping, they are used just when creating and they are mend to be used by other tools


func Create

func Create(client *occlient.Client, applicationName string) error

Create a new application

func Delete

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

Delete deletes the given application

func Exists added in v0.0.2

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

func GetCurrent

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

GetCurrent returns currently active application. If no application is active this functions returns empty string

func GetCurrentOrDefault added in v0.0.3

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

GetCurrentOrDefault returns currently active application. If no application is active returns defaultApplication name

func GetLabels added in v0.0.2

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

GetLabels return labels that identifies given application additional labels are used only when creating object if you are creating something use additional=true if you need labels to filter component than use additional=false

func List

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

List all application in current project Queries cluster and configfile. Shows also empty applications (empty applications are those that are just mentioned in config but don't have any object associated with it on cluster).

func SetCurrent added in v0.0.2

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

SetCurrent set application as active


This section is empty.

Jump to

Keyboard shortcuts

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