Documentation
¶
Overview ¶
@Author: LinkLeong link@icewhale.com
*@Date: 2022-05-13 18:15:46 *@LastEditors: LinkLeong *@LastEditTime: 2022-07-13 10:56:34 *@FilePath: /CasaOS/service/model/o_container.go *@Description: *@Website: https://www.casaos.io *Copyright (c) 2022 by icewhale, All Rights Reserved.
Index ¶
Constants ¶
View Source
const CONTAINERTABLENAME = "o_container"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppListDBModel ¶
type AppListDBModel struct { CustomID string `gorm:"column:custom_id;primary_key" json:"custom_id"` Title string `json:"title"` // ScreenshotLink model.Strings `gorm:"type:json" json:"screenshot_link,omitempty"` ScreenshotLink string `json:"screenshot_link"` Slogan string `json:"slogan"` Description string `json:"description"` // Tags model.Strings `gorm:"type:json" json:"tags"` Tags string `json:"tags"` Icon string `json:"icon"` Version string `json:"version"` ContainerID string `json:"container_id,omitempty"` Image string `json:"image,omitempty"` Index string `json:"index"` CreatedAt string `gorm:"<-:create;autoCreateTime" json:"created_at"` UpdatedAt string `gorm:"<-:create;<-:update;autoUpdateTime" json:"updated_at"` // Port string `json:"port,omitempty"` PortMap string `json:"port_map"` Label string `json:"label"` EnableUPNP bool `json:"enable_upnp"` Envs string `json:"envs"` Ports string `json:"ports"` Volumes string `json:"volumes"` Devices string `json:"devices"` // Envs []model.Env `json:"envs"` // Ports []model.PortMap `gorm:"type:json" json:"ports"` // Volumes []model.PathMap `gorm:"type:json" json:"volumes"` // Devices []model.PathMap `gorm:"type:json" json:"device"` Position bool `json:"position"` NetModel string `json:"net_model"` Memory int64 `json:"memory"` Restart string `json:"restart"` // Rely model.MapStrings `gorm:"type:json" json:"rely"` //[{"mysql":"id"},{"mysql":"id"}] Origin string `json:"origin"` HostName string `json:"host_name"` Privileged bool `json:"privileged"` CapAdd string `json:"cap_add"` Cmd string `gorm:"type:json" json:"cmd"` }
Soon to be removed
func (*AppListDBModel) TableName ¶
func (p *AppListDBModel) TableName() string
type MyAppList ¶
type MyAppList struct { ID string `json:"id"` Name string `json:"name"` Icon string `json:"icon"` State string `json:"state"` CustomID string `gorm:"column:custom_id;primary_key" json:"custom_id"` Index string `json:"index"` // Order string `json:"order"` Port string `json:"port"` Slogan string `json:"slogan"` Type string `json:"type"` // Rely model.MapStrings `json:"rely"` //[{"mysql":"id"},{"mysql":"id"}] Image string `json:"image"` Volumes string `json:"volumes"` Latest bool `json:"latest"` Host string `json:"host"` Protocol string `json:"protocol"` }
Click to show internal directories.
Click to hide internal directories.