Documentation ¶
Index ¶
- Constants
- func Decrypt(key, text []byte) ([]byte, error)
- func Encrypt(key, text []byte) ([]byte, 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 MakeSCRestAPICall(scAddress string, relativePath string, params map[string]string, ...) ([]byte, 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 NewUpdateRepairStatusRequest(baseUrl string, 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 COMMIT_ENDPOINT = "/v1/connection/commit/"
View Source
const COMMIT_META_TXN_ENDPOINT = "/v1/file/commitmetatxn/"
View Source
const CONNECTION_ENDPOINT = "/v1/connection/details/"
View Source
const COPY_ENDPOINT = "/v1/file/copy/"
View Source
const DOWNLOAD_ENDPOINT = "/v1/file/download/"
View Source
const EncryptedFolderName = "encrypted"
View Source
const FILE_META_ENDPOINT = "/v1/file/meta/"
View Source
const FILE_STATS_ENDPOINT = "/v1/file/stats/"
View Source
const LATEST_READ_MARKER = "/v1/readmarker/latest"
View Source
const LIST_ENDPOINT = "/v1/file/list/"
View Source
const MAX_RETRIES = 5
View Source
const OBJECT_TREE_ENDPOINT = "/v1/file/objecttree/"
View Source
const REFERENCE_ENDPOINT = "/v1/file/referencepath/"
View Source
const REGISTER_CLIENT = "v1/client/put"
View Source
const RENAME_ENDPOINT = "/v1/file/rename/"
View Source
const SC_REST_API_URL = "v1/screst/"
View Source
const SLEEP_BETWEEN_RETRIES = 5
View Source
const UPDATE_REPAIR_STATUS_ENDPOINT = "/allocation/repair/"
View Source
const UPLOAD_ENDPOINT = "/v1/file/upload/"
Variables ¶
This section is empty.
Functions ¶
func GetFullRemotePath ¶
func IsRemoteAbs ¶
func MakeSCRestAPICall ¶
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 NewUpdateRepairStatusRequest ¶ added in v1.0.66
func NewUploadRequest ¶
func RemoteClean ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.