host

package
v0.0.0-...-1bf96ee Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	State_w string = "1001" // 未管理
	State_N string = "2002" // 正常
	State_D string = "3003" // 处理中

	MASTER_HOST_ID = "5f3761ed-008a-475b-ad37-8cc35c88402c"
)
View Source
const Spec_cd_osName = "1"

Variables

This section is empty.

Functions

This section is empty.

Types

type HostAttrDto

type HostAttrDto struct {
	dto.PageDto
	AttrId     string `json:"attrId" sql:"-"`
	HostId     string `json:"hostId" sql:"-"`
	SpecCd     string `json:"specCd" sql:"-"`
	Value      string `json:"value" `
	CreateTime string `json:"createTime" sql:"-"`
	StatusCd   string `json:"statusCd" sql:"-"`
}

type HostDiskDto

type HostDiskDto struct {
	DiskName string `json:"diskName"`
	Size     string `json:"size"`
	FreeSize string `json:"freeSize"`
	Dir      string `json:"dir"`
}

type HostDto

type HostDto struct {
	dto.PageDto
	HostId        string `json:"hostId" sql:"-"`
	GroupId       string `json:"groupId" sql:"-"`
	GroupName     string `json:"groupName" sql:"-"`
	Name          string `json:"name" `
	Ip            string `json:"ip" `
	Username      string `json:"username" `
	Passwd        string `json:"passwd" `
	Cpu           string `json:"cpu" `
	UseCpu        string `json:"useCpu"`
	Mem           string `json:"mem" `
	UseMem        string `json:"useMem"`
	Disk          string `json:"disk" `
	UseDisk       string `json:"useDisk"`
	TenantId      string `json:"tenantId" sql:"-"`
	CreateTime    string `json:"createTime" sql:"-"`
	StatusCd      string `json:"statusCd" sql:"-"`
	State         string `json:"state"`
	HeartbeatTime string `json:"heartbeatTime" sql:"-"`
	CurPath       string `json:"curPath" `
	FileName      string `json:"fileName"`
	FileGroupName string `json:"fileGroupName"`
	NewFileName   string `json:"newFileName"`
	FileContext   string `json:"fileContext"`
	Shell         string `json:"shell"`
	OsName        string `json:"osName" sql:"-"`
	Containers    []docker.Container
}

* 主机 实体

type HostGroupDto

type HostGroupDto struct {
	dto.PageDto
	GroupId     string `json:"groupId" sql:"-"`
	Name        string `json:"name" `
	Description string `json:"description" `
	TenantId    string `json:"tenantId" sql:"-"`
	CreateTime  string `json:"createTime" sql:"-"`
	StatusCd    string `json:"statusCd" sql:"-"`
}

* 主机组实体

type HostPortDto

type HostPortDto struct {
	Protocol    string `json:"protocol"`
	Port        string `json:"port"`
	ProgramName string `json:"programName"`
}

Jump to

Keyboard shortcuts

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