Initial commit (code only without large binaries)
This commit is contained in:
19
EdgeNode/internal/oss/provider_interface.go
Normal file
19
EdgeNode/internal/oss/provider_interface.go
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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)
|
||||
}
|
||||
Reference in New Issue
Block a user