Documentation
¶
Index ¶
- type COS
- func (cos *COS) GetLastModified(objKey string) (lastModified *time.Time, err error)
- func (cos *COS) GetObjectBody(name string) (io.ReadCloser, error)
- func (cos *COS) MakeObjKey(name string) (objectKeyWithPrefix string)
- func (cos *COS) Upload(objName string, objBody io.Reader) (*s3manager.UploadOutput, error)
- func (cos *COS) UploadFile(localFile string) (*s3manager.UploadOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type COS ¶
type COS struct { ApiKey string ServiceInstanceID string // resource_instance_id AuthEndpoint string ServiceEndpoint string BucketLocation string BucketName string // contains filtered or unexported fields }
func (*COS) GetLastModified ¶
func (*COS) GetObjectBody ¶
func (cos *COS) GetObjectBody(name string) (io.ReadCloser, error)
GetObjectBody 返回 io.ReadCloser, 要记得关闭资源.
func (*COS) MakeObjKey ¶
func (*COS) UploadFile ¶
func (cos *COS) UploadFile(localFile string) (*s3manager.UploadOutput, error)
Click to show internal directories.
Click to hide internal directories.