Documentation
¶
Index ¶
- func InitClaimContext(ctx context.Context, op string, claim backend.ClaimObject) context.Context
- func InitIndexContext(ctx context.Context, op string, idx client.Object) context.Context
- func NewClaimInvoker(be Backend) options.BackendInvoker
- func NewIndexInvoker(be Backend) options.BackendInvoker
- type Backend
- type BackendConfig
- type Cache
- type StorageProviders
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitClaimContext ¶
func InitIndexContext ¶
func NewClaimInvoker ¶
func NewClaimInvoker(be Backend) options.BackendInvoker
func NewIndexInvoker ¶
func NewIndexInvoker(be Backend) options.BackendInvoker
Types ¶
type Backend ¶
type Backend interface {
// AddStorageInterfaces
AddStorageInterfaces(bestorage any) error
// CreateIndex creates a backend index
CreateIndex(ctx context.Context, obj runtime.Object) error
// DeleteIndex deletes a backend index
DeleteIndex(ctx context.Context, obj runtime.Object) error
// Claim claims an entry in the backend index
Claim(ctx context.Context, obj runtime.Object, recursion bool) error
// Release a claim in the backend
Release(ctx context.Context, obj runtime.Object, recursion bool) error
// PrintEntries prints the entries of the cache
PrintEntries(ctx context.Context, index string)
}
type BackendConfig ¶
type Cache ¶
type StorageProviders ¶
type StorageProviders[T1 any] interface { GetIndexStorageProvider() *rest.StorageProvider GetClaimStorageProvider() *rest.StorageProvider GetEntryStorageProvider() *rest.StorageProvider ApplyStorageToBackend(ctx context.Context, apiServer *builder.Server) error GetBackend() Backend }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.