Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFileNotFound = errors.New("fileHeader is null") ErrFileNotInStorage = errors.New("file not found, check your storage name, file path, and file name") ErrLinkNotFound = errors.New("file not found, check your storage name, file path, file name, and policy") ErrBadRequest = errors.New("received bad request, check your request body") )
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.0.0
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ListBucket ¶ added in v1.0.0
func (c *Client) ListBucket(requestBody *RequestBodyListBucket) (*ResponseListBucket, error)
type RequestBodyListBucket ¶ added in v1.0.0
type ResponseListBucket ¶ added in v1.0.0
type ResponseListBucket []struct { Name string `json:"name"` ID string `json:"id"` UpdatedAt time.Time `json:"updated_at"` CreatedAt time.Time `json:"created_at"` LastAccessedAt time.Time `json:"last_accessed_at"` Metadata struct { CacheControl string `json:"cacheControl"` ContentLength int `json:"contentLength"` ETag string `json:"eTag"` HTTPStatusCode int `json:"httpStatusCode"` LastModified time.Time `json:"lastModified"` Mimetype string `json:"mimetype"` Size int `json:"size"` } `json:"metadata"` }
Click to show internal directories.
Click to hide internal directories.