{"modulePath":"github.com/grafana/github-datasource","version":"v1.9.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package githubclient\n\n## Types\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\nClient is a wrapper of GitHub clients that can access the GraphQL and rest API.\n\n```go\nfunc New(ctx context.Context, settings models.Settings) (*Client, error)\n```\nNew instantiates a new GitHub API client.\n\n```go\nfunc (client *Client) GetWorkflowUsage(ctx context.Context, owner, repo, workflow string, timeRange backend.TimeRange) (models.WorkflowUsage, error)\n```\nGetWorkflowUsage returns the workflow usage for a specific workflow.\n\n```go\nfunc (client *Client) ListWorkflows(ctx context.Context, owner, repo string, opts *googlegithub.ListOptions) (*googlegithub.Workflows, *googlegithub.Response, error)\n```\nListWorkflows sends a request to the GitHub rest API to list the workflows in a specific repository.\n\n```go\nfunc (client *Client) Query(ctx context.Context, q interface{}, variables map[string]interface{}) error\n```\nQuery sends a query to the GitHub GraphQL API.\n\n","path":"github.com/grafana/github-datasource/pkg/github/client","name":"githubclient","synopsis":"","isRedistributable":true}
