resource

package
v0.0.0-...-3c06be6 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigJSON

type ConfigJSON map[string]string

func GetConfig

func GetConfig() ConfigJSON

type FrontRequest

type FrontRequest struct {
	CODE_OWNER string `json:"code_owner"`
	LANGUAGE   string `json:"language"`
	VERSION    string `json:"version"`
	CODE       string `json:"code"`
	INPUT      string `json:"input"`
}

type FrontResponse

type FrontResponse struct {
	STATUS   string `json:"status"`
	MESSAGE  string `json:"message"`
	RESOURCE string `json:"resource"`
	STDOUT   string `json:"stdout"`
	STDERR   string `json:"stderr"`
}

type Jam

type Jam struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	Metadata   struct {
		Name string `yaml:"name"`
	} `yaml:"metadata"`
	Spec struct {
		Selector struct {
			MatchLabels struct {
				App string `yaml:"app"`
			} `yaml:"matchLabels"`
		} `yaml:"selector"`
		Replicas int `yaml:"replicas"`
		Template struct {
			Metadata struct {
				Labels struct {
					App string `yaml:"app"`
				} `yaml:"labels"`
			} `yaml:"metadata"`
			Spec struct {
				ImagePullSecrets []Jam_ImagePullSecrets `yaml:"imagePullSecrets"`
				Containers       []Jam_Containers       `yaml:"containers"`
				Volumes          []Jam_Volumes          `yaml:"volumes"`
			} `yaml:"spec"`
		} `yaml:"template"`
	} `yaml:"spec"`
}

type JamLogs

type JamLogs struct {
	RESOURCE string
	STDOUT   string
	STDERR   string
}

type Jam_Containers

type Jam_Containers struct {
	Name            string                        `yaml:"name"`
	Image           string                        `yaml:"image"`
	VolumeMounts    []Jam_Containers_VolumeMounts `yaml:"volumeMounts"`
	ImagePullPolicy string                        `yaml:"imagePullPolicy"`
	Ports           []Jam_Containers_Ports        `yaml:"ports"`
}

type Jam_Containers_Ports

type Jam_Containers_Ports struct {
	ContainerPort int `yaml:"containerPort"`
}

type Jam_Containers_VolumeMounts

type Jam_Containers_VolumeMounts struct {
	MountPath string `yaml:"mountPath"`
	Name      string `yaml:"name"`
}

type Jam_ImagePullSecrets

type Jam_ImagePullSecrets struct {
	Name string `yaml:"name"`
}

type Jam_Volumes

type Jam_Volumes struct {
	Name      string `yaml:"name"`
	ConfigMap struct {
		Name  string              `yaml:"name"`
		Items []Jam_Volumes_Items `yaml:"items"`
	} `yaml:"configMap"`
}

type Jam_Volumes_Items

type Jam_Volumes_Items struct {
	Key  string `yaml:"key"`
	Path string `yaml:"path"`
}

type StepBin

type StepBin struct {
	P_INDEX             int64
	P_OWNER             string
	JAM_DEPLOYMENT_NAME string
	JAM_DEPLOYMENT_YAML string
	JAM_CONFIGMAP_NAME  string
	USERCONTENT_DPL     string
	USERCONTENT_CODE    string
	USERCONTENT_INPUT   string
	JAM_POD_NAME        string
	RUNOUT              string
	OUTOUT              string
	ERROUT              string
}

Jump to

Keyboard shortcuts

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