mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
Commit from m3o/m3o action
This commit is contained in:
@@ -50,7 +50,7 @@ func (t *SpaceService) List(request *ListRequest) (*ListResponse, error) {
|
||||
|
||||
}
|
||||
|
||||
// Read/download the object
|
||||
// Read an object in storage
|
||||
func (t *SpaceService) Read(request *ReadRequest) (*ReadResponse, error) {
|
||||
|
||||
rsp := &ReadResponse{}
|
||||
@@ -103,6 +103,7 @@ type HeadObject struct {
|
||||
}
|
||||
|
||||
type HeadRequest struct {
|
||||
// name of the object
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
@@ -127,10 +128,13 @@ type ListResponse struct {
|
||||
}
|
||||
|
||||
type ReadRequest struct {
|
||||
// name of the object
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type ReadResponse struct {
|
||||
// Returns the response as a raw object
|
||||
Object string `json:"object"`
|
||||
}
|
||||
|
||||
type UpdateRequest struct {
|
||||
|
||||
Reference in New Issue
Block a user