application

package
v1.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

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 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"`
	Status            AppStatus `json:"status,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

type AppStatus added in v0.0.19

type AppStatus struct {
	Active bool `json:"active"`
}

AppStatus shows the application is active or not

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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