MCPcopy Create free account
hub / github.com/code-scan/AutoSubtitles / NewOSS

Function NewOSS

pkg/oss.go:16–24  ·  view source on GitHub ↗
(AK, AS, EndPoint, Bucket string)

Source from the content-addressed store, hash-verified

14}
15
16func NewOSS(AK, AS, EndPoint, Bucket string) *OSS {
17 oss := &OSS{
18 EndPoint: EndPoint,
19 BucketName: Bucket,
20 }
21 oss.AK = AK
22 oss.AS = AS
23 return oss
24}
25func (o *OSS) UploadFile(filepath string) string {
26 client, err := oss.New(o.EndPoint, o.AK, o.AS)
27 if err != nil {

Callers 1

OSSFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected