bolt

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao struct {
	// contains filtered or unexported fields
}

Dao implements dao.Interface interface.

func New

func New(addr string) (*Dao, error)

New creates a Dao instance.

func (*Dao) ChartBatch

func (d *Dao) ChartBatch(names ...string) (charts []*model.Chart, err error)

func (*Dao) ChartCreate

func (d *Dao) ChartCreate(chart *model.Chart) (err error)

func (*Dao) ChartDelete

func (d *Dao) ChartDelete(name string) (err error)

func (*Dao) ChartGet

func (d *Dao) ChartGet(name string) (chart *model.Chart, err error)

func (*Dao) ChartList

func (d *Dao) ChartList() (charts []*model.Chart, err error)

func (*Dao) ChartUpdate

func (d *Dao) ChartUpdate(chart *model.Chart) (err error)

func (*Dao) Close

func (d *Dao) Close()

func (*Dao) DashboardGet

func (d *Dao) DashboardGet(name, key string) (dashboard *model.ChartDashboard, err error)

func (*Dao) DashboardUpdate

func (d *Dao) DashboardUpdate(dashboard *model.ChartDashboard) (err error)

func (*Dao) EventCreate

func (d *Dao) EventCreate(event *model.Event) (err error)

func (*Dao) EventList

func (d *Dao) EventList(args *model.EventListArgs) (events []*model.Event, count int, err error)

func (*Dao) Init

func (d *Dao) Init()

func (*Dao) PermDelete

func (d *Dao) PermDelete(resType, resID string) (err error)

func (*Dao) PermGet

func (d *Dao) PermGet(resType, resID string) (p *model.Perm, err error)

func (*Dao) PermUpdate

func (d *Dao) PermUpdate(perm *model.Perm) (err error)

func (*Dao) ProfileUpdateInfo

func (d *Dao) ProfileUpdateInfo(user *model.User) (err error)

func (*Dao) ProfileUpdatePassword

func (d *Dao) ProfileUpdatePassword(id, pwd, salt string) (err error)

func (*Dao) RegistryCreate

func (d *Dao) RegistryCreate(registry *model.Registry) (err error)

func (*Dao) RegistryDelete

func (d *Dao) RegistryDelete(id string) (err error)

func (*Dao) RegistryGet

func (d *Dao) RegistryGet(id string) (registry *model.Registry, err error)

func (*Dao) RegistryList

func (d *Dao) RegistryList() (registries []*model.Registry, err error)

func (*Dao) RegistryUpdate

func (d *Dao) RegistryUpdate(registry *model.Registry) (err error)

func (*Dao) RoleCreate

func (d *Dao) RoleCreate(role *model.Role) (err error)

func (*Dao) RoleDelete

func (d *Dao) RoleDelete(id string) (err error)

func (*Dao) RoleGet

func (d *Dao) RoleGet(id string) (role *model.Role, err error)

func (*Dao) RoleList

func (d *Dao) RoleList() (roles []*model.Role, err error)

func (*Dao) RoleUpdate

func (d *Dao) RoleUpdate(role *model.Role) (err error)

func (*Dao) SessionGet

func (d *Dao) SessionGet(token string) (session *model.Session, err error)

func (*Dao) SessionUpdate

func (d *Dao) SessionUpdate(session *model.Session) (err error)

func (*Dao) SettingGet

func (d *Dao) SettingGet() (setting *model.Setting, err error)

func (*Dao) SettingUpdate

func (d *Dao) SettingUpdate(setting *model.Setting) (err error)

func (*Dao) StackCreate

func (d *Dao) StackCreate(stack *model.Stack) (err error)

func (*Dao) StackDelete

func (d *Dao) StackDelete(name string) (err error)

func (*Dao) StackGet

func (d *Dao) StackGet(name string) (stack *model.Stack, err error)

func (*Dao) StackList

func (d *Dao) StackList() (stacks []*model.Stack, err error)

func (*Dao) StackMigrate

func (d *Dao) StackMigrate()

StackMigrate migrates stacks from old archive collection.

func (*Dao) StackUpdate

func (d *Dao) StackUpdate(stack *model.Stack) (err error)

func (*Dao) TemplateCreate

func (d *Dao) TemplateCreate(tpl *model.Template) (err error)

func (*Dao) TemplateDelete

func (d *Dao) TemplateDelete(id string) (err error)

func (*Dao) TemplateGet

func (d *Dao) TemplateGet(id string) (tpl *model.Template, err error)

func (*Dao) TemplateList

func (d *Dao) TemplateList(args *model.TemplateListArgs) (tpls []*model.Template, count int, err error)

func (*Dao) TemplateUpdate

func (d *Dao) TemplateUpdate(tpl *model.Template) (err error)

func (*Dao) UserBlock

func (d *Dao) UserBlock(id string, blocked bool) (err error)

func (*Dao) UserCount

func (d *Dao) UserCount() (count int, err error)

func (*Dao) UserCreate

func (d *Dao) UserCreate(user *model.User) (err error)

func (*Dao) UserDelete

func (d *Dao) UserDelete(id string) (err error)

func (*Dao) UserGetByID

func (d *Dao) UserGetByID(id string) (user *model.User, err error)

func (*Dao) UserGetByName

func (d *Dao) UserGetByName(loginName string) (user *model.User, err error)

func (*Dao) UserList

func (d *Dao) UserList(args *model.UserListArgs) (users []*model.User, count int, err error)

func (*Dao) UserUpdate

func (d *Dao) UserUpdate(user *model.User) (err error)

type Value

type Value []byte

func (Value) Unmarshal

func (v Value) Unmarshal(i interface{}) error

Jump to

Keyboard shortcuts

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