Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func FixCpuMask ¶
Returns a mask of all cores on the machine if the passed-in mask is empty.
Types ¶
type TimedStore ¶ added in v0.5.1
type TimedStore struct {
// contains filtered or unexported fields
}
A time-based buffer for ContainerStats. Holds information for a specific time period.
func NewTimedStore ¶ added in v0.5.1
func NewTimedStore(age time.Duration) *TimedStore
Returns a new thread-compatible TimedStore.
func (*TimedStore) Add ¶ added in v0.5.1
func (self *TimedStore) Add(timestamp time.Time, item interface{})
Adds an element to the start of the buffer (removing one from the end if necessary).
func (*TimedStore) Get ¶ added in v0.5.1
func (self *TimedStore) Get(index int) interface{}
Gets the element at the specified index. Note that elements are output in LIFO order.
func (*TimedStore) InTimeRange ¶ added in v0.5.1
func (self *TimedStore) InTimeRange(start, end time.Time, maxResults int) []interface{}
Returns up to maxResult elements in the specified time period (inclusive). Results are from first to last. maxResults of -1 means no limit. When first and last are specified, maxResults is ignored.
func (*TimedStore) Size ¶ added in v0.5.1
func (self *TimedStore) Size() int
Directories ¶
Path | Synopsis |
---|---|
procfs contains several low level functions to read information from /proc filesystem, and also provides some utility functions like JiffiesToDuration.
|
procfs contains several low level functions to read information from /proc filesystem, and also provides some utility functions like JiffiesToDuration. |
Click to show internal directories.
Click to hide internal directories.