Documentation ¶
Index ¶
Constants ¶
View Source
const ( CgroupResource = "cgroup/groups" CgroupPathParamKey = "cgroup_user_path" SystemComputeResource = "system/compute" SystemMemoryResource = "system/memory" SystemIOResource = "system/io" SystemNetResource = "system/network" )
Variables ¶
View Source
var DefaultClient = New()
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetSystemStats ¶
func (c *Client) GetSystemStats(kind SystemResourceKind) ([]byte, error)
type MalachiteClient ¶
type MalachiteClient interface { GetCgroupStats(cgroup string) ([]byte, error) GetSystemStats(kind SystemResourceKind) ([]byte, error) }
func New ¶
func New() MalachiteClient
type SystemResourceKind ¶
type SystemResourceKind int
const ( Compute SystemResourceKind = iota Memory IO Net )
Click to show internal directories.
Click to hide internal directories.