contextstore

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

contextstore allows to manage and track context per controllers, stored at the different levels of the controller hierarchy: APIServiceExport - schemas and permissionClaims - each schema runs its own gvr controller and each permissionClaim runs its own controller. Context are stored at the APIServiceExport level.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key string

func NewKey

func NewKey(exportNamespace, exportName string, suffix ...string) Key

func (Key) String

func (k Key) String() string

type Store

type Store interface {
	Get(key Key) (SyncContext, bool)
	ListPrefixed(prefix Key) []SyncContext
	Set(key Key, value SyncContext)
	Delete(key Key)
	BulkDeletePrefixed(prefix Key) []SyncContext
}

func New

func New() Store

type SyncContext

type SyncContext struct {
	Generation int64
	Cancel     func()
	// contains filtered or unexported fields
}

func (*SyncContext) Key

func (c *SyncContext) Key() Key

Jump to

Keyboard shortcuts

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