MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / NewOSSClient

Function NewOSSClient

internal/net/oss.go:5–9  ·  view source on GitHub ↗
(endpoint, accessKeyID, accessKeySecret string, options ...oss.ClientOption)

Source from the content-addressed store, hash-verified

3import "github.com/aliyun/aliyun-oss-go-sdk/oss"
4
5func NewOSSClient(endpoint, accessKeyID, accessKeySecret string, options ...oss.ClientOption) (*oss.Client, error) {
6 clientOptions := []oss.ClientOption{oss.HTTPClient(NewHttpClient())}
7 clientOptions = append(clientOptions, options...)
8 return oss.New(endpoint, accessKeyID, accessKeySecret, clientOptions...)
9}

Calls 1

NewHttpClientFunction · 0.85