Documentation
¶
Index ¶
- type ErrLinkNotFound
- type ErrUnexpectedStatusCode
- type Link
- func (l Link) Delete(client *SpacesLowlevelClient, result interface{}) error
- func (l Link) Execute(client *SpacesLowlevelClient, body interface{}, result interface{}) error
- func (l Link) Get(client *SpacesLowlevelClient, result interface{}) error
- func (l Link) GetWithQuery(q url.Values, client *SpacesLowlevelClient, result interface{}) error
- func (l Link) Post(client *SpacesLowlevelClient, body interface{}, result interface{}) error
- func (l Link) Put(client *SpacesLowlevelClient, body interface{}, result interface{}) error
- func (l Link) WithParam(param, value string) Link
- type LinkList
- type Linkeable
- type Message
- type SpacesLowlevelClient
- func (c *SpacesLowlevelClient) Delete(path string, target interface{}) error
- func (c *SpacesLowlevelClient) DeleteBody(path string, body interface{}, target interface{}) error
- func (c *SpacesLowlevelClient) Get(path string, target interface{}) error
- func (c *SpacesLowlevelClient) GetCanonicalURL(path string) (string, error)
- func (c *SpacesLowlevelClient) Post(path string, body interface{}, target interface{}) error
- func (c *SpacesLowlevelClient) Put(path string, body interface{}, target interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrLinkNotFound ¶
type ErrLinkNotFound struct {
Rel string
}
func (ErrLinkNotFound) Error ¶
func (e ErrLinkNotFound) Error() string
type ErrUnexpectedStatusCode ¶
func (ErrUnexpectedStatusCode) Error ¶
func (e ErrUnexpectedStatusCode) Error() string
type Link ¶
type Link struct {
Href string `json:"href"`
Rel string `json:"rel"`
Method string `json:"method"`
}
func (Link) Delete ¶
func (l Link) Delete(client *SpacesLowlevelClient, result interface{}) error
func (Link) Execute ¶
func (l Link) Execute(client *SpacesLowlevelClient, body interface{}, result interface{}) error
func (Link) Get ¶
func (l Link) Get(client *SpacesLowlevelClient, result interface{}) error
func (Link) GetWithQuery ¶
func (l Link) GetWithQuery(q url.Values, client *SpacesLowlevelClient, result interface{}) error
func (Link) Post ¶
func (l Link) Post(client *SpacesLowlevelClient, body interface{}, result interface{}) error
func (Link) Put ¶
func (l Link) Put(client *SpacesLowlevelClient, body interface{}, result interface{}) error
type SpacesLowlevelClient ¶
type SpacesLowlevelClient struct {
// contains filtered or unexported fields
}
func NewSpacesLowlevelClient ¶
func (*SpacesLowlevelClient) Delete ¶
func (c *SpacesLowlevelClient) Delete(path string, target interface{}) error
func (*SpacesLowlevelClient) DeleteBody ¶ added in v1.10.0
func (c *SpacesLowlevelClient) DeleteBody(path string, body interface{}, target interface{}) error
func (*SpacesLowlevelClient) Get ¶
func (c *SpacesLowlevelClient) Get(path string, target interface{}) error
func (*SpacesLowlevelClient) GetCanonicalURL ¶
func (c *SpacesLowlevelClient) GetCanonicalURL(path string) (string, error)
func (*SpacesLowlevelClient) Post ¶
func (c *SpacesLowlevelClient) Post(path string, body interface{}, target interface{}) error
func (*SpacesLowlevelClient) Put ¶
func (c *SpacesLowlevelClient) Put(path string, body interface{}, target interface{}) error
Click to show internal directories.
Click to hide internal directories.