Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateHandler(authenticator func(ctx *rest.Context, id string, namespace string) (KV, error)) *chi.Mux
- func SQLUpdater(db *database.AdminDB, i *run.Info, curversion int) error
- type AdminAppKV
- func (k *AdminAppKV) DelKey(key string) error
- func (k *AdminAppKV) Get() (map[string]interface{}, error)
- func (k *AdminAppKV) GetKey(key string) (interface{}, error)
- func (k *AdminAppKV) Set(data map[string]interface{}) error
- func (k *AdminAppKV) SetKey(key string, value interface{}) error
- func (k *AdminAppKV) Update(data map[string]interface{}) error
- type AdminObjectKV
- func (k *AdminObjectKV) DelKey(key string) error
- func (k *AdminObjectKV) Get() (map[string]interface{}, error)
- func (k *AdminObjectKV) GetKey(key string) (interface{}, error)
- func (k *AdminObjectKV) Set(data map[string]interface{}) error
- func (k *AdminObjectKV) SetKey(key string, value interface{}) error
- func (k *AdminObjectKV) Update(data map[string]interface{}) error
- type AdminUserKV
- func (k *AdminUserKV) DelKey(key string) error
- func (k *AdminUserKV) Get() (map[string]interface{}, error)
- func (k *AdminUserKV) GetKey(key string) (interface{}, error)
- func (k *AdminUserKV) Set(data map[string]interface{}) error
- func (k *AdminUserKV) SetKey(key string, value interface{}) error
- func (k *AdminUserKV) Update(data map[string]interface{}) error
- type KV
Constants ¶
View Source
const PluginName = "kv"
View Source
const SQLVersion = 1
Variables ¶
View Source
var Handler = func() *chi.Mux { apiMux := chi.NewMux() apiMux.NotFound(rest.NotFoundHandler) apiMux.MethodNotAllowed(rest.NotFoundHandler) apiMux.Mount("/api/kv/users", GenerateHandler(UserAuth)) apiMux.Mount("/api/kv/apps", GenerateHandler(AppAuth)) apiMux.Mount("/api/kv/objects", GenerateHandler(ObjectAuth)) return apiMux }()
Functions ¶
func GenerateHandler ¶
Types ¶
type AdminAppKV ¶
func (*AdminAppKV) DelKey ¶
func (k *AdminAppKV) DelKey(key string) error
func (*AdminAppKV) Get ¶
func (k *AdminAppKV) Get() (map[string]interface{}, error)
func (*AdminAppKV) GetKey ¶
func (k *AdminAppKV) GetKey(key string) (interface{}, error)
func (*AdminAppKV) Set ¶
func (k *AdminAppKV) Set(data map[string]interface{}) error
func (*AdminAppKV) SetKey ¶
func (k *AdminAppKV) SetKey(key string, value interface{}) error
func (*AdminAppKV) Update ¶
func (k *AdminAppKV) Update(data map[string]interface{}) error
type AdminObjectKV ¶
func (*AdminObjectKV) DelKey ¶
func (k *AdminObjectKV) DelKey(key string) error
func (*AdminObjectKV) Get ¶
func (k *AdminObjectKV) Get() (map[string]interface{}, error)
func (*AdminObjectKV) GetKey ¶
func (k *AdminObjectKV) GetKey(key string) (interface{}, error)
func (*AdminObjectKV) Set ¶
func (k *AdminObjectKV) Set(data map[string]interface{}) error
func (*AdminObjectKV) SetKey ¶
func (k *AdminObjectKV) SetKey(key string, value interface{}) error
func (*AdminObjectKV) Update ¶
func (k *AdminObjectKV) Update(data map[string]interface{}) error
type AdminUserKV ¶
func (*AdminUserKV) DelKey ¶
func (k *AdminUserKV) DelKey(key string) error
func (*AdminUserKV) Get ¶
func (k *AdminUserKV) Get() (map[string]interface{}, error)
func (*AdminUserKV) GetKey ¶
func (k *AdminUserKV) GetKey(key string) (interface{}, error)
func (*AdminUserKV) Set ¶
func (k *AdminUserKV) Set(data map[string]interface{}) error
func (*AdminUserKV) SetKey ¶
func (k *AdminUserKV) SetKey(key string, value interface{}) error
func (*AdminUserKV) Update ¶
func (k *AdminUserKV) Update(data map[string]interface{}) error
Click to show internal directories.
Click to hide internal directories.