Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigKey ¶
type ConfigKey struct { ConfigFile string `json:"configFile,omitempty"` ConfigKeys []string `json:"configKeys,omitempty"` ConfigAll bool `json:"configAll,omitempty"` }
ConfigKey describe which keys need to check from remote request
type ConfigProperty ¶
type ConfigProperty struct { ConfigFile string `json:"configFile,omitempty"` ConfigProperty map[string]string `json:"configProperty,omitempty"` ConfigAdd bool `json:"configAdd,omitempty"` ConfigDel bool `json:"configDel,omitempty"` }
ConfigProperty show property operations
type ContainerState ¶
type ContainerState struct { UsedMemMB float32 `json:"usedMemMB"` UsedCPU float32 `json:"usedCpu"` CgPath string `json:"cgPath"` PidList []int `json:"pidList"` StartTime time.Time `json:"start_time"` }
ContainerState describe nodemanager container state
type NMCapacity ¶
type NMCapacity struct { Vcores int64 `json:"vcores"` Millcores int64 `json:"-"` MemoryMB int64 `json:"memory-mb"` }
NMCapacity show nodemanager capacity
type NMContainer ¶
type NMContainer struct { ID string `json:"id"` State string `json:"state"` ExitCode int `json:"exitCode"` Diagnostics string `json:"diagnostics"` User string `json:"user"` TotalMemoryNeededMB int64 `json:"totalMemoryNeededMB"` TotalVCoresNeeded float32 `json:"totalVCoresNeeded"` UsedMemoryMB float32 `json:"usedMemoryMB"` UsedVCores float32 `json:"usedVCores"` ContainerLogsLink string `json:"containerLogsLink"` NodeID string `json:"nodeId"` LogDirs []string `json:"klogDirs"` LocalDirs []string `json:"localDirs"` IsAM bool `json:"isAm"` AppID string `json:"appId"` Pid int `json:"-"` StartTime time.Time `json:"-"` }
NMContainer show container info
func (NMContainer) String ¶
func (c NMContainer) String() string
String format nodemanager container struct
type NMContainerIds ¶
type NMContainerIds struct {
Cids []string `json:"cids"`
}
NMContainerIds describe nodemanager container id list
type NMContainers ¶
type NMContainers struct {
Container []NMContainer `json:"container"`
}
NMContainers describe nodemanager container list
type NMContainersState ¶
type NMContainersState struct {
Cstats map[string]*ContainerState `json:"cstats"`
}
NMContainersState describe nodemanager container state list
type NMContainersWrapper ¶
type NMContainersWrapper struct {
NMContainers `json:"containers"`
}
NMContainersWrapper show the container struct from nodemanager API
curl http://x.x.x.x:10001/ws/v1/node/containers
{ "containers": { "container":[ { "id": "xx", "state": "xx" }, { "id": "xx", "state": "xx" } ] } }
Click to show internal directories.
Click to hide internal directories.