appitem

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: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppItem

type AppItem interface {
	WriteToFile(file string) error
	LoadFromFile(file string, envs map[string]string) error
	GetFileName() string
	String() string
	Info() string
	Status() string
	InfoStatusHtml() string
	Create(namespace string, restConf *rest.Config) error
	Delete(namespace string, restConf *rest.Config, options *v12.DeleteOptions) error
	Update(namespace string, restConf *rest.Config) error
	UpdateScale(replicas int32, namespace string, restConf *rest.Config) error
	GetScale() int32
	IsScalable() bool
	GetName() string
	GetKind() string
	ToYaml() (string, error)
	FromData(data []byte) error
}

func ListAll

func ListAll(namespace string, restConf *rest.Config, options v12.ListOptions) ([]AppItem, error)

func ListConfigMaps

func ListConfigMaps(namespace string, restConf *rest.Config, options v12.ListOptions) ([]AppItem, error)

func ListDeploymentConfigs

func ListDeploymentConfigs(namespace string, restConf *rest.Config, options v12.ListOptions) ([]AppItem, error)

Hint: add more types here

func ListPersistentVolumeClaims

func ListPersistentVolumeClaims(namespace string, restConf *rest.Config, options v12.ListOptions) ([]AppItem, error)

func ListPods

func ListPods(namespace string, restConf *rest.Config, options v12.ListOptions) ([]AppItem, error)

func ListRoleBindings

func ListRoleBindings(namespace string, restConf *rest.Config, options v12.ListOptions) ([]AppItem, error)

func ListRoles

func ListRoles(namespace string, restConf *rest.Config, options v12.ListOptions) ([]AppItem, error)

func ListRoutes

func ListRoutes(namespace string, restConf *rest.Config, options v12.ListOptions) ([]AppItem, error)

func ListServiceAccounts

func ListServiceAccounts(namespace string, restConf *rest.Config, options v12.ListOptions) ([]AppItem, error)

func ListServices

func ListServices(namespace string, restConf *rest.Config, options v12.ListOptions) ([]AppItem, error)

func ListStatefulSets

func ListStatefulSets(namespace string, restConf *rest.Config, options v12.ListOptions) ([]AppItem, error)

func NewAppItemFromFile

func NewAppItemFromFile(file string, envs map[string]string) (AppItem, error)

Hint: add more types here

Jump to

Keyboard shortcuts

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