applications

package
v2.1.57 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	*v1.SourceRepository
	Environments map[string]Environment
}

Application represents an application in jx

func (Application) Name

func (a Application) Name() string

Name returns the application name

type Deployment

type Deployment struct {
	*appsv1.Deployment
}

Deployment represents an application deployment in a single environment

func (Deployment) Pods

func (d Deployment) Pods() string

Pods returns the ratio of pods that are ready/replicas

func (Deployment) URL

URL returns a deployment URL

func (Deployment) Version

func (d Deployment) Version() string

Version returns the deployment version

type Environment

type Environment struct {
	v1.Environment
	Deployments []Deployment
}

Environment represents an environment in which an application has been deployed

func (Environment) IsPreview

func (e Environment) IsPreview() bool

IsPreview returns true if the environment is a preview environment

type List

type List struct {
	Items []Application
}

List is a collection of applications

func GetApplications

func GetApplications(factory clients.Factory) (List, error)

GetApplications fetches all Applications

func (List) Environments

func (l List) Environments() map[string]v1.Environment

Environments loops through all applications in a list and returns a map with all the unique environments

Jump to

Keyboard shortcuts

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