metadata

package
v0.0.0-...-6dbdb44 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: EPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Instance = metadata{}
View Source
var Namespace = CHE_NAMESPACE{}
View Source
var User = UserData{}

Functions

func GetMeasureTime

func GetMeasureTime(pod *v1.Pod) (time float64)

Get Measure time for Workspaces !TODO get with more specific events

func WriteWorkspaceMeasureTimesToMetadata

func WriteWorkspaceMeasureTimesToMetadata(pod *v1.Pod, workspaceStack string) (err error)

WriteWorkspaceMeasureTimesToMetadata get timers condition from a given pod

Types

type CHE_NAMESPACE

type CHE_NAMESPACE struct {
	Name string
	UP   bool
}

type ChePodsInfo

type ChePodsInfo struct {
	Name        string            `json:"name, string"`
	DockerImage string            `json:"docker_image, string"`
	Status      v1.PodPhase       `json:"status, string"`
	Labels      map[string]string `json:"labels, string"`
}

type PodTimes

type PodTimes struct {
	PostgresUpTime  float64 `json:"postgres-up-time, float64"`
	KeycloakUpTime  float64 `json:"keycloak-up-time, float64"`
	DevFileUpTime   float64 `json:"devfile-up-time, float64"`
	PluginRegUpTime float64 `json:"plugins-up-time, float64"`
	ServerUpTime    float64 `json:"server-up-time, float64"`
}

type UserData

type UserData struct {
	Username string
	Password string
}

type WorkspacesMeasureTime

type WorkspacesMeasureTime struct {
	SimpleWorkspace    float64 `json:"simple_workspace, float64"`
	NodejsWorkspace    float64 `json:"nodejs_workspace, float64"`
	JavaMavenWorkspace float64 `json:"java_maven_workspace, float64"`
}

Jump to

Keyboard shortcuts

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