Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatapointCache ¶
type DatapointCache struct {
// contains filtered or unexported fields
}
DatapointCache holds an up to date copy of datapoints pertaining to the cluster. It is updated whenever the HandleChange method is called with new K8s resources.
func NewDatapointCache ¶
func NewDatapointCache() *DatapointCache
NewDatapointCache creates a new clean cache
func (*DatapointCache) AllDatapoints ¶
func (dc *DatapointCache) AllDatapoints() []*datapoint.Datapoint
AllDatapoints returns all of the cached datapoints.
func (*DatapointCache) AllDimProperties ¶
func (dc *DatapointCache) AllDimProperties() []*atypes.DimProperties
AllDimProperties returns any dimension properties pertaining to the cluster
func (*DatapointCache) HandleChange ¶
func (dc *DatapointCache) HandleChange(oldObj, newObj runtime.Object)
HandleChange updates the datapoint cache when called with the old and new resources. Delete only includes the old, and adds only includes the new.
Click to show internal directories.
Click to hide internal directories.