app

package
v0.0.0-...-ae4999c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config *config.Config

	Ctx context.Context

	DB db.WithTransaction

	Event      = EventBus.New()
	LogDBStore = bolt.New()

	StatsDB = statistics.New()
)

Functions

func Allow

func Allow(user model.User, res model.Resource, action resource.Action) bool

func BootAllDevices

func BootAllDevices()

func Close

func Close()

func CpuInfo

func CpuInfo() interface{}

func CpuTimes

func CpuTimes() interface{}

func DiskStatus

func DiskStatus() interface{}

func Fingerprints

func Fingerprints() string

func FlushDB

func FlushDB() error

func HostInfo

func HostInfo() interface{}

func InitDB

func InitDB(params map[string]interface{}) error

func InitLog

func InitLog(levelStr string) error

func IsDefaultAdminUser

func IsDefaultAdminUser(user model.User) bool

func IsRegistered

func IsRegistered() bool

func MemoryStatus

func MemoryStatus() interface{}

func NewStore

func NewStore(db db.DB) store.Store

func ResetDefaultAdminUser

func ResetDefaultAdminUser() error

func SaveRegisterInfo

func SaveRegisterInfo(owner, code string) error

func SetAllow

func SetAllow(user model.User, res model.Resource, actions ...resource.Action) error

func SetDeny

func SetDeny(user model.User, res model.Resource, actions ...resource.Action) error

func Start

func Start(ctx context.Context, logLevel string) error

func Store

func Store() store.Store

func SysStatus

func SysStatus() interface{}

func TransactionDo

func TransactionDo(fn func(store.Store) interface{}) interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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