Documentation
¶
Index ¶
- type Client
- func (c *Client) Delete(url string) (*http.Response, []byte, *ErrorResponse)
- func (c *Client) Get(url string) (*http.Response, []byte, *ErrorResponse)
- func (c *Client) GetEndpoint(endpoint string) string
- func (c *Client) Post(url string, payload interface{}) (*http.Response, []byte, *ErrorResponse)
- func (c *Client) SetApi(api string)
- func (c *Client) SetToken(token string)
- type ClientConfig
- type ErrorResponse
- type Login
- type Organization
- type OrganizationMember
- type Register
- type Token
- type User
- type Version
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 New ¶
func New(config *ClientConfig) *Client
func (*Client) GetEndpoint ¶
type ClientConfig ¶
type ErrorResponse ¶
ErrorReponse holds a code and a message parsed from an error resposne from the helmut.cloud platform
type Organization ¶
type Organization struct {
Id string `json:"_id,omitempty"`
Name string `json:"name,omitempty"`
Creator User `json:"creator,omitempty"`
Company string `json:"company,omitempty"`
}
func (Organization) String ¶
func (o Organization) String() string
type OrganizationMember ¶
type OrganizationMember struct {
Id string `json:"_id,omitempty"`
OrganizationId string `json:"organizationId,omitempty"`
User User `json:"userDbRef,omitempty"`
Roles []string `json:"roles,omitempty"`
}
func (OrganizationMember) String ¶
func (o OrganizationMember) String() string
type Register ¶
Click to show internal directories.
Click to hide internal directories.