mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-22 14:55:16 +00:00
Commit from m3o/m3o action
This commit is contained in:
@@ -162,7 +162,17 @@ type ListResponse struct {
|
||||
Objects []ListObject `json:"objects"`
|
||||
}
|
||||
|
||||
type Object struct {
|
||||
type ReadRequest struct {
|
||||
// name of the object
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type ReadResponse struct {
|
||||
// The object itself
|
||||
Object *SpaceObject `json:"object"`
|
||||
}
|
||||
|
||||
type SpaceObject struct {
|
||||
// when was this created
|
||||
Created string `json:"created"`
|
||||
// the data within the object
|
||||
@@ -177,16 +187,6 @@ type Object struct {
|
||||
Visibility string `json:"visibility"`
|
||||
}
|
||||
|
||||
type ReadRequest struct {
|
||||
// name of the object
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type ReadResponse struct {
|
||||
// The object itself
|
||||
Object *Object `json:"object"`
|
||||
}
|
||||
|
||||
type UpdateRequest struct {
|
||||
// The name of the object. Use forward slash delimiter to implement a nested directory-like structure e.g. images/foo.jpg
|
||||
Name string `json:"name"`
|
||||
|
||||
Reference in New Issue
Block a user