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
Click to show internal directories.
Click to hide internal directories.