api

package module
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2020 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Overview

Package api implements the space-cloud client driver

Index

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 New

func New(project, url string, sslEnabled bool) *API

New initialised a new instance of the API object

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) DB added in v0.16.0

func (api *API) DB(dbAlias string) *db.DB

DB creates a db client instance

func (*API) Filestore added in v0.16.0

func (api *API) Filestore() *filestore.Filestore

FileStore creates a FileStore instance

func (*API) SetProjectID added in v0.16.0

func (api *API) SetProjectID(project string)

SetProjectID sets the project id to be used by the API

func (*API) SetToken added in v0.16.0

func (api *API) SetToken(token string)

SetToken sets the JWT token to be used in each request

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL