model

package
v0.0.0-...-6713b69 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pod

type Pod struct {
	ID            int64     `gorm:"primary_key;not_null;auto_increment" json:"id"`
	PodName       string    `gorm:"unique_index;not_null" json:"pod_name"`
	PodNamespace  string    `json:"pod_namespace"`
	PodTeamID     int64     `json:"pod_team_id"`
	PodCpuMin     float32   `json:"pod_cpu_min"`
	PodCpuMax     float32   `json:"pod_cpu_max"`
	PodRelicas    int32     `json:"pod_relicas"`
	PodMemoryMin  float32   `json:"pod_memory_min"`
	PodMemoryMax  float32   `json:"pod_memory_max"`
	PodPort       []PodPort `gorm:"ForeignKey:PodID" json:"pod_port"`
	PodEnv        []PodEnv  `gorm:"ForeignKey:PodID" json:"pod_env"`
	PodPullPolicy string    `json:"pod_pull_policy"`
	PodRestart    string    `json:"pod_restart"`
	PodType       string    `json:"pod_type"`
	PodImage      string    `json:"pod_image"`
}

type PodEnv

type PodEnv struct {
	ID       int64  `gorm:"primary_key;not_null;auto_increment" json:"id"`
	PodID    int64  `json:"pod_id"`
	EnvKey   string `json:"env_key"`
	EnvValue string `json:"env_value"`
}

type PodPort

type PodPort struct {
	ID            int64  `gorm:"primary_key;not_null;auto_increment" json:"id"`
	PodID         int64  `json:"pod_id"`
	ContainerPort int32  `json:"container_port"`
	Protocol      string `json:"protocol"`
}

Jump to

Keyboard shortcuts

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