Documentation ¶
Index ¶
- Constants
- func Decrypt(key, text []byte) ([]byte, error)
- func DeleteCollaboratorRequest(baseUrl string, allocation string, body io.Reader) (*http.Request, error)
- func Encrypt(key, text []byte) ([]byte, error)
- func GetCollaboratorsRequest(baseUrl string, allocation string, body io.Reader) (*http.Request, error)
- func GetFileContentType(out *os.File) (string, error)
- func GetFullRemotePath(localPath, remotePath string) string
- func HttpDo(ctx context.Context, cncl context.CancelFunc, req *http.Request, ...) error
- func IsRemoteAbs(path string) bool
- func Join(a, b string) string
- func MakeSCRestAPICall(scAddress string, relativePath string, params map[string]string, ...) ([]byte, error)
- func NewAllocationRequest(baseUrl, allocation string) (*http.Request, error)
- func NewAttributesRequest(baseUrl, allocation string, body io.Reader) (req *http.Request, err error)
- func NewCalculateHashRequest(baseUrl, allocation string, paths []string) (*http.Request, error)
- func NewCollaboratorRequest(baseUrl string, allocation string, body io.Reader) (*http.Request, error)
- func NewCommitMetaTxnRequest(baseUrl string, allocation string, body io.Reader) (*http.Request, error)
- func NewCommitRequest(baseUrl, allocation string, body io.Reader) (*http.Request, error)
- func NewConnectionId() string
- func NewCopyRequest(baseUrl, allocation string, body io.Reader) (*http.Request, error)
- func NewDeleteRequest(baseUrl, allocation string, body io.Reader) (*http.Request, error)
- func NewDownloadRequest(baseUrl, allocation string, body io.Reader) (*http.Request, error)
- func NewFileMetaRequest(baseUrl string, allocation string, body io.Reader) (*http.Request, error)
- func NewFileStatsRequest(baseUrl string, allocation string, body io.Reader) (*http.Request, error)
- func NewHTTPRequest(method string, url string, data []byte) (*http.Request, context.Context, context.CancelFunc, error)
- func NewListRequest(baseUrl, allocation string, path string, auth_token string) (*http.Request, error)
- func NewObjectTreeRequest(baseUrl, allocation string, path string) (*http.Request, error)
- func NewReferencePathRequest(baseUrl, allocation string, paths []string) (*http.Request, error)
- func NewRenameRequest(baseUrl, allocation string, body io.Reader) (*http.Request, error)
- func NewUploadRequest(baseUrl, allocation string, body io.Reader, update bool) (*http.Request, error)
- func RemoteClean(path string) string
- type SCRestAPIHandler
Constants ¶
View Source
const ( ALLOCATION_ENDPOINT = "/allocation" UPLOAD_ENDPOINT = "/v1/file/upload/" ATTRS_ENDPOINT = "/v1/file/attributes/" RENAME_ENDPOINT = "/v1/file/rename/" COPY_ENDPOINT = "/v1/file/copy/" LIST_ENDPOINT = "/v1/file/list/" REFERENCE_ENDPOINT = "/v1/file/referencepath/" CONNECTION_ENDPOINT = "/v1/connection/details/" COMMIT_ENDPOINT = "/v1/connection/commit/" DOWNLOAD_ENDPOINT = "/v1/file/download/" LATEST_READ_MARKER = "/v1/readmarker/latest" FILE_META_ENDPOINT = "/v1/file/meta/" FILE_STATS_ENDPOINT = "/v1/file/stats/" OBJECT_TREE_ENDPOINT = "/v1/file/objecttree/" COMMIT_META_TXN_ENDPOINT = "/v1/file/commitmetatxn/" COLLABORATOR_ENDPOINT = "/v1/file/collaborator/" CALCULATE_HASH_ENDPOINT = "/v1/file/calculatehash/" )
View Source
const EncryptedFolderName = "encrypted"
View Source
const MAX_RETRIES = 5
View Source
const REGISTER_CLIENT = "v1/client/put"
View Source
const SC_REST_API_URL = "v1/screst/"
View Source
const SLEEP_BETWEEN_RETRIES = 5
Variables ¶
This section is empty.
Functions ¶
func GetCollaboratorsRequest ¶
func GetFullRemotePath ¶
func IsRemoteAbs ¶
func MakeSCRestAPICall ¶
func NewAllocationRequest ¶
func NewAttributesRequest ¶
func NewCalculateHashRequest ¶
func NewCollaboratorRequest ¶
func NewCommitMetaTxnRequest ¶
func NewCommitRequest ¶
func NewConnectionId ¶
func NewConnectionId() string
func NewCopyRequest ¶
func NewDeleteRequest ¶
func NewDownloadRequest ¶
func NewFileMetaRequest ¶
func NewFileStatsRequest ¶
func NewHTTPRequest ¶
func NewListRequest ¶
func NewObjectTreeRequest ¶
func NewReferencePathRequest ¶
func NewRenameRequest ¶
func NewUploadRequest ¶
func RemoteClean ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.