application

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Name  string
	Label string
	Items []appitem.AppItem
}

func NewApp

func NewApp(name string) *Application

func NewAppFromDisk

func NewAppFromDisk(path, appName, namespace string) (*Application, error)

func NewAppFromNamespace

func NewAppFromNamespace(appName string, namespace string, restConf *rest.Config, labelSelector string) (*Application, error)

func NewAppWithLabel

func NewAppWithLabel(name, label string) *Application

func NewAppsFromDisk

func NewAppsFromDisk(path, namespace string) ([]*Application, error)

func (*Application) CreateItems

func (app *Application) CreateItems(w io.Writer, namespace string, restConf *rest.Config)

func (*Application) DeleteItems

func (app *Application) DeleteItems(w io.Writer, namespace string, restConf *rest.Config, options *v12.DeleteOptions)

func (Application) GetItem

func (app Application) GetItem(kind string, name string) appitem.AppItem

func (Application) GetItemsByKinds

func (app Application) GetItemsByKinds(kinds string) []appitem.AppItem

func (Application) GetScalableItems

func (app Application) GetScalableItems() []appitem.AppItem

func (*Application) Save

func (app *Application) Save(w io.Writer, rootFolder string)

func (*Application) ScaleItems

func (app *Application) ScaleItems(replicas int32, w io.Writer, namespace string, restConf *rest.Config)

func (*Application) ScaleItemsDefault

func (app *Application) ScaleItemsDefault(w io.Writer, namespace string, restConf *rest.Config)

func (*Application) UpdateItems

func (app *Application) UpdateItems(w io.Writer, namespace string, restConf *rest.Config)

Jump to

Keyboard shortcuts

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