Documentation ¶
Index ¶
- func Create(client *occlient.Client, applicationName string) error
- func Delete(client *occlient.Client, name string) error
- func Exists(client *occlient.Client, name string) (bool, error)
- func GetCurrent(client *occlient.Client) (string, error)
- func GetCurrentOrGetCreateSetDefault(client *occlient.Client) (string, error)
- func List(client *occlient.Client) ([]config.ApplicationInfo, error)
- func SetCurrent(client *occlient.Client, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrent ¶
GetCurrent returns currently active application. If no application is active this functions returns empty string
func GetCurrentOrGetCreateSetDefault ¶ added in v0.0.4
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 config file. Shows also empty applications (empty applications are those that are just mentioned in config file but don't have any object associated with it on cluster).
Types ¶
This section is empty.