knowdyStorage

package
v0.0.0-...-f284455 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConfigPath string `json:"config-path"`
}

func (*Config) New

func (c *Config) New() (storage.Storage, error)

type KnowdyStorage

type KnowdyStorage struct {
}

func New

func New(conf string) (*KnowdyStorage, error)

func (*KnowdyStorage) AuthCodeCreate

func (s *KnowdyStorage) AuthCodeCreate(a storage.AuthCode) error

func (*KnowdyStorage) AuthCodeDelete

func (s *KnowdyStorage) AuthCodeDelete(uid string) error

func (*KnowdyStorage) AuthCodeRead

func (s *KnowdyStorage) AuthCodeRead(uid string) (storage.AuthCode, error)

func (*KnowdyStorage) AuthRequestCreate

func (s *KnowdyStorage) AuthRequestCreate(a storage.AuthRequest) error

func (*KnowdyStorage) AuthRequestDelete

func (s *KnowdyStorage) AuthRequestDelete(uid string) error

func (*KnowdyStorage) AuthRequestRead

func (s *KnowdyStorage) AuthRequestRead(uid string) (storage.AuthRequest, error)

func (*KnowdyStorage) AuthRequestUpdate

func (s *KnowdyStorage) AuthRequestUpdate(uid string, updater func(a storage.AuthRequest) (storage.AuthRequest, error)) error

func (*KnowdyStorage) Close

func (s *KnowdyStorage) Close() error

func (*KnowdyStorage) ProviderCreate

func (s *KnowdyStorage) ProviderCreate(pid string) error

func (*KnowdyStorage) UserCreate

func (s *KnowdyStorage) UserCreate(pid string, c storage.Credentials) error

func (*KnowdyStorage) UserDelete

func (s *KnowdyStorage) UserDelete(pid string, uid string) error

func (*KnowdyStorage) UserRead

func (s *KnowdyStorage) UserRead(pid string, uid string) (storage.Credentials, error)

func (*KnowdyStorage) UserUpdate

func (s *KnowdyStorage) UserUpdate(pid string, uid string, updater func(c storage.Credentials) (storage.Credentials, error)) error

Jump to

Keyboard shortcuts

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