Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Me(ctx context.Context) (*User, error)
- func (c *Client) ProjectList(ctx context.Context, opts ProjectListOpts) (*Projects, error)
- func (c *Client) Request(ctx context.Context, opts ReqOpts, ret interface{}) error
- func (c *Client) TeamList(ctx context.Context, opts TeamListOpts) (*Teams, error)
- func (c *Client) WorkspaceList(ctx context.Context) (*Workspaces, error)
- type Project
- type ProjectListOpts
- type Projects
- type ReqOpts
- type Team
- type TeamListOpts
- type Teams
- type User
- type Workspace
- type Workspaces
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ProjectList ¶
func (*Client) WorkspaceList ¶ added in v1.2.0
func (c *Client) WorkspaceList(ctx context.Context) (*Workspaces, error)
type ProjectListOpts ¶
type Team ¶ added in v1.4.0
type Team struct { GID string `json:"gid,omitempty"` Name string `json:"name,omitempty"` ResourceType string `json:"resource_type,omitempty"` Description string `json:"description,omitempty"` HTMLDescription string `json:"html_description,omitempty"` Workspace Workspace `json:"organization,omitempty"` PermalinkURL string `json:"permalink_url,omitempty"` Visibility string `json:"visibility,omitempty"` }
type TeamListOpts ¶ added in v1.4.0
type User ¶
type User struct { GID string `json:"gid,omitempty"` Email string `json:"email,omitempty"` Name string `json:"name,omitempty"` Photo struct { Image2121 string `json:"image_21x21,omitempty"` Image2727 string `json:"image_27x27,omitempty"` Image3636 string `json:"image_36x36,omitempty"` Image6060 string `json:"image_60x60,omitempty"` Image128128 string `json:"image_128x128,omitempty"` } `json:"photo,omitempty"` ResourceType string `json:"resource_type,omitempty"` Workspaces []Workspace `json:"workspaces,omitempty"` }
type Workspaces ¶ added in v1.2.0
type Workspaces []Workspace
Click to show internal directories.
Click to hide internal directories.