Documentation ¶
Index ¶
- Constants
- Variables
- func AccessKey() string
- func Endpoint() string
- func NewS3Client() (*s3.S3, *session.Session)
- func ParseBucketAndKey(path string) (string, string, error)
- func SecretKey() string
- func SetAkSk(ak, sk string)
- func SetEndpoint(endpoint string)
- type Account
- type Clientset
- func (cs *Clientset) GetBytesObject(ctx context.Context, path string) (b []byte, err error)
- func (cs *Clientset) GetObjectToFile(objectPath string, filePath string) error
- func (cs *Clientset) GetStringObject(ctx context.Context, path string) (string, error)
- func (cs *Clientset) PutObjectFromFile(objectPath string, filePath string, options ...types.OpOption) error
- type OssType
Constants ¶
View Source
const ( OssTypeJDCloud OssType = "JDCloud" OssTypeS3 = "s3" OssTypeAzure = "Azure" OssTypeAliYun = "Aliyun" )
Variables ¶
View Source
var ( ENDPOINT = []string{"endpoint"} ACCESSKEY = []string{"access_key"} SECRETKEY = []string{"secret_key"} )
Functions ¶
func SetEndpoint ¶
func SetEndpoint(endpoint string)
Types ¶
type Account ¶
func GetAccount ¶
type Clientset ¶
type Clientset struct { types.ClientInterface // contains filtered or unexported fields }
func (*Clientset) GetBytesObject ¶
func (*Clientset) GetObjectToFile ¶
func (*Clientset) GetStringObject ¶
Click to show internal directories.
Click to hide internal directories.