hosts

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteCloudClusterHosts = "delete from cloud_cluster_hosts"
View Source
const FindByIdCloudClusterHosts = SelectCloudClusterHosts + " where host_id={1}"
View Source
const InsertCloudClusterHosts = "insert into cloud_cluster_hosts"
View Source
const SelectCloudClusterHosts = "" /* 269-byte string literal not displayed */
View Source
const UpdateCloudClusterHosts = "update cloud_cluster_hosts"
View Source
const UpdateExclude = "HostIp,CreateTime,ClusterName"

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudClusterHosts

type CloudClusterHosts struct {
	//主机IP
	HostIp string
	//主机标签
	HostLabel string
	//状态
	Status string
	//容器数量
	ContainerNum int64
	//cpu剩余量
	CpuFree string
	//pod数量
	PodNum int
	//内存大小
	MemSize string
	//创建用户
	CreateUser string
	//最近修改时间
	LastModifyUser string
	//内存剩余量
	MemFree string
	//主机类型
	HostType string
	//cpu使用百分比
	CpuPercent string
	//是否有效
	IsValid int64
	//内使用百分比
	MemPercent string
	//
	HostId int64
	//创建方法
	CreateMethod string
	//cpu数量
	CpuNum int64
	//创建时间
	CreateTime string
	//最近修改时间
	LastModifyTime string
	// 集群名称
	ClusterName string
	// k8sAPi端口,只需要master有就行了
	ApiPort string
	// 镜像数量
	ImageNum int
}

type CloudClusterHostsDetail

type CloudClusterHostsDetail struct {
	CloudClusterHosts
	K8sVersion string
}

Jump to

Keyboard shortcuts

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