Documentation ¶
Index ¶
- Constants
- func CreateFromDir(client *occlient.Client, name string, ctype string, dir string) (string, error)
- func CreateFromGit(client *occlient.Client, name string, ctype string, url string) (string, error)
- func Delete(client *occlient.Client, name string) (string, error)
- func GetComponentSource(client *occlient.Client, componentName string, applicationName string, ...) (string, string, error)
- func GetComponentType(client *occlient.Client, componentName string, applicationName string, ...) (string, error)
- func GetCurrent(client *occlient.Client) (string, error)
- func GetLabels(componentName string, applicationName string, additional bool) (map[string]string, error)
- func PushLocal(client *occlient.Client, componentName string, dir string) error
- func RebuildGit(client *occlient.Client, componentName string) error
- func SetCurrent(client *occlient.Client, name string) error
- type ComponentInfo
Constants ¶
const ComponentLabel = "app.kubernetes.io/component-name"
ComponentLabel is a label key used to identify component
Variables ¶
This section is empty.
Functions ¶
func CreateFromDir ¶
CreateFromDir create new component with source from local directory
func CreateFromGit ¶
func GetComponentSource ¶ added in v0.0.3
func GetComponentSource(client *occlient.Client, componentName string, applicationName string, projectName string) (string, string, error)
GetComponentSource what source type given component uses The first returned string is component source type ("git" or "local") The second returned string is a source (url to git repository or local path)
func GetComponentType ¶ added in v0.0.3
func GetComponentType(client *occlient.Client, componentName string, applicationName string, projectName string) (string, error)
GetComponentType returns type of component in given application and project
func GetCurrent ¶
GetCurrent component in active application returns "" if there is no active component
func GetLabels ¶ added in v0.0.2
func GetLabels(componentName string, applicationName string, additional bool) (map[string]string, error)
GetLabels return labels that should be applied to every object for given component in active application additional labels are used only for creating object if you are creating something use additional=true if you need labels to filter component that use additional=false
func RebuildGit ¶ added in v0.0.3
RebuildGit rebuild git component from the git repo that it was created with
Types ¶
type ComponentInfo ¶ added in v0.0.3
ComponentInfo holds all important information about one component