Documentation
¶
Index ¶
- Constants
- Variables
- func New(addr string) (dao.Interface, error)
- type Dao
- func (d *Dao) ChartCreate(ctx context.Context, chart *dao.Chart) (err error)
- func (d *Dao) ChartDelete(ctx context.Context, name string) (err error)
- func (d *Dao) ChartGet(ctx context.Context, name string) (chart *dao.Chart, err error)
- func (d *Dao) ChartGetBatch(ctx context.Context, ids ...string) (charts []*dao.Chart, err error)
- func (d *Dao) ChartSearch(ctx context.Context, args *dao.ChartSearchArgs) (charts []*dao.Chart, count int, err error)
- func (d *Dao) ChartUpdate(ctx context.Context, chart *dao.Chart) (err error)
- func (d *Dao) DashboardGet(ctx context.Context, name, key string) (dashboard *dao.Dashboard, err error)
- func (d *Dao) DashboardUpdate(ctx context.Context, dashboard *dao.Dashboard) (err error)
- func (d *Dao) EventCreate(ctx context.Context, event *dao.Event) (err error)
- func (d *Dao) EventPrune(ctx context.Context, end time.Time) (err error)
- func (d *Dao) EventSearch(ctx context.Context, args *dao.EventSearchArgs) (events []*dao.Event, count int, err error)
- func (d *Dao) RegistryCreate(ctx context.Context, registry *dao.Registry) (err error)
- func (d *Dao) RegistryDelete(ctx context.Context, id string) (err error)
- func (d *Dao) RegistryGet(ctx context.Context, id string) (registry *dao.Registry, err error)
- func (d *Dao) RegistryGetAll(ctx context.Context) (registries []*dao.Registry, err error)
- func (d *Dao) RegistryGetByURL(ctx context.Context, url string) (registry *dao.Registry, err error)
- func (d *Dao) RegistryUpdate(ctx context.Context, registry *dao.Registry) (err error)
- func (d *Dao) RoleCreate(ctx context.Context, role *dao.Role) (err error)
- func (d *Dao) RoleDelete(ctx context.Context, id string) (err error)
- func (d *Dao) RoleGet(ctx context.Context, id string) (role *dao.Role, err error)
- func (d *Dao) RoleSearch(ctx context.Context, name string) (roles []*dao.Role, err error)
- func (d *Dao) RoleUpdate(ctx context.Context, role *dao.Role) (err error)
- func (d *Dao) SessionCreate(ctx context.Context, session *dao.Session) (err error)
- func (d *Dao) SessionGet(ctx context.Context, id string) (session *dao.Session, err error)
- func (d *Dao) SessionPrune()
- func (d *Dao) SessionUpdate(ctx context.Context, session *dao.Session) (err error)
- func (d *Dao) SessionUpdateDirty(ctx context.Context, userID string, roleID string) (err error)
- func (d *Dao) SessionUpdateExpiry(ctx context.Context, id string, expiry time.Time) (err error)
- func (d *Dao) SettingGet(ctx context.Context, id string) (setting *dao.Setting, err error)
- func (d *Dao) SettingGetAll(ctx context.Context) (settings []*dao.Setting, err error)
- func (d *Dao) SettingUpdate(ctx context.Context, setting *dao.Setting) (err error)
- func (d *Dao) StackCreate(ctx context.Context, stack *dao.Stack) (err error)
- func (d *Dao) StackDelete(ctx context.Context, name string) (err error)
- func (d *Dao) StackGet(ctx context.Context, name string) (stack *dao.Stack, err error)
- func (d *Dao) StackGetAll(ctx context.Context) (stacks []*dao.Stack, err error)
- func (d *Dao) StackUpdate(ctx context.Context, stack *dao.Stack) (err error)
- func (d *Dao) Upgrade(ctx context.Context) error
- func (d *Dao) UserCount(ctx context.Context) (count int, err error)
- func (d *Dao) UserCreate(ctx context.Context, user *dao.User) (err error)
- func (d *Dao) UserDelete(ctx context.Context, id string) (err error)
- func (d *Dao) UserGet(ctx context.Context, id string) (user *dao.User, err error)
- func (d *Dao) UserGetByName(ctx context.Context, loginName string) (user *dao.User, err error)
- func (d *Dao) UserGetByToken(ctx context.Context, token string) (user *dao.User, err error)
- func (d *Dao) UserSearch(ctx context.Context, args *dao.UserSearchArgs) (users []*dao.User, count int, err error)
- func (d *Dao) UserUpdate(ctx context.Context, user *dao.User) (err error)
- func (d *Dao) UserUpdatePassword(ctx context.Context, user *dao.User) (err error)
- func (d *Dao) UserUpdateProfile(ctx context.Context, user *dao.User) (err error)
- func (d *Dao) UserUpdateStatus(ctx context.Context, user *dao.User) (err error)
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 ¶
Functions ¶
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao implements dao.Interface interface.
func (*Dao) ChartCreate ¶
func (*Dao) ChartGet ¶
func (*Dao) ChartGetBatch ¶
func (*Dao) ChartSearch ¶
func (*Dao) ChartUpdate ¶
func (*Dao) DashboardGet ¶
func (*Dao) DashboardUpdate ¶
func (*Dao) EventCreate ¶
func (*Dao) EventSearch ¶
func (*Dao) RegistryCreate ¶
func (*Dao) RegistryDelete ¶
func (*Dao) RegistryGet ¶
func (*Dao) RegistryGetAll ¶
func (*Dao) RegistryGetByURL ¶
func (*Dao) RegistryUpdate ¶
func (*Dao) RoleGet ¶
func (*Dao) RoleSearch ¶
func (*Dao) SessionCreate ¶
func (*Dao) SessionGet ¶
func (*Dao) SessionUpdate ¶
func (*Dao) SessionUpdateDirty ¶
func (*Dao) SessionUpdateExpiry ¶
func (*Dao) SettingGet ¶
func (*Dao) SettingGetAll ¶
func (*Dao) SettingUpdate ¶
func (*Dao) StackCreate ¶
func (*Dao) StackGet ¶
func (*Dao) StackGetAll ¶
func (*Dao) StackUpdate ¶
func (*Dao) UserGet ¶
func (*Dao) UserGetByName ¶
func (*Dao) UserGetByToken ¶
func (*Dao) UserSearch ¶
func (*Dao) UserUpdatePassword ¶
func (*Dao) UserUpdateProfile ¶
Source Files
¶
- bolt.go
- chart.go
- event.go
- registry.go
- role.go
- session.go
- setting.go
- stack.go
- user.go
Click to show internal directories.
Click to hide internal directories.