identity

module
v0.0.0-...-769d491 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0

README

Identity

This is an implementation of the Identity service that is based on the Bolt key/value store. It implements the interface:

// Identity defines the API for services that track mappings between internal and external IDs
type Identity interface {
	BumpEra() error
	ReadEra() (era int64, err error)
	Associate(internalID string, externalID string) error
	GetExternal(internalID string) (string, error)
	GetInternal(externalID string) (string, error)
	PurgeExternal(externalID string) error
	PurgeInternal(internalID string) error
	RemoveExternal(externalID string) error
	RemoveInternal(internalID string) error
	Search(internalIDPrefix string) (px.List, error)
	Sweep(internalIDPrefix string) error
	Garbage() (px.List, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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