Documentation
¶
Index ¶
- type CallBackFunction
- type Transport
- func (t *Transport) Call(ctx context.Context, token, project, service, endpoint string, ...) (*types.Response, error)
- func (t *Transport) CreateFolder(ctx context.Context, project, path, name string) (*types.Response, error)
- func (t *Transport) DeleteFile(ctx context.Context, meta interface{}, project, path string) (*types.Response, error)
- func (t *Transport) DoDBRequest(ctx context.Context, meta *types.Meta, req interface{}) (*types.Response, error)
- func (t *Transport) DoesExists(ctx context.Context, project, path string) (*types.Response, error)
- func (t *Transport) DownloadFile(ctx context.Context, project, path string, writer io.Writer) error
- func (t *Transport) GetWebsocketConn() *websocket.Conn
- func (t *Transport) List(ctx context.Context, project, mode, path string) (*types.Response, error)
- func (t *Transport) UploadFile(ctx context.Context, project, path, name string, meta interface{}, ...) (*types.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallBackFunction ¶
type CallBackFunction func(string, interface{})
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport is the object which handles all communication with the server
func (*Transport) Call ¶
func (t *Transport) Call(ctx context.Context, token, project, service, endpoint string, params interface{}, timeout int) (*types.Response, error)
Call triggers the gRPC call function on space cloud
func (*Transport) CreateFolder ¶
func (t *Transport) CreateFolder(ctx context.Context, project, path, name string) (*types.Response, error)
CreateFolder creates a folder/directory on selected file store
func (*Transport) DeleteFile ¶
func (t *Transport) DeleteFile(ctx context.Context, meta interface{}, project, path string) (*types.Response, error)
DeleteFile deletes file/directory from selected file store
func (*Transport) DoDBRequest ¶
func (t *Transport) DoDBRequest(ctx context.Context, meta *types.Meta, req interface{}) (*types.Response, error)
Batch triggers the gRPC batch function on space cloud
func (*Transport) DoesExists ¶
DoesExists checks if specified file exists in selected file store
func (*Transport) DownloadFile ¶
DownloadFile downloads specified file from selected file store
func (*Transport) GetWebsocketConn ¶
Click to show internal directories.
Click to hide internal directories.