Documentation
¶
Overview ¶
Package api is the GitHub Projects v2 data source: it wraps the go-gh GraphQL client and maps GitHub's schema onto lazydash's backend-neutral core model.
Index ¶
- type Client
- func (c *Client) GetProjectBoard(projectID string) (*core.BoardData, error)
- func (c *Client) ListOrgProjects(org string) ([]core.Project, error)
- func (c *Client) ListUserProjects(login string) ([]core.Project, error)
- func (c *Client) ListViewerOrgs() ([]string, error)
- func (c *Client) ViewerLogin() (string, error)
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
}
Client wraps the go-gh GraphQL client.
func (*Client) GetProjectBoard ¶
GetProjectBoard fetches views, fields, and all items for a project. Use core.GroupByField to render a specific view's columns.
func (*Client) ListOrgProjects ¶
ListOrgProjects fetches up to 50 open projects for the given org login.
func (*Client) ListUserProjects ¶
ListUserProjects fetches up to 50 open projects for the given user login.
func (*Client) ListViewerOrgs ¶
ListViewerOrgs returns the login names of orgs the authenticated user belongs to.
func (*Client) ViewerLogin ¶
ViewerLogin returns the authenticated user's login.
Click to show internal directories.
Click to hide internal directories.