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
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 ¶
func (d Deployment) URL(kc kubernetes.Interface, a Application) string
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 ¶
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
Click to show internal directories.
Click to hide internal directories.