application

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 8 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(client *occlient.Client, name string) error

Delete deletes the given application

func Exists added in v0.0.2

func Exists(app string, client *occlient.Client) (bool, error)

Exists checks whether the given app exist or not

func List

func List(client *occlient.Client) ([]string, error)

List all applications in current project

func ListInProject added in v0.0.14

func ListInProject(client *occlient.Client) ([]string, error)

ListInProject lists all applications in given project by Querying the cluster

Types

type App added in v0.0.19

type App struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AppSpec `json:"spec,omitempty"`
}

Application

func GetMachineReadableFormat added in v1.0.0

func GetMachineReadableFormat(client *occlient.Client, appName string, projectName string) App

GetMachineReadableFormat returns resource information in machine readable format

type AppList added in v0.0.19

type AppList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []App `json:"items"`
}

AppList is a list of applications

func GetMachineReadableFormatForList added in v1.0.0

func GetMachineReadableFormatForList(apps []App) AppList

GetMachineReadableFormatForList returns application list in machine readable format

type AppSpec added in v0.0.19

type AppSpec struct {
	Components []string `json:"components,omitempty"`
}

AppSpec is list of components present in given application

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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