Documentation ¶
Index ¶
Constants ¶
const (
// QueryTypeCommits is sent by the frontend when querying commits in a GitLab repository
QueryTypeCommits = "Commits"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitsQuery ¶
type CommitsQuery struct { Query Options ListCommitsOptions `json:"options"` }
CommitsQuery is used when querying for GitLab commits
type ListCommitsOptions ¶
ListCommitsOptions provides options when retrieving commits
func CommitsOptionsWithRepo ¶
func CommitsOptionsWithRepo(opt ListCommitsOptions, projectID string) ListCommitsOptions
CommitsOptionsWithRepo adds Owner and Repo to a ListCommitsOptions. This is just for convenience
type Query ¶
type Query struct {
ProjectID string `json:"projectId"`
}
Query refers to the structure of a query built using the QueryEditor. Every query uses this query type and has to include options for each type of query. For example, listing commits can be filtered by author, but filtering contributors by author doesn't provide much value, but is included in the query schema anyways.
type Settings ¶
Settings represents the datasource settings in Grafana.
func LoadSettings ¶
func LoadSettings(settings backend.DataSourceInstanceSettings) (Settings, error)
LoadSettings converts the DataSourceInLoadSettings to usable GitLab settings.