applicationentity

package
v0.0.0-...-bd520fb Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableApplicationBasicInfo   string = "ApplicationBasicInfos"
	TableApplicationVersionInfo string = "ApplicationVersionInfos"
)

table contants

View Source
const (
	TableApplicationDeployInfo string = "ApplicationDeployInfos"
)

table contants

Variables

This section is empty.

Functions

func CreateAppDeploy

func CreateAppDeploy(deployInfo *ApplicationDeployInfo) error

func CreateApplication

func CreateApplication(appInfo *ApplicationBasicInfo) error

func CreateApplicationVersion

func CreateApplicationVersion(appInfo *ApplicationVersionInfo) error

func DeleteAppDeploy

func DeleteAppDeploy(deployInfo *ApplicationDeployInfo) error

func DeleteApplication

func DeleteApplication(appInfo *ApplicationBasicInfo) error

func DeleteApplicationVersion

func DeleteApplicationVersion(appInfo *ApplicationVersionInfo) error

func UpdateAppDeploy

func UpdateAppDeploy(deployInfo *ApplicationDeployInfo) error

func UpdateApplication

func UpdateApplication(appInfo *ApplicationBasicInfo) error

func UpdateApplicationVersion

func UpdateApplicationVersion(appInfo *ApplicationVersionInfo) error

Types

type ApplicationBasicInfo

type ApplicationBasicInfo struct {
	ID               int64     `gorm:"column:Id;primary_key"                                 json:"id"`
	AppName          string    `gorm:"uniqueIndex:user_app;column:AppName;size:255;not null" json:"appName"`
	ClusterId        int64     `gorm:"uniqueIndex:user_app;column:ClusterId;not null"        json:"clusterId"`
	GroupId          int64     `gorm:"uniqueIndex:user_app;column:GroupId;not null"          json:"groupId"`
	UserId           int64     `gorm:"uniqueIndex:user_app;column:UserId;not null"           json:"userId"`
	AppType          string    `gorm:"column:appType;size:128;not null"                      json:"appType"`
	FunctionType     string    `gorm:"column:FunctionType;size:1024;not null"                json:"functionType"`
	Description      string    `gorm:"column:Description;size:1024;not null"                 json:"description"`
	LatestPubVersion string    `gorm:"column:LatestPubVersion;size:255;not null"             json:"latestPubVersion"`
	CreateAt         time.Time `gorm:"column:CreateAt;not null"                              json:"createAt"`
	UpdateAt         time.Time `gorm:"column:UpdateAt;not null"                              json:"updateAt"`
}

func (ApplicationBasicInfo) TableName

func (ApplicationBasicInfo) TableName() string

type ApplicationDeployInfo

type ApplicationDeployInfo struct {
	ID                 int64     `gorm:"column:Id;primary_key"                                          json:"id"`
	ClusterId          int64     `gorm:"uniqueIndex:app_deploy;column:ClusterId;not null"               json:"clusterId"`
	GroupId            int64     `gorm:"uniqueIndex:app_deploy;column:GroupId;not null"                 json:"groupId"`
	UserId             int64     `gorm:"uniqueIndex:app_deploy;column:UserId;not null"                  json:"userId"`
	NodeName           string    `gorm:"uniqueIndex:app_deploy;column:NodeName;size:255;not null"       json:"nodeName"`
	UniqueName         string    `gorm:"column:UniqueName;size:255;not null"                            json:"uniqueName"`
	AppName            string    `gorm:"uniqueIndex:app_deploy;index:;column:AppName;size:255;not null" json:"appName"`
	Version            string    `gorm:"column:Version;size:255;not null"                               json:"version"`
	ContainerImagePath string    `gorm:"column:containerImagePath;size:255;not null"                    json:"containerImagePath"`
	Status             string    `gorm:"column:Status;size:255;not null"                                json:"status"`
	DeployUUID         string    `gorm:"column:DeployUUID;index:uuid;size:255;not null"                 json:"deployUUID"`
	ContainerUUID      string    `gorm:"column:ContainerUUID;size:255;not null"                         json:"containerUUID"`
	CreateAt           time.Time `gorm:"column:CreateAt;not null"                                       json:"createAt"`
	UpdateAt           time.Time `gorm:"column:UpdateAt;not null"                                       json:"updateAt"`
}

func (ApplicationDeployInfo) TableName

func (ApplicationDeployInfo) TableName() string

type ApplicationVersionInfo

type ApplicationVersionInfo struct {
	ID                    int64     `gorm:"column:Id;primary_key"                                    json:"id"`
	AppName               string    `gorm:"uniqueIndex:app_version;column:AppName;size:255;not null" json:"appName"`
	ClusterId             int64     `gorm:"uniqueIndex:app_version;column:ClusterId;not null"        json:"clusterId"`
	GroupId               int64     `gorm:"uniqueIndex:app_version;column:GroupId;not null"          json:"groupId"`
	UserId                int64     `gorm:"uniqueIndex:app_version;column:UserId;not null"           json:"userId"`
	Version               string    `gorm:"uniqueIndex:app_version;column:Version;size:255;not null" json:"version"`
	Status                string    `gorm:"column:Status;size:255;not null"                          json:"status"`
	ArchType              string    `gorm:"column:ArchType;size:64;not null"                         json:"archType"`
	ContainerImage        string    `gorm:"column:containerImage;size:255;not null"                  json:"containerImage"`
	ContainerImageVersion string    `gorm:"column:containerImageVersion;size:255;not null"           json:"containerImageVersion"`
	ContainerImagePath    string    `gorm:"column:containerImagePath;size:255;not null"              json:"containerImagePath"`
	CpuQuota              float32   `gorm:"column:CpuQuota;not null"                                 json:"cpuQuota"`
	MaxCpuQuota           float32   `gorm:"column:MaxCpuQuota;not null"                              json:"maxCpuQuota"`
	MemoryQuota           float32   `gorm:"column:MemoryQuota;not null"                              json:"memoryQuota"`
	MaxMemoryQuota        float32   `gorm:"column:MaxMemoryQuota;not null"                           json:"MaxMemoryQuota"`
	RestartPolicy         string    `gorm:"column:RestartPolicy;size:128;not null"                   json:"restartPolicy"`
	Network               string    `gorm:"column:Network;size:512;not null"                         json:"network"`
	CreateAt              time.Time `gorm:"column:CreateAt;not null"                                 json:"createAt"`
	UpdateAt              time.Time `gorm:"column:UpdateAt;not null"                                 json:"updateAt"`
	PublishAt             string    `gorm:"column:PublishAt"                                         json:"publishAt"`
	OfflineAt             string    `gorm:"column:OfflineAt"                                         json:"offlineAt"`
}

func (ApplicationVersionInfo) TableName

func (ApplicationVersionInfo) TableName() string

type PortMappingInfo

type PortMappingInfo struct {
	ContainerPort int `json:"containerPort"`
	HostPort      int `json:"hostPort"`
}

Jump to

Keyboard shortcuts

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