tag

package
v0.0.0-...-d93761d Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResolverServer

func NewResolverServer(resolver Resolver[object.Namespace]) tag.ResolverServer

func NewUpdaterServer

func NewUpdaterServer(updater Updater[object.GlobalReference, []byte]) tag.UpdaterServer

Types

type Resolver

type Resolver[TNamespace any] interface {
	ResolveTag(ctx context.Context, namespace TNamespace, tag *anypb.Any) (reference object.LocalReference, complete bool, err error)
}

type ResolverForTesting

type ResolverForTesting Resolver[object.Namespace]

type Store

type Store[TNamespace any, TReference any, TLease any] interface {
	Resolver[TNamespace]
	Updater[TReference, TLease]
}

func NewStore

func NewStore[TNamespace, TReference, TLease any](resolver Resolver[TNamespace], updater Updater[TReference, TLease]) Store[TNamespace, TReference, TLease]

NewStore is a helper function for creating a Store that is backed by separate instances of Resolver and Updater.

type Updater

type Updater[TReference any, TLease any] interface {
	UpdateTag(ctx context.Context, tag *anypb.Any, reference TReference, lease TLease, overwrite bool) error
}

type UpdaterForTesting

type UpdaterForTesting Updater[object.GlobalReference, any]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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