Documentation ¶
Index ¶
- type IXMetricsStore
- type XMetricsStore
- func (s *XMetricsStore) Add(obj interface{}) error
- func (s *XMetricsStore) ConterAndType() (schema.GroupVersionResource, int)
- func (s *XMetricsStore) Delete(obj interface{}) error
- func (s *XMetricsStore) Get(obj interface{}) (item interface{}, exists bool, err error)
- func (s *XMetricsStore) GetByKey(key string) (item interface{}, exists bool, err error)
- func (s *XMetricsStore) GetCallbacUid() string
- func (s *XMetricsStore) GetCallback() (string, func() (schema.GroupVersionResource, int))
- func (s *XMetricsStore) List() []interface{}
- func (s *XMetricsStore) ListKeys() []string
- func (s *XMetricsStore) Replace(list []interface{}, _ string) error
- func (s *XMetricsStore) Resync() error
- func (s *XMetricsStore) Update(obj interface{}) error
- func (s *XMetricsStore) WriteAll(w io.Writer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IXMetricsStore ¶
type IXMetricsStore interface { cache.Store WriteAll(io.Writer) GetCallbacUid() string GetCallback() (string, func() (schema.GroupVersionResource, int)) }
func NewXMetricsStore ¶
func NewXMetricsStore(headers []string, generateFunc func(interface{}) []metric.FamilyInterface, ctx context.Context, client dynamic.Interface, namespace string, gvr schema.GroupVersionResource, metricName string) IXMetricsStore
type XMetricsStore ¶
type XMetricsStore struct {
// contains filtered or unexported fields
}
func (*XMetricsStore) Add ¶
func (s *XMetricsStore) Add(obj interface{}) error
func (*XMetricsStore) ConterAndType ¶
func (s *XMetricsStore) ConterAndType() (schema.GroupVersionResource, int)
func (*XMetricsStore) Delete ¶
func (s *XMetricsStore) Delete(obj interface{}) error
func (*XMetricsStore) Get ¶
func (s *XMetricsStore) Get(obj interface{}) (item interface{}, exists bool, err error)
Get implements the Get method of the store interface.
func (*XMetricsStore) GetByKey ¶
func (s *XMetricsStore) GetByKey(key string) (item interface{}, exists bool, err error)
GetByKey implements the GetByKey method of the store interface.
func (*XMetricsStore) GetCallbacUid ¶
func (s *XMetricsStore) GetCallbacUid() string
func (*XMetricsStore) GetCallback ¶
func (s *XMetricsStore) GetCallback() (string, func() (schema.GroupVersionResource, int))
func (*XMetricsStore) List ¶
func (s *XMetricsStore) List() []interface{}
List implements the List method of the store interface.
func (*XMetricsStore) ListKeys ¶
func (s *XMetricsStore) ListKeys() []string
ListKeys implements the ListKeys method of the store interface.
func (*XMetricsStore) Replace ¶
func (s *XMetricsStore) Replace(list []interface{}, _ string) error
Replace will delete the contents of the store, using instead the given list.
func (*XMetricsStore) Resync ¶
func (s *XMetricsStore) Resync() error
Resync implements the Resync method of the store interface.
func (*XMetricsStore) Update ¶
func (s *XMetricsStore) Update(obj interface{}) error
func (*XMetricsStore) WriteAll ¶
func (s *XMetricsStore) WriteAll(w io.Writer)
WriteAll writes all metrics of the store into the given writer, zipped with the help text of each metric family.
Click to show internal directories.
Click to hide internal directories.