20 lines
591 B
Go
20 lines
591 B
Go
// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
|
//go:build plus
|
|
|
|
package oss
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/ossconfigs"
|
|
"net/http"
|
|
)
|
|
|
|
type ProviderInterface interface {
|
|
Init(options ossconfigs.OSSOptions, bucketName string) error
|
|
|
|
Head(key string) (httpResponse *http.Response, nativeErrCode string, err error)
|
|
|
|
Get(key string) (httpResponse *http.Response, nativeErrCode string, err error)
|
|
|
|
GetRange(key string, bytesRange string) (httpResponse *http.Response, nativeErrCode string, err error)
|
|
}
|