Documentation ¶
Index ¶
- type Client
- func (a Client) DELETE(resourceType ResourceType, id string) (err error)
- func (a Client) GET(resourceType ResourceType, id string) (res *Response, err error)
- func (a Client) INSERT(resourceType ResourceType, data []byte) (id string, err error)
- func (a Client) LIST(resourceType ResourceType) (res []Response, err error)
- func (a Client) UPDATE(resourceType ResourceType, id string, data []byte) (err error)
- type IDs
- type Resource
- type ResourceType
- type Response
- type ResponseErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) DELETE ¶
func (a Client) DELETE(resourceType ResourceType, id string) (err error)
DELETE removes a given automation object by ID
func (Client) GET ¶
func (a Client) GET(resourceType ResourceType, id string) (res *Response, err error)
GET returns one specific automation object
func (Client) INSERT ¶
func (a Client) INSERT(resourceType ResourceType, data []byte) (id string, err error)
INSERT creates a given document object
type Resource ¶
type Resource struct { // Path is the API path to be used for this resource Path string }
Resource specifies information about a specific resource
type ResourceType ¶
type ResourceType int
ResourceType enumerates different kind of resources
const (
)type Response ¶
type Response struct { ID string `json:"id"` DocumentId string `json:"documentId"` Access []string `json:"access"` UserCount int `json:"userCount"` GroupCount int `json:"groupCount"` Recipients directshares.Recipients `json:"recipients"` }
type ResponseErr ¶
ResponseErr is used to return HTTP related information as an error
func (ResponseErr) Error ¶
func (e ResponseErr) Error() string
Click to show internal directories.
Click to hide internal directories.