GO SDK
Titan Storage Go SDK
The Titan Storage Go SDK provides functionalities for file uploading, downloading, deleting, renaming, sharing, and creating folders.
The Go SDK consists of TitanStorage.
Install Go SDK And initialize the go SDK
go get -u github.com/utopiosphe/titan-storage-sdk
Retrieve the apikey and use it to initialize the go SDK

package main
import (
storage "github.com/utopiosphe/titan-storage-sdk"
)
const (
titanStorageURL = "https://api-test1.container1.titannet.io"
)
var TitanStorage storage.Storage
func init() {
var err error
TitanStorage,err = storage.Initialize(&storage.Config{
TitanURL: titanStorageURL,
APIKey: os.Getenv("apikey"),
})
if err != nil {
panic(fmt.Errorf("new client of titan storage error:%w",err))
}
}
Go SDK Method With Client
Method
Description
Retrieve the list of area IDs from the scheduler
Create directories, including root and subdirectories
Retrieve a list of all folders and files
Rename a specific folder
Rename a specific file
Delete a specific folder
Delete a specific file
Retrieve user-related information
Get detailed information about files/folders
Share file/folder data
Upload files/folders
Download files/folders
Last updated