Documentation
¶
Overview ¶
Package api implements the space-cloud client driver
Index ¶
- type API
- func (api *API) Call(service, endpoint string, params interface{}, timeout int) (*types.Response, error)
- func (api *API) DB(dbAlias string) *db.DB
- func (api *API) Filestore() *filestore.Filestore
- func (api *API) QueueEvent(eventType string, payload map[string]interface{}) *eventing.Eventing
- func (api *API) SetProjectID(project string)
- func (api *API) SetToken(token string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶ added in v0.16.0
type API struct {
// contains filtered or unexported fields
}
API is the main API object to communicate with space cloud
func (*API) Call ¶ added in v0.16.0
func (api *API) Call(service, endpoint string, params interface{}, timeout int) (*types.Response, error)
Call invokes the specified function on the backend
func (*API) QueueEvent ¶ added in v0.17.0
QueueEvent creates a Eventing instance
func (*API) SetProjectID ¶ added in v0.16.0
SetProjectID sets the project id to be used by the API
Click to show internal directories.
Click to hide internal directories.