Documentation ¶
Index ¶
- type Client
- func (client *Client) GetWorkflowUsage(ctx context.Context, owner, repo, workflow string, timeRange backend.TimeRange) (models.WorkflowUsage, error)
- func (client *Client) ListWorkflows(ctx context.Context, owner, repo string, opts *googlegithub.ListOptions) (*googlegithub.Workflows, *googlegithub.Response, error)
- func (client *Client) Query(ctx context.Context, q interface{}, variables map[string]interface{}) 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 is a wrapper of GitHub clients that can access the GraphQL and rest API.
func (*Client) GetWorkflowUsage ¶
func (client *Client) GetWorkflowUsage(ctx context.Context, owner, repo, workflow string, timeRange backend.TimeRange) (models.WorkflowUsage, error)
GetWorkflowUsage returns the workflow usage for a specific workflow.
func (*Client) ListWorkflows ¶
func (client *Client) ListWorkflows(ctx context.Context, owner, repo string, opts *googlegithub.ListOptions) (*googlegithub.Workflows, *googlegithub.Response, error)
ListWorkflows sends a request to the GitHub rest API to list the workflows in a specific repository.
Click to show internal directories.
Click to hide internal directories.