Documentation ¶
Index ¶
- Constants
- type CloudStorageAssessor
- func (csa *CloudStorageAssessor) Delete(key string) error
- func (csa *CloudStorageAssessor) Get(key string) (string, []byte, error)
- func (csa *CloudStorageAssessor) GetByStreaming(key string) (string, io.ReadCloser, error)
- func (csa *CloudStorageAssessor) GetObjectInfo(key string) (entity.StorageObjectInfo, error)
- func (csa *CloudStorageAssessor) Put(path string, file io.ReadSeeker) error
Constants ¶
View Source
const RecordNotFoundMsg = "status code: 404"
RecordNotFoundMsg define status 404 message
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudStorageAssessor ¶
type CloudStorageAssessor struct {
// contains filtered or unexported fields
}
CloudStorageAssessor struct
func NewCloudStorageAssessor ¶
func NewCloudStorageAssessor(ctx context.Context) *CloudStorageAssessor
NewCloudStorageAssessor creates a new CloudStorageAssessor
func (*CloudStorageAssessor) Delete ¶
func (csa *CloudStorageAssessor) Delete(key string) error
Delete remove storage contents
func (*CloudStorageAssessor) Get ¶
func (csa *CloudStorageAssessor) Get(key string) (string, []byte, error)
Get returns storage contents
func (*CloudStorageAssessor) GetByStreaming ¶ added in v1.5.0
func (csa *CloudStorageAssessor) GetByStreaming(key string) (string, io.ReadCloser, error)
GetByStreaming returns storage contents by streaming
func (*CloudStorageAssessor) GetObjectInfo ¶ added in v1.6.0
func (csa *CloudStorageAssessor) GetObjectInfo(key string) (entity.StorageObjectInfo, error)
GetObjectInfo returns storage contents info
func (*CloudStorageAssessor) Put ¶
func (csa *CloudStorageAssessor) Put(path string, file io.ReadSeeker) error
Put puts storage contents
Click to show internal directories.
Click to hide internal directories.