keystore

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is a service for storing and retrieving public keys.

func ProvideService

func ProvideService(kv kvstore.KVStore) *Service

func (*Service) Del

func (s *Service) Del(ctx context.Context, key string) error

func (*Service) Get

func (s *Service) Get(ctx context.Context, key string) (string, bool, error)

func (*Service) GetLastUpdated

func (s *Service) GetLastUpdated(ctx context.Context) (*time.Time, error)

func (*Service) ListKeys

func (s *Service) ListKeys(ctx context.Context) ([]string, error)

func (*Service) Set

func (s *Service) Set(ctx context.Context, key string, value string) error

func (*Service) SetLastUpdated

func (s *Service) SetLastUpdated(ctx context.Context) error

Jump to

Keyboard shortcuts

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