bolt

package
v0.0.0-...-3567eeb Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Chart     = "chart"
	Dashboard = "dashboard"
)
View Source
const Event = "event"
View Source
const Registry = "registry"
View Source
const Role = "role"
View Source
const Session = "session"
View Source
const Setting = "setting"
View Source
const Stack = "stack"
View Source
const User = "user"

Variables

View Source
var ErrNoRecords = errors.New("no records")

Functions

func New

func New(addr string) (dao.Interface, error)

New creates a Dao instance.

Types

type Dao

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

Dao implements dao.Interface interface.

func (*Dao) ChartCreate

func (d *Dao) ChartCreate(ctx context.Context, chart *dao.Chart) (err error)

func (*Dao) ChartDelete

func (d *Dao) ChartDelete(ctx context.Context, name string) (err error)

func (*Dao) ChartGet

func (d *Dao) ChartGet(ctx context.Context, name string) (chart *dao.Chart, err error)

func (*Dao) ChartGetBatch

func (d *Dao) ChartGetBatch(ctx context.Context, ids ...string) (charts []*dao.Chart, err error)

func (*Dao) ChartSearch

func (d *Dao) ChartSearch(ctx context.Context, args *dao.ChartSearchArgs) (charts []*dao.Chart, count int, err error)

func (*Dao) ChartUpdate

func (d *Dao) ChartUpdate(ctx context.Context, chart *dao.Chart) (err error)

func (*Dao) DashboardGet

func (d *Dao) DashboardGet(ctx context.Context, name, key string) (dashboard *dao.Dashboard, err error)

func (*Dao) DashboardUpdate

func (d *Dao) DashboardUpdate(ctx context.Context, dashboard *dao.Dashboard) (err error)

func (*Dao) EventCreate

func (d *Dao) EventCreate(ctx context.Context, event *dao.Event) (err error)

func (*Dao) EventPrune

func (d *Dao) EventPrune(ctx context.Context, end time.Time) (err error)

func (*Dao) EventSearch

func (d *Dao) EventSearch(ctx context.Context, args *dao.EventSearchArgs) (events []*dao.Event, count int, err error)

func (*Dao) RegistryCreate

func (d *Dao) RegistryCreate(ctx context.Context, registry *dao.Registry) (err error)

func (*Dao) RegistryDelete

func (d *Dao) RegistryDelete(ctx context.Context, id string) (err error)

func (*Dao) RegistryGet

func (d *Dao) RegistryGet(ctx context.Context, id string) (registry *dao.Registry, err error)

func (*Dao) RegistryGetAll

func (d *Dao) RegistryGetAll(ctx context.Context) (registries []*dao.Registry, err error)

func (*Dao) RegistryGetByURL

func (d *Dao) RegistryGetByURL(ctx context.Context, url string) (registry *dao.Registry, err error)

func (*Dao) RegistryUpdate

func (d *Dao) RegistryUpdate(ctx context.Context, registry *dao.Registry) (err error)

func (*Dao) RoleCreate

func (d *Dao) RoleCreate(ctx context.Context, role *dao.Role) (err error)

func (*Dao) RoleDelete

func (d *Dao) RoleDelete(ctx context.Context, id string) (err error)

func (*Dao) RoleGet

func (d *Dao) RoleGet(ctx context.Context, id string) (role *dao.Role, err error)

func (*Dao) RoleSearch

func (d *Dao) RoleSearch(ctx context.Context, name string) (roles []*dao.Role, err error)

func (*Dao) RoleUpdate

func (d *Dao) RoleUpdate(ctx context.Context, role *dao.Role) (err error)

func (*Dao) SessionCreate

func (d *Dao) SessionCreate(ctx context.Context, session *dao.Session) (err error)

func (*Dao) SessionGet

func (d *Dao) SessionGet(ctx context.Context, id string) (session *dao.Session, err error)

func (*Dao) SessionPrune

func (d *Dao) SessionPrune()

SessionPrune cleans up expired logs.

func (*Dao) SessionUpdate

func (d *Dao) SessionUpdate(ctx context.Context, session *dao.Session) (err error)

func (*Dao) SessionUpdateDirty

func (d *Dao) SessionUpdateDirty(ctx context.Context, userID string, roleID string) (err error)

func (*Dao) SessionUpdateExpiry

func (d *Dao) SessionUpdateExpiry(ctx context.Context, id string, expiry time.Time) (err error)

func (*Dao) SettingGet

func (d *Dao) SettingGet(ctx context.Context, id string) (setting *dao.Setting, err error)

func (*Dao) SettingGetAll

func (d *Dao) SettingGetAll(ctx context.Context) (settings []*dao.Setting, err error)

func (*Dao) SettingUpdate

func (d *Dao) SettingUpdate(ctx context.Context, setting *dao.Setting) (err error)

func (*Dao) StackCreate

func (d *Dao) StackCreate(ctx context.Context, stack *dao.Stack) (err error)

func (*Dao) StackDelete

func (d *Dao) StackDelete(ctx context.Context, name string) (err error)

func (*Dao) StackGet

func (d *Dao) StackGet(ctx context.Context, name string) (stack *dao.Stack, err error)

func (*Dao) StackGetAll

func (d *Dao) StackGetAll(ctx context.Context) (stacks []*dao.Stack, err error)

func (*Dao) StackUpdate

func (d *Dao) StackUpdate(ctx context.Context, stack *dao.Stack) (err error)

func (*Dao) Upgrade

func (d *Dao) Upgrade(ctx context.Context) error

func (*Dao) UserCount

func (d *Dao) UserCount(ctx context.Context) (count int, err error)

func (*Dao) UserCreate

func (d *Dao) UserCreate(ctx context.Context, user *dao.User) (err error)

func (*Dao) UserDelete

func (d *Dao) UserDelete(ctx context.Context, id string) (err error)

func (*Dao) UserGet

func (d *Dao) UserGet(ctx context.Context, id string) (user *dao.User, err error)

func (*Dao) UserGetByName

func (d *Dao) UserGetByName(ctx context.Context, loginName string) (user *dao.User, err error)

func (*Dao) UserGetByToken

func (d *Dao) UserGetByToken(ctx context.Context, token string) (user *dao.User, err error)

func (*Dao) UserSearch

func (d *Dao) UserSearch(ctx context.Context, args *dao.UserSearchArgs) (users []*dao.User, count int, err error)

func (*Dao) UserUpdate

func (d *Dao) UserUpdate(ctx context.Context, user *dao.User) (err error)

func (*Dao) UserUpdatePassword

func (d *Dao) UserUpdatePassword(ctx context.Context, user *dao.User) (err error)

func (*Dao) UserUpdateProfile

func (d *Dao) UserUpdateProfile(ctx context.Context, user *dao.User) (err error)

func (*Dao) UserUpdateStatus

func (d *Dao) UserUpdateStatus(ctx context.Context, user *dao.User) (err error)

Source Files

  • bolt.go
  • chart.go
  • event.go
  • registry.go
  • role.go
  • session.go
  • setting.go
  • stack.go
  • user.go

Jump to

Keyboard shortcuts

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