types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"
		}
		]
	}
}

type NMStatus

type NMStatus struct {
	Pid         int    `json:"pid"`
	State       string `json:"state"`
	Description string `json:"description"`
}

NMStatus show nodemanager status

Jump to

Keyboard shortcuts

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