store

package
v0.0.0-...-8232506 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Connect() error
	Disconnect() error

	InitSystemConfig(context.Context, string) error
	GetBootupState(context.Context) (models.Bootupstate, error)
	SetBootupState(context.Context, models.Bootupstate) error
	GetRootToken(context.Context) (string, error)
	SetRootToken(context.Context, string) error
	GetJWTToken(context.Context) (string, error)
	SetJWTToken(context.Context, string) error

	GetAllUsers(context.Context) ([]*models.User, error)
	GetUserByEmail(context.Context, string) (*models.User, error)
	GetUserByID(context.Context, string) (*models.User, error)
	CreateUser(context.Context, *models.User) error
	DeleteUserByIDs(context.Context, []string) (int, error)
	SetUserUsername(context.Context, string, string) error
	SetUserPassword(context.Context, string, string) error

	AddNodeToUser(context.Context, string, models.Node) (int, error)
}

Driver is an interface that every persistant storage adapter in the application must implement

Directories

Path Synopsis
drivers

Jump to

Keyboard shortcuts

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