{"modulePath":"github.com/devx/cadvisor","version":"v0.23.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package utils\n\n## Functions\n\n```go\nfunc FileExists(file string) bool\n```\n\n```go\nfunc FixCpuMask(mask string, cores int) string\n```\nReturns a mask of all cores on the machine if the passed-in mask is empty.\n\n## Types\n\n```go\ntype TimedStore struct {\n\t// contains filtered or unexported fields\n}\n```\nA time-based buffer for ContainerStats. Holds information for a specific time period and/or a max number of items.\n\n```go\nfunc NewTimedStore(age time.Duration, maxItems int) *TimedStore\n```\nReturns a new thread-compatible TimedStore. A maxItems value of -1 means no limit.\n\n```go\nfunc (self *TimedStore) Add(timestamp time.Time, item interface{})\n```\nAdds an element to the start of the buffer (removing one from the end if necessary).\n\n```go\nfunc (self *TimedStore) Get(index int) interface{}\n```\nGets the element at the specified index. Note that elements are output in LIFO order.\n\n```go\nfunc (self *TimedStore) InTimeRange(start, end time.Time, maxResults int) []interface{}\n```\nReturns up to maxResult elements in the specified time period (inclusive). Results are from first to last. maxResults of -1 means no limit.\n\n```go\nfunc (self *TimedStore) Size() int\n```\n\n","path":"github.com/devx/cadvisor/utils","name":"utils","synopsis":"","isRedistributable":true}
