kubernetes/vendor/github.com/google/cadvisor/utils/timed_store.go

type timedStoreDataSlice

func (t timedStoreDataSlice) Less(i, j int) bool {}

func (t timedStoreDataSlice) Len() int {}

func (t timedStoreDataSlice) Swap(i, j int) {}

type TimedStore

type timedStoreData

// Returns a new thread-compatible TimedStore.
// A maxItems value of -1 means no limit.
func NewTimedStore(age time.Duration, maxItems int) *TimedStore {}

// Adds an element to the start of the buffer (removing one from the end if necessary).
func (s *TimedStore) Add(timestamp time.Time, item interface{}

// Returns up to maxResult elements in the specified time period (inclusive).
// Results are from first to last. maxResults of -1 means no limit.
func (s *TimedStore) InTimeRange(start, end time.Time, maxResults int) []interface{}

// Gets the element at the specified index. Note that elements are output in LIFO order.
func (s *TimedStore) Get(index int) interface{}

// Gets the data at the specified index. Note that elements are output in LIFO order.
func (s *TimedStore) getData(index int) timedStoreData {}

func (s *TimedStore) Size() int {}