keysets

package
v0.1.2-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package keysets implements the storage.KeySets interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage stores keysets, backed by an SQL database.

func New

func New(db *sql.DB) (*Storage, error)

New returns a storage.KeySets client backed by an SQL table.

func (*Storage) Get

func (s *Storage) Get(ctx context.Context, instance int64, directoryID string) (*tink.KeysetHandle, error)

Get returns a stored keyset.

func (*Storage) Set

func (s *Storage) Set(ctx context.Context, instance int64, directoryID string, k *tink.KeysetHandle) error

Set saves a keyset.

Jump to

Keyboard shortcuts

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