store

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL