forked from hashicorp/nomad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cstructs.go
29 lines (21 loc) · 1011 Bytes
/
cstructs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package drivers
import (
cstructs "github.com/hashicorp/nomad/client/structs"
)
// This files present an indirection layer to client structs used by drivers,
// and represent the public interface for drivers, as client interfaces are
// internal and subject to change.
// MemoryStats holds memory usage related stats
type MemoryStats = cstructs.MemoryStats
// CpuStats holds cpu usage related stats
type CpuStats = cstructs.CpuStats
// ResourceUsage holds information related to cpu and memory stats
type ResourceUsage = cstructs.ResourceUsage
// TaskResourceUsage holds aggregated resource usage of all processes in a Task
// and the resource usage of the individual pids
type TaskResourceUsage = cstructs.TaskResourceUsage
// CheckBufSize is the size of the buffer that is used for job output
const CheckBufSize = cstructs.CheckBufSize
// DriverStatsNotImplemented is the error to be returned if a driver doesn't
// implement stats.
var DriverStatsNotImplemented = cstructs.DriverStatsNotImplemented