store

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	// ReadyToStore is a list of store cache records that are ready to be stored on specific SVID Store
	ReadyToStore() []*storecache.Record
	// HandledRecord sets a revision to record on cache
	HandledRecord(entry *common.RegistrationEntry, revision int64)
}

type Config

type Config struct {
	Clk         clock.Clock
	Log         logrus.FieldLogger
	TrustDomain spiffeid.TrustDomain
	Cache       Cache
	Catalog     catalog.Catalog
	Metrics     telemetry.Metrics
}

type SVIDStoreService

type SVIDStoreService struct {
	// contains filtered or unexported fields
}

func New

func New(c *Config) *SVIDStoreService

func (*SVIDStoreService) Run

func (s *SVIDStoreService) Run(ctx context.Context) error

Run starts SVID Store service

func (*SVIDStoreService) SetStoreFinishedHook

func (s *SVIDStoreService) SetStoreFinishedHook(storeFinished chan struct{})

SetStoreFinishedHook used for testing only

Jump to

Keyboard shortcuts

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