github.com/ferranbt/nomad@v0.9.3-0.20190607002617-85c449b7667c/plugins/drivers/cstructs.go (about)

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