Files
waf-platform/EdgeNode/internal/oss/provider_interface.go
2026-02-04 20:27:13 +08:00

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)
}