keystore

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DenyAllKeystore

type DenyAllKeystore struct{}

func (DenyAllKeystore) Authorize

func (DenyAllKeystore) Authorize(key string) (string, bool)

type Keystore

type Keystore interface {
	// Authorize checks that the caller's key
	// matching the stored one(s).
	Authorize(key string) (who string, ok bool)
}

func NewFsKeystore

func NewFsKeystore(root string) (Keystore, error)

Jump to

Keyboard shortcuts

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