Documentation
¶
Index ¶
- type BatchContainerLogsRequest
- type ContainerCreateRequest
- type ContainerLogsRequest
- type ContainerStopRequest
- type ControlBy
- type EtcdRequest
- type ImagesPullRequest
- type LogSearchReqest
- type LoginRequest
- type MenuRequest
- type MenuRouterReqest
- type Model
- type ModelTime
- type RoleMenuRequest
- type RoleRequest
- type SearchRequest
- type UserRoleRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchContainerLogsRequest ¶
type BatchContainerLogsRequest struct {
ID []string `json:"id"`
}
type ContainerCreateRequest ¶
type ContainerCreateRequest struct {
Image string `json:"image"` // 指定要使用的镜像
Cmd []string `json:"cmd"` // 指定容器启动时要执行的命令
Hostname string `json:"hostname"` // 主机名
HostIP string `json:"hostIP"` // 容器绑定IP
LocalProt string `json:"localProt"` // 容器绑定端口
HostPort string `json:"hostPort"` // 宿主机映射端口
PolicyName string `json:"policyName"` // 重启策略
ContainerName string `json:"containerName"` // 容器名称
}
type ContainerStopRequest ¶
type ContainerStopRequest struct {
Ids string `json:"ids"`
}
type ControlBy ¶
type ControlBy struct {
CreateBy uint32 `json:"create_by" gorm:"not null;index;default:0;comment:创建者: 填写用户ID"`
UpdateBy uint32 `json:"update_by" gorm:"not null;index;default:0;comment:更新者: 填写用户ID"`
}
func (*ControlBy) SetCreateBy ¶
SetCreateBy 设置创建人ID
func (*ControlBy) SetUpdateBy ¶
SetUpdateBy 设置更新人ID
type EtcdRequest ¶
type ImagesPullRequest ¶
type ImagesPullRequest struct {
Refstr string `json:"refstr"`
}
type LogSearchReqest ¶
type LogSearchReqest struct {
SearchRequest
StartTime string `form:"start_time,omitempty"`
EndTime string `form:"end_time,omitempty"`
}
type LoginRequest ¶
type MenuRequest ¶
type MenuRequest struct {
MenuId uint32 `json:"menu_id,omitempty"`
MenuName string `json:"menu_name,omitempty"`
MenuTitle string `json:"menu_title,omitempty"`
MenuIcon string `json:"menu_icon,omitempty"`
MenuPath string `json:"menu_path,omitempty"`
PathGroup string `json:"path_group,omitempty"`
MenuType string `json:"menu_type,omitempty"`
MenuMethod string `json:"menu_method,omitempty"`
Permission string `json:"permission,omitempty"`
ParentId uint32 `json:"parent_id,omitempty"`
Component string `json:"component,omitempty"`
MenuSort uint8 `json:"menu_sort,omitempty"`
Visible uint8 `json:"visible,omitempty"`
IsFrame uint8 `json:"is_frame,omitempty"`
NoCache uint8 `json:"no_cache,omitempty"`
}
type MenuRouterReqest ¶
type MenuRouterReqest struct {
SearchKey string `form:"search_key,omitempty"`
}
type Model ¶
type Model struct {
Id uint32 `json:"id" gorm:"primaryKey;autoIncrement;comment:唯一编号"`
}
type RoleMenuRequest ¶
type RoleRequest ¶
type SearchRequest ¶
type UserRoleRequest ¶
Click to show internal directories.
Click to hide internal directories.