application

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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

func Create(name string) error

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 Delete

func Delete(name string) error

Delete deletes the given application

func Exists added in v0.0.2

func Exists(name string) (bool, error)

func GetCurrent

func GetCurrent() (string, error)

GetCurrent application if no application is active it 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() ([]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(name string) error

SetCurrent set application as active

Types

This section is empty.

Jump to

Keyboard shortcuts

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