Documentation
¶
Index ¶
- type AppResponse
- type Client
- func (client *Client) Get(url string) (*http.Response, error)
- func (client *Client) GetApp(teamId string, appId string) (AppResponse, error)
- func (client *Client) GetJSON(url string, data interface{}) error
- func (client *Client) GetRegistryToken(team string) (string, error)
- func (client *Client) GetToken(code string) (string, error)
- func (client *Client) GetTokenURL() (string, error)
- func (client *Client) GetUser() (UserResponse, error)
- type RegistryTokenResponse
- type TeamResponse
- type TokenResponse
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetApp ¶
func (client *Client) GetApp(teamId string, appId string) (AppResponse, error)
func (*Client) GetRegistryToken ¶
func (*Client) GetTokenURL ¶
func (*Client) GetUser ¶
func (client *Client) GetUser() (UserResponse, error)
type RegistryTokenResponse ¶
type RegistryTokenResponse struct {
Token string `json:"token"`
}
type TeamResponse ¶
type TokenResponse ¶
type TokenResponse struct {
Token string `json:"token"`
}
type UserResponse ¶
type UserResponse struct {
ID string `json:"id"`
Name string `json:"name"`
Handle string `json:"handle"`
Email string `json:"email"`
Teams []TeamResponse `json:"teams"`
}
Click to show internal directories.
Click to hide internal directories.