storage

package
v0.0.0-...-316996a Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadgerStorage

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

func NewBadgerStorage

func NewBadgerStorage() *BadgerStorage

func (*BadgerStorage) Delete

func (store *BadgerStorage) Delete(entityID string) error

func (*BadgerStorage) ListSubordinates

func (store *BadgerStorage) ListSubordinates(entityType string) (entities []string, err error)

func (*BadgerStorage) Load

func (store *BadgerStorage) Load() error

func (*BadgerStorage) Read

func (store *BadgerStorage) Read(entityID string) (info SubordinateInfo, err error)

func (*BadgerStorage) Write

func (store *BadgerStorage) Write(entityID string, info SubordinateInfo) error

type JWKStorageBackend

type JWKStorageBackend interface {
	Write(entityID string, info SubordinateInfo) error
	Read(entityID string) (SubordinateInfo, error)
	Delete(entityID string) error
	ListSubordinates(entityType string) ([]string, error)
	Load() error
}

type SubordinateInfo

type SubordinateInfo struct {
	JWKS       jwk.Set `json:"jwks"`
	EntityType string  `json:"entity_type"`
	EntityID   string  `json:"entity_id"`
}

func (*SubordinateInfo) UnmarshalJSON

func (info *SubordinateInfo) UnmarshalJSON(src []byte) error

Jump to

Keyboard shortcuts

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