Documentation ¶
Index ¶
- type HuaweiClient
- func (c *HuaweiClient) MakeBucket(ctx context.Context, bucketName string) error
- func (c *HuaweiClient) PutObject(ctx context.Context, bucketName string, objectName string, reader io.Reader, ...) (string, error)
- func (c *HuaweiClient) PutObjectFromFile(ctx context.Context, bucketName, objectName, localFile string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HuaweiClient ¶
type HuaweiClient struct {
// contains filtered or unexported fields
}
HuaweiClient obs客户端
func NewClient ¶
func NewClient(endpoint, accessKeyId, accessKeySecret, securityToken string) (*HuaweiClient, error)
NewClient 客户端
func (*HuaweiClient) MakeBucket ¶
func (c *HuaweiClient) MakeBucket(ctx context.Context, bucketName string) error
MakeBucket 创建桶
func (*HuaweiClient) PutObject ¶
func (c *HuaweiClient) PutObject(ctx context.Context, bucketName string, objectName string, reader io.Reader, objectSize int64) (string, error)
PutObject 上传对象
func (*HuaweiClient) PutObjectFromFile ¶
func (c *HuaweiClient) PutObjectFromFile(ctx context.Context, bucketName, objectName, localFile string) (string, error)
PutObjectFromFile 上传对象
Click to show internal directories.
Click to hide internal directories.