Documentation ¶
Index ¶
- Variables
- func Allow(user model.User, res model.Resource, action resource.Action) bool
- func BootAllDevices()
- func Close()
- func CpuInfo() interface{}
- func CpuTimes() interface{}
- func DiskStatus() interface{}
- func Fingerprints() string
- func FlushDB() error
- func HostInfo() interface{}
- func InitDB(params map[string]interface{}) error
- func InitLog(levelStr string) error
- func IsDefaultAdminUser(user model.User) bool
- func IsRegistered() bool
- func MemoryStatus() interface{}
- func NewStore(db db.DB) store.Store
- func ResetDefaultAdminUser() error
- func SaveRegisterInfo(owner, code string) error
- func SetAllow(user model.User, res model.Resource, actions ...resource.Action) error
- func SetDeny(user model.User, res model.Resource, actions ...resource.Action) error
- func Start(ctx context.Context, logLevel string) error
- func Store() store.Store
- func SysStatus() interface{}
- func TransactionDo(fn func(store.Store) interface{}) interface{}
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 BootAllDevices ¶
func BootAllDevices()
func DiskStatus ¶
func DiskStatus() interface{}
func Fingerprints ¶
func Fingerprints() string
func IsDefaultAdminUser ¶
func IsRegistered ¶
func IsRegistered() bool
func MemoryStatus ¶
func MemoryStatus() interface{}
func ResetDefaultAdminUser ¶
func ResetDefaultAdminUser() error
func SaveRegisterInfo ¶
func TransactionDo ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.