Documentation ¶
Index ¶
- type Api
- func (api *Api) AddNode(c *gin.Context)
- func (api *Api) Apply(c *gin.Context)
- func (api *Api) CA(c *gin.Context)
- func (api *Api) ClusterCheck() gin.HandlerFunc
- func (api *Api) Compare(c *gin.Context)
- func (api *Api) CreateUser(c *gin.Context)
- func (api *Api) DatabaseGet(c *gin.Context)
- func (api *Api) DatabaseGetBase64(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) DatabaseSetBase64(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) EtcdDelete(c *gin.Context)
- func (api *Api) EtcdPut(c *gin.Context)
- func (api *Api) GetCluster(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) Metrics() gin.HandlerFunc
- func (api *Api) Propose(c *gin.Context)
- func (api *Api) Ps(c *gin.Context)
- func (api *Api) RemoveNode(c *gin.Context)
- func (api *Api) Restore(c *gin.Context)
- func (api *Api) RestoreCluster(c *gin.Context)
- func (api *Api) RunControl(c *gin.Context)
- func (api *Api) SaveClusterConfiguration()
- func (api *Api) SetupEncryptedDatabase(masterKey []byte)
- func (api *Api) SetupKVStore(TLSConfig *tls.Config, nodeID uint64, cluster *cluster.Cluster, join string) error
- func (api *Api) StartCluster(c *gin.Context)
- 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 Cluster *cluster.Cluster BadgerSync *sync.RWMutex Kinds *relations.RelationRegistry KindsRegistry map[string]contracts.Kind Manager *manager.Manager VersionServer string // contains filtered or unexported fields }
func NewApi ¶
func NewApi(config *configuration.Configuration, badger *badger.DB) *Api
func (*Api) ClusterCheck ¶ added in v0.0.85
func (api *Api) ClusterCheck() gin.HandlerFunc
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} contracts.Response @Failure 400 {object} contracts.Response @Failure 404 {object} contracts.Response @Failure 500 {object} contracts.Response @Router /database/{key} [get]
func (*Api) DatabaseGetBase64 ¶ added in v0.0.88
DatabaseGetBase64 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} contracts.Response @Failure 400 {object} contracts.Response @Failure 404 {object} contracts.Response @Failure 500 {object} contracts.Response @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} contracts.Response @Failure 400 {object} contracts.Response @Failure 404 {object} contracts.Response @Failure 500 {object} contracts.Response @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} contracts.Response @Failure 400 {object} contracts.Response @Failure 404 {object} contracts.Response @Failure 500 {object} contracts.Response @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} contracts.Response @Failure 400 {object} contracts.Response @Failure 404 {object} contracts.Response @Failure 500 {object} contracts.Response @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} contracts.Response @Failure 400 {object} contracts.Response @Failure 404 {object} contracts.Response @Failure 500 {object} contracts.Response @Router /database/{key} [post]
func (*Api) DatabaseSetBase64 ¶ added in v0.0.89
func (*Api) Definition ¶ added in v0.0.3
func (*Api) Definitions ¶ added in v0.0.3
func (*Api) EtcdDelete ¶ added in v0.0.57
func (*Api) GetCluster ¶ added in v0.0.57
func (*Api) ImplementationWrapperApply ¶
func (*Api) ImplementationWrapperCompare ¶
func (*Api) ImplementationWrapperDelete ¶
func (*Api) ListSupported ¶
func (*Api) Metrics ¶ added in v0.0.85
func (api *Api) Metrics() gin.HandlerFunc
func (*Api) RemoveNode ¶ added in v0.0.57
func (*Api) RestoreCluster ¶ added in v0.0.70
func (*Api) RunControl ¶ added in v0.0.73
func (*Api) SaveClusterConfiguration ¶ added in v0.0.57
func (api *Api) SaveClusterConfiguration()
func (*Api) SetupEncryptedDatabase ¶
func (*Api) SetupKVStore ¶ added in v0.0.57
func (*Api) StartCluster ¶ added in v0.0.57
Click to show internal directories.
Click to hide internal directories.