ZhouYK / ve-tos-golang-sdk

Volcengine TOS Golang SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Volcengine Object Storage(TOS) Go SDK

Install TOS Go SDK

TOS Go SDK supports Go 1.13+ . Run go version to check your version of Golang.

  • Install TOS Go SDK with go get
      go get -u github.com/volcengine/ve-tos-golang-sdk

Use TOS Go SDK

  • Import
    import "github.com/volcengine/ve-tos-golang-sdk/tos"
  • Create a client
     var (
        accessKey = "Your Access Key"
        secretKey = "Your Secret Key"
        endpoint = "your endpoint"
        region = "your region"
    )
    client, err := tos.NewClient(endpoint, tos.WithRegion(region),
    tos.WithCredentials(tos.NewStaticCredentials(accessKey, secretKey)))
  • More example, see example/ folder

About

Volcengine TOS Golang SDK

License:Apache License 2.0


Languages

Language:Go 100.0%