Documentation
¶
Index ¶
- Constants
- Variables
- 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 GetCurrentOrDefault(client *occlient.Client) (string, error)
- func GetLabels(application string, additional bool) (map[string]string, error)
- func List(client *occlient.Client) ([]config.ApplicationInfo, error)
- func SetCurrent(client *occlient.Client, name string) error
Constants ¶
const ApplicationLabel = "app.kubernetes.io/name"
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
Variables ¶
var AdditionalApplicationLabels = []string{
"app",
}
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
Functions ¶
func GetCurrent ¶
GetCurrent returns currently active application. If no application is active this functions returns empty string
func GetCurrentOrDefault ¶ added in v0.0.3
GetCurrentOrDefault returns currently active application. If no application is active returns defaultApplication name
func GetLabels ¶ added in v0.0.2
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).
Types ¶
This section is empty.