Documentation ¶
Index ¶
- type Api
- func (api *Api) Apply(c *gin.Context)
- func (api *Api) Compare(c *gin.Context)
- func (api *Api) CreateUser(c *gin.Context)
- func (api *Api) DatabaseGet(c *gin.Context)
- func (api *Api) DatabaseGetKeys(c *gin.Context)
- func (api *Api) DatabaseGetKeysPrefix(c *gin.Context)
- func (api *Api) DatabaseRemoveKeys(c *gin.Context)
- func (api *Api) DatabaseSet(c *gin.Context)
- func (api *Api) Definition(c *gin.Context)
- func (api *Api) Definitions(c *gin.Context)
- func (api *Api) Delete(c *gin.Context)
- func (api *Api) HandleDns(w mdns.ResponseWriter, r *mdns.Msg)
- func (api *Api) Health(c *gin.Context)
- func (api *Api) ImplementationWrapperApply(user *authentication.User, kind string, jsonData []byte, c *gin.Context)
- func (api *Api) ImplementationWrapperCompare(user *authentication.User, kind string, jsonData []byte, c *gin.Context)
- func (api *Api) ImplementationWrapperDelete(user *authentication.User, kind string, jsonData []byte, c *gin.Context)
- func (api *Api) ListDns(c *gin.Context)
- func (api *Api) ListSupported(c *gin.Context)
- func (api *Api) Logs(c *gin.Context)
- func (api *Api) Ps(c *gin.Context)
- func (api *Api) Restore(c *gin.Context)
- func (api *Api) RunOperators(c *gin.Context)
- func (api *Api) SecretsGet(c *gin.Context)
- func (api *Api) SecretsGetKeys(c *gin.Context)
- func (api *Api) SecretsSet(c *gin.Context)
- func (api *Api) SetupEncryptedDatabase(masterKey []byte)
- func (api *Api) Version(c *gin.Context)
- type Kv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct { User *authentication.User Config *configuration.Configuration Keys *keys.Keys DnsCache *dns.Records Badger *badger.DB BadgerSync *sync.RWMutex RelationRegistry *relations.RelationRegistry Manager *manager.Manager VersionServer string }
func NewApi ¶
func NewApi(config *configuration.Configuration, badger *badger.DB) *Api
func (*Api) CreateUser ¶ added in v0.0.10
func (*Api) DatabaseGet ¶
DatabaseGet godoc
@Summary Get value from the key-value store @Description get string by key from the key-value store @Tags database @Produce json @Param key path string true "RandomKey" @Success 200 {object} httpcontract.ResponseOperator @Failure 400 {object} httpcontract.ResponseOperator @Failure 404 {object} httpcontract.ResponseOperator @Failure 500 {object} httpcontract.ResponseOperator @Router /database/{key} [get]
func (*Api) DatabaseGetKeys ¶
DatabaseGetKeys godoc
@Summary Get keys by prefix in the key-value store @Description get all keys by prefix in the key-value store @Tags database @Produce json @Success 200 {object} httpcontract.ResponseOperator @Failure 400 {object} httpcontract.ResponseOperator @Failure 404 {object} httpcontract.ResponseOperator @Failure 500 {object} httpcontract.ResponseOperator @Router /database/keys [get]
func (*Api) DatabaseGetKeysPrefix ¶
DatabaseGetKeysPrefix godoc
@Summary Get keys by prefix in the key-value store @Description get all keys by prefix in the key-value store @Tags database @Produce json @Success 200 {object} httpcontract.ResponseOperator @Failure 400 {object} httpcontract.ResponseOperator @Failure 404 {object} httpcontract.ResponseOperator @Failure 500 {object} httpcontract.ResponseOperator @Router /database/{key}/{prefix} [get]
func (*Api) DatabaseRemoveKeys ¶
DatabaseRemoveKeys godoc
@Summary Remove keys by prefix in the key-value store @Description remove all keys by prefix in the key-value store @Tags database @Produce json @Success 200 {object} httpcontract.ResponseOperator @Failure 400 {object} httpcontract.ResponseOperator @Failure 404 {object} httpcontract.ResponseOperator @Failure 500 {object} httpcontract.ResponseOperator @Router /database/keys [delete]
func (*Api) DatabaseSet ¶
DatabaseSet godoc
@Summary Set value in the key-value store @Description set string by key in the key-value store @Tags database @Accepts json @Produce json @Param key path string true "RandomKey" @Param value body Kv true "value" @Success 200 {object} httpcontract.ResponseOperator @Failure 400 {object} httpcontract.ResponseOperator @Failure 404 {object} httpcontract.ResponseOperator @Failure 500 {object} httpcontract.ResponseOperator @Router /database/{key} [post]
func (*Api) Definition ¶ added in v0.0.3
func (*Api) Definitions ¶ added in v0.0.3
func (*Api) ImplementationWrapperApply ¶
func (*Api) ImplementationWrapperCompare ¶
func (*Api) ImplementationWrapperDelete ¶
func (*Api) ListSupported ¶
func (*Api) RunOperators ¶
func (*Api) SecretsGet ¶
SecretsGet godoc
@Summary Get value from the key-value store @Description get string by key from the key-value store @Tags database @Produce json @Param key path string true "RandomKey" @Success 200 {object} httpcontract.ResponseOperator @Failure 400 {object} httpcontract.ResponseOperator @Failure 404 {object} httpcontract.ResponseOperator @Failure 500 {object} httpcontract.ResponseOperator @Router /database/{key} [get]
func (*Api) SecretsGetKeys ¶
SecretsGetKeys godoc
@Summary Get keys by prefix in the key-value store @Description get all keys by prefix in the key-value store @Tags database @Produce json @Success 200 {object} httpcontract.ResponseOperator @Failure 400 {object} httpcontract.ResponseOperator @Failure 404 {object} httpcontract.ResponseOperator @Failure 500 {object} httpcontract.ResponseOperator @Router /database/keys [get]
func (*Api) SecretsSet ¶
SecretsSet godoc
@Summary Set value in the key-value store @Description set string by key in the key-value store @Tags database @Accepts json @Produce json @Param key path string true "RandomKey" @Param value body Kv true "value" @Success 200 {object} httpcontract.ResponseOperator @Failure 400 {object} httpcontract.ResponseOperator @Failure 404 {object} httpcontract.ResponseOperator @Failure 500 {object} httpcontract.ResponseOperator @Router /database/{key} [post]
func (*Api) SetupEncryptedDatabase ¶
Click to show internal directories.
Click to hide internal directories.