Documentation ¶
Index ¶
- func NewStoreCounter(resManager manager.ReadOnlyResourceManager, metrics metrics.Metrics) (*storeCounter, error)
- type MeteredStore
- func (m *MeteredStore) Create(ctx context.Context, resource model.Resource, ...) error
- func (m *MeteredStore) Delete(ctx context.Context, resource model.Resource, ...) error
- func (m *MeteredStore) Get(ctx context.Context, resource model.Resource, ...) error
- func (m *MeteredStore) List(ctx context.Context, list model.ResourceList, ...) error
- func (m *MeteredStore) Update(ctx context.Context, resource model.Resource, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStoreCounter ¶
func NewStoreCounter(resManager manager.ReadOnlyResourceManager, metrics metrics.Metrics) (*storeCounter, error)
Types ¶
type MeteredStore ¶
type MeteredStore struct {
// contains filtered or unexported fields
}
func NewMeteredStore ¶
func NewMeteredStore(delegate store.ResourceStore, metrics core_metrics.Metrics) (*MeteredStore, error)
func (*MeteredStore) Create ¶
func (m *MeteredStore) Create(ctx context.Context, resource model.Resource, optionsFunc ...store.CreateOptionsFunc) error
func (*MeteredStore) Delete ¶
func (m *MeteredStore) Delete(ctx context.Context, resource model.Resource, optionsFunc ...store.DeleteOptionsFunc) error
func (*MeteredStore) Get ¶
func (m *MeteredStore) Get(ctx context.Context, resource model.Resource, optionsFunc ...store.GetOptionsFunc) error
func (*MeteredStore) List ¶
func (m *MeteredStore) List(ctx context.Context, list model.ResourceList, optionsFunc ...store.ListOptionsFunc) error
func (*MeteredStore) Update ¶
func (m *MeteredStore) Update(ctx context.Context, resource model.Resource, optionsFunc ...store.UpdateOptionsFunc) error
Click to show internal directories.
Click to hide internal directories.