Documentation ¶
Index ¶
- Constants
- Variables
- func Create(name string) error
- func Delete(name string) error
- func Exists(name string) (bool, error)
- func GetCurrent() (string, error)
- func GetLabels(application string, additional bool) (map[string]string, error)
- func List() ([]config.ApplicationInfo, error)
- func SetCurrent(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 Create ¶
Create a new application and set is as active. If application already exists, this errors out. If no project is set, this errors out.
func GetCurrent ¶
GetCurrent application if no application is active it 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() ([]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
SetCurrent set application as active
Types ¶
This section is empty.