application

package
v0.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 GetCurrentOrGetCreateSetDefault added in v0.0.4

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

GetCurrentOrGetCreateSetDefault returns currently active application. If no application is active, a defaultApplication is created and set as default as well. Use this carefully only in places where user expects the state to be altered Do not use for read operations like get, list; only for write operations like create

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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