Help us shape the future of Go! Take the 2026 Go Developer Survey

application

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 8 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 Exists

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

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

ListInProject lists all applications in given project by Querying the cluster

Types

type App

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

Application

func GetMachineReadableFormat

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

GetMachineReadableFormat returns resource information in machine readable format

type AppList

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

AppList is a list of applications

func GetMachineReadableFormatForList

func GetMachineReadableFormatForList(apps []App) AppList

GetMachineReadableFormatForList returns application list in machine readable format

type AppSpec

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