Documentation
¶
Overview ¶
Copyright The OpenTelemetry Authors SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- type BranchHistory
- type BranchHistoryTargetBlob
- type BranchHistoryTargetCommit
- type BranchHistoryTargetCommitHistoryCommitHistoryConnection
- type BranchHistoryTargetCommitHistoryCommitHistoryConnectionPageInfo
- type BranchHistoryTargetGitObject
- type BranchHistoryTargetTag
- type BranchHistoryTargetTree
- type BranchNode
- type BranchNodeCompareComparison
- type BranchNodeRepository
- type BranchNodeRepositoryDefaultBranchRef
- type CVENode
- type CVENodeSecurityVulnerability
- type CommitNode
- type Config
- type Factory
- type PullRequestNode
- func (v *PullRequestNode) GetCreatedAt() time.Time
- func (v *PullRequestNode) GetHeadRefName() string
- func (v *PullRequestNode) GetMergeCommit() PullRequestNodeMergeCommit
- func (v *PullRequestNode) GetMerged() bool
- func (v *PullRequestNode) GetMergedAt() time.Time
- func (v *PullRequestNode) GetReviews() PullRequestNodeReviewsPullRequestReviewConnection
- type PullRequestNodeMergeCommit
- type PullRequestNodeMergeCommitDeploymentsDeploymentConnection
- type PullRequestNodeMergeCommitDeploymentsDeploymentConnectionNodesDeployment
- type PullRequestNodeReviewsPullRequestReviewConnection
- type PullRequestNodeReviewsPullRequestReviewConnectionNodesPullRequestReview
- type PullRequestState
- type Repo
- type RepoDefaultBranchRef
- type SearchNode
- type SearchNodeApp
- type SearchNodeDiscussion
- type SearchNodeIssue
- type SearchNodeMarketplaceListing
- type SearchNodeOrganization
- type SearchNodePullRequest
- type SearchNodeRepository
- func (v *SearchNodeRepository) GetDefaultBranchRef() RepoDefaultBranchRef
- func (v *SearchNodeRepository) GetId() string
- func (v *SearchNodeRepository) GetName() string
- func (v *SearchNodeRepository) GetTypename() string
- func (v *SearchNodeRepository) MarshalJSON() ([]byte, error)
- func (v *SearchNodeRepository) UnmarshalJSON(b []byte) error
- type SearchNodeUser
- type SecurityAdvisorySeverity
- type TeamNode
- type VulnerabilityAlerts
- type VulnerabilityAlertsPageInfo
Constants ¶
const (
// TypeStr is the value of "type" key in configuration.
TypeStr = "github"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchHistory ¶
type BranchHistory struct { // The object the ref points to. Returns null when object does not exist. Target BranchHistoryTargetGitObject `json:"-"` }
BranchHistory includes the requested fields of the GraphQL type Ref. The GraphQL type's documentation follows.
Represents a Git reference.
func (*BranchHistory) GetTarget ¶
func (v *BranchHistory) GetTarget() BranchHistoryTargetGitObject
GetTarget returns BranchHistory.Target, and is useful for accessing the field via an interface.
func (*BranchHistory) MarshalJSON ¶
func (v *BranchHistory) MarshalJSON() ([]byte, error)
func (*BranchHistory) UnmarshalJSON ¶
func (v *BranchHistory) UnmarshalJSON(b []byte) error
type BranchHistoryTargetBlob ¶
type BranchHistoryTargetBlob struct {
Typename string `json:"__typename"`
}
BranchHistoryTargetBlob includes the requested fields of the GraphQL type Blob. The GraphQL type's documentation follows.
Represents a Git blob.
func (*BranchHistoryTargetBlob) GetTypename ¶
func (v *BranchHistoryTargetBlob) GetTypename() string
GetTypename returns BranchHistoryTargetBlob.Typename, and is useful for accessing the field via an interface.
type BranchHistoryTargetCommit ¶
type BranchHistoryTargetCommit struct { Typename string `json:"__typename"` // The Node ID of the Commit object Id string `json:"id"` // The linear commit history starting from (and including) this commit, in the same order as `git log`. History BranchHistoryTargetCommitHistoryCommitHistoryConnection `json:"history"` }
BranchHistoryTargetCommit includes the requested fields of the GraphQL type Commit. The GraphQL type's documentation follows.
Represents a Git commit.
func (*BranchHistoryTargetCommit) GetHistory ¶
func (v *BranchHistoryTargetCommit) GetHistory() BranchHistoryTargetCommitHistoryCommitHistoryConnection
GetHistory returns BranchHistoryTargetCommit.History, and is useful for accessing the field via an interface.
func (*BranchHistoryTargetCommit) GetId ¶
func (v *BranchHistoryTargetCommit) GetId() string
GetId returns BranchHistoryTargetCommit.Id, and is useful for accessing the field via an interface.
func (*BranchHistoryTargetCommit) GetTypename ¶
func (v *BranchHistoryTargetCommit) GetTypename() string
GetTypename returns BranchHistoryTargetCommit.Typename, and is useful for accessing the field via an interface.
type BranchHistoryTargetCommitHistoryCommitHistoryConnection ¶
type BranchHistoryTargetCommitHistoryCommitHistoryConnection struct { // A list of nodes. Nodes []CommitNode `json:"nodes"` // Information to aid in pagination. PageInfo BranchHistoryTargetCommitHistoryCommitHistoryConnectionPageInfo `json:"pageInfo"` }
BranchHistoryTargetCommitHistoryCommitHistoryConnection includes the requested fields of the GraphQL type CommitHistoryConnection. The GraphQL type's documentation follows.
The connection type for Commit.
func (*BranchHistoryTargetCommitHistoryCommitHistoryConnection) GetNodes ¶
func (v *BranchHistoryTargetCommitHistoryCommitHistoryConnection) GetNodes() []CommitNode
GetNodes returns BranchHistoryTargetCommitHistoryCommitHistoryConnection.Nodes, and is useful for accessing the field via an interface.
func (*BranchHistoryTargetCommitHistoryCommitHistoryConnection) GetPageInfo ¶
func (v *BranchHistoryTargetCommitHistoryCommitHistoryConnection) GetPageInfo() BranchHistoryTargetCommitHistoryCommitHistoryConnectionPageInfo
GetPageInfo returns BranchHistoryTargetCommitHistoryCommitHistoryConnection.PageInfo, and is useful for accessing the field via an interface.
type BranchHistoryTargetCommitHistoryCommitHistoryConnectionPageInfo ¶
type BranchHistoryTargetCommitHistoryCommitHistoryConnectionPageInfo struct { // When paginating forwards, the cursor to continue. EndCursor string `json:"endCursor"` // When paginating forwards, are there more items? HasNextPage bool `json:"hasNextPage"` }
BranchHistoryTargetCommitHistoryCommitHistoryConnectionPageInfo includes the requested fields of the GraphQL type PageInfo. The GraphQL type's documentation follows.
Information about pagination in a connection.
func (*BranchHistoryTargetCommitHistoryCommitHistoryConnectionPageInfo) GetEndCursor ¶
func (v *BranchHistoryTargetCommitHistoryCommitHistoryConnectionPageInfo) GetEndCursor() string
GetEndCursor returns BranchHistoryTargetCommitHistoryCommitHistoryConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface.
func (*BranchHistoryTargetCommitHistoryCommitHistoryConnectionPageInfo) GetHasNextPage ¶
func (v *BranchHistoryTargetCommitHistoryCommitHistoryConnectionPageInfo) GetHasNextPage() bool
GetHasNextPage returns BranchHistoryTargetCommitHistoryCommitHistoryConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface.
type BranchHistoryTargetGitObject ¶
type BranchHistoryTargetGitObject interface { // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). GetTypename() string // contains filtered or unexported methods }
BranchHistoryTargetGitObject includes the requested fields of the GraphQL interface GitObject.
BranchHistoryTargetGitObject is implemented by the following types: BranchHistoryTargetBlob BranchHistoryTargetCommit BranchHistoryTargetTag BranchHistoryTargetTree The GraphQL type's documentation follows.
Represents a Git object.
type BranchHistoryTargetTag ¶
type BranchHistoryTargetTag struct {
Typename string `json:"__typename"`
}
BranchHistoryTargetTag includes the requested fields of the GraphQL type Tag. The GraphQL type's documentation follows.
Represents a Git tag.
func (*BranchHistoryTargetTag) GetTypename ¶
func (v *BranchHistoryTargetTag) GetTypename() string
GetTypename returns BranchHistoryTargetTag.Typename, and is useful for accessing the field via an interface.
type BranchHistoryTargetTree ¶
type BranchHistoryTargetTree struct {
Typename string `json:"__typename"`
}
BranchHistoryTargetTree includes the requested fields of the GraphQL type Tree. The GraphQL type's documentation follows.
Represents a Git tree.
func (*BranchHistoryTargetTree) GetTypename ¶
func (v *BranchHistoryTargetTree) GetTypename() string
GetTypename returns BranchHistoryTargetTree.Typename, and is useful for accessing the field via an interface.
type BranchNode ¶
type BranchNode struct { // The ref name. Name string `json:"name"` // Compares the current ref as a base ref to another head ref, if the comparison can be made. Compare BranchNodeCompareComparison `json:"compare"` // The repository the ref belongs to. Repository BranchNodeRepository `json:"repository"` }
BranchNode includes the requested fields of the GraphQL type Ref. The GraphQL type's documentation follows.
Represents a Git reference.
func (*BranchNode) GetCompare ¶
func (v *BranchNode) GetCompare() BranchNodeCompareComparison
GetCompare returns BranchNode.Compare, and is useful for accessing the field via an interface.
func (*BranchNode) GetName ¶
func (v *BranchNode) GetName() string
GetName returns BranchNode.Name, and is useful for accessing the field via an interface.
func (*BranchNode) GetRepository ¶
func (v *BranchNode) GetRepository() BranchNodeRepository
GetRepository returns BranchNode.Repository, and is useful for accessing the field via an interface.
type BranchNodeCompareComparison ¶
type BranchNodeCompareComparison struct { // The number of commits ahead of the base branch. AheadBy int `json:"aheadBy"` // The number of commits behind the base branch. BehindBy int `json:"behindBy"` }
BranchNodeCompareComparison includes the requested fields of the GraphQL type Comparison. The GraphQL type's documentation follows.
Represents a comparison between two commit revisions.
func (*BranchNodeCompareComparison) GetAheadBy ¶
func (v *BranchNodeCompareComparison) GetAheadBy() int
GetAheadBy returns BranchNodeCompareComparison.AheadBy, and is useful for accessing the field via an interface.
func (*BranchNodeCompareComparison) GetBehindBy ¶
func (v *BranchNodeCompareComparison) GetBehindBy() int
GetBehindBy returns BranchNodeCompareComparison.BehindBy, and is useful for accessing the field via an interface.
type BranchNodeRepository ¶
type BranchNodeRepository struct { // The name of the repository. Name string `json:"name"` // The Ref associated with the repository's default branch. DefaultBranchRef BranchNodeRepositoryDefaultBranchRef `json:"defaultBranchRef"` }
BranchNodeRepository includes the requested fields of the GraphQL type Repository. The GraphQL type's documentation follows.
A repository contains the content for a project.
func (*BranchNodeRepository) GetDefaultBranchRef ¶
func (v *BranchNodeRepository) GetDefaultBranchRef() BranchNodeRepositoryDefaultBranchRef
GetDefaultBranchRef returns BranchNodeRepository.DefaultBranchRef, and is useful for accessing the field via an interface.
func (*BranchNodeRepository) GetName ¶
func (v *BranchNodeRepository) GetName() string
GetName returns BranchNodeRepository.Name, and is useful for accessing the field via an interface.
type BranchNodeRepositoryDefaultBranchRef ¶
type BranchNodeRepositoryDefaultBranchRef struct { // The ref name. Name string `json:"name"` }
BranchNodeRepositoryDefaultBranchRef includes the requested fields of the GraphQL type Ref. The GraphQL type's documentation follows.
Represents a Git reference.
func (*BranchNodeRepositoryDefaultBranchRef) GetName ¶
func (v *BranchNodeRepositoryDefaultBranchRef) GetName() string
GetName returns BranchNodeRepositoryDefaultBranchRef.Name, and is useful for accessing the field via an interface.
type CVENode ¶ added in v0.74.0
type CVENode struct { // The Node ID of the RepositoryVulnerabilityAlert object Id string `json:"id"` // The associated security vulnerability SecurityVulnerability CVENodeSecurityVulnerability `json:"securityVulnerability"` }
CVENode includes the requested fields of the GraphQL type RepositoryVulnerabilityAlert. The GraphQL type's documentation follows.
A Dependabot alert for a repository with a dependency affected by a security vulnerability.
func (*CVENode) GetId ¶ added in v0.74.0
GetId returns CVENode.Id, and is useful for accessing the field via an interface.
func (*CVENode) GetSecurityVulnerability ¶ added in v0.74.0
func (v *CVENode) GetSecurityVulnerability() CVENodeSecurityVulnerability
GetSecurityVulnerability returns CVENode.SecurityVulnerability, and is useful for accessing the field via an interface.
type CVENodeSecurityVulnerability ¶ added in v0.74.0
type CVENodeSecurityVulnerability struct { // The severity of the vulnerability within this package Severity SecurityAdvisorySeverity `json:"severity"` }
CVENodeSecurityVulnerability includes the requested fields of the GraphQL type SecurityVulnerability. The GraphQL type's documentation follows.
An individual vulnerability within an Advisory
func (*CVENodeSecurityVulnerability) GetSeverity ¶ added in v0.74.0
func (v *CVENodeSecurityVulnerability) GetSeverity() SecurityAdvisorySeverity
GetSeverity returns CVENodeSecurityVulnerability.Severity, and is useful for accessing the field via an interface.
type CommitNode ¶
type CommitNode struct { // The datetime when this commit was committed. CommittedDate time.Time `json:"committedDate"` // The number of additions in this commit. Additions int `json:"additions"` // The number of deletions in this commit. Deletions int `json:"deletions"` }
CommitNode includes the requested fields of the GraphQL type Commit. The GraphQL type's documentation follows.
Represents a Git commit.
func (*CommitNode) GetAdditions ¶
func (v *CommitNode) GetAdditions() int
GetAdditions returns CommitNode.Additions, and is useful for accessing the field via an interface.
func (*CommitNode) GetCommittedDate ¶
func (v *CommitNode) GetCommittedDate() time.Time
GetCommittedDate returns CommitNode.CommittedDate, and is useful for accessing the field via an interface.
func (*CommitNode) GetDeletions ¶
func (v *CommitNode) GetDeletions() int
GetDeletions returns CommitNode.Deletions, and is useful for accessing the field via an interface.
type Config ¶
type Config struct { metadata.MetricsBuilderConfig `mapstructure:",squash"` confighttp.ClientConfig `mapstructure:",squash"` internal.ScraperConfig // GitHubOrg is the name of the GitHub organization to srape (github scraper only) GitHubOrg string `mapstructure:"github_org"` // SearchQuery is the query to use when defining a custom search for repository data SearchQuery string `mapstructure:"search_query"` GitHubTeam string `mapstructure:"github_team"` }
Config relating to Github Metric Scraper.
type PullRequestNode ¶
type PullRequestNode struct { // Identifies the date and time when the object was created. CreatedAt time.Time `json:"createdAt"` // Whether or not the pull request was merged. Merged bool `json:"merged"` // The date and time that the pull request was merged. MergedAt time.Time `json:"mergedAt"` // The commit that was created when this pull request was merged. MergeCommit PullRequestNodeMergeCommit `json:"mergeCommit"` // Identifies the name of the head Ref associated with the pull request, even if the ref has been deleted. HeadRefName string `json:"headRefName"` // A list of reviews associated with the pull request. Reviews PullRequestNodeReviewsPullRequestReviewConnection `json:"reviews"` }
PullRequestNode includes the requested fields of the GraphQL type PullRequest. The GraphQL type's documentation follows.
A repository pull request.
func (*PullRequestNode) GetCreatedAt ¶
func (v *PullRequestNode) GetCreatedAt() time.Time
GetCreatedAt returns PullRequestNode.CreatedAt, and is useful for accessing the field via an interface.
func (*PullRequestNode) GetHeadRefName ¶
func (v *PullRequestNode) GetHeadRefName() string
GetHeadRefName returns PullRequestNode.HeadRefName, and is useful for accessing the field via an interface.
func (*PullRequestNode) GetMergeCommit ¶
func (v *PullRequestNode) GetMergeCommit() PullRequestNodeMergeCommit
GetMergeCommit returns PullRequestNode.MergeCommit, and is useful for accessing the field via an interface.
func (*PullRequestNode) GetMerged ¶
func (v *PullRequestNode) GetMerged() bool
GetMerged returns PullRequestNode.Merged, and is useful for accessing the field via an interface.
func (*PullRequestNode) GetMergedAt ¶
func (v *PullRequestNode) GetMergedAt() time.Time
GetMergedAt returns PullRequestNode.MergedAt, and is useful for accessing the field via an interface.
func (*PullRequestNode) GetReviews ¶
func (v *PullRequestNode) GetReviews() PullRequestNodeReviewsPullRequestReviewConnection
GetReviews returns PullRequestNode.Reviews, and is useful for accessing the field via an interface.
type PullRequestNodeMergeCommit ¶
type PullRequestNodeMergeCommit struct { // The deployments associated with a commit. Deployments PullRequestNodeMergeCommitDeploymentsDeploymentConnection `json:"deployments"` }
PullRequestNodeMergeCommit includes the requested fields of the GraphQL type Commit. The GraphQL type's documentation follows.
Represents a Git commit.
func (*PullRequestNodeMergeCommit) GetDeployments ¶
func (v *PullRequestNodeMergeCommit) GetDeployments() PullRequestNodeMergeCommitDeploymentsDeploymentConnection
GetDeployments returns PullRequestNodeMergeCommit.Deployments, and is useful for accessing the field via an interface.
type PullRequestNodeMergeCommitDeploymentsDeploymentConnection ¶
type PullRequestNodeMergeCommitDeploymentsDeploymentConnection struct { // A list of nodes. Nodes []PullRequestNodeMergeCommitDeploymentsDeploymentConnectionNodesDeployment `json:"nodes"` // Identifies the total count of items in the connection. TotalCount int `json:"totalCount"` }
PullRequestNodeMergeCommitDeploymentsDeploymentConnection includes the requested fields of the GraphQL type DeploymentConnection. The GraphQL type's documentation follows.
The connection type for Deployment.
func (*PullRequestNodeMergeCommitDeploymentsDeploymentConnection) GetNodes ¶
func (v *PullRequestNodeMergeCommitDeploymentsDeploymentConnection) GetNodes() []PullRequestNodeMergeCommitDeploymentsDeploymentConnectionNodesDeployment
GetNodes returns PullRequestNodeMergeCommitDeploymentsDeploymentConnection.Nodes, and is useful for accessing the field via an interface.
func (*PullRequestNodeMergeCommitDeploymentsDeploymentConnection) GetTotalCount ¶
func (v *PullRequestNodeMergeCommitDeploymentsDeploymentConnection) GetTotalCount() int
GetTotalCount returns PullRequestNodeMergeCommitDeploymentsDeploymentConnection.TotalCount, and is useful for accessing the field via an interface.
type PullRequestNodeMergeCommitDeploymentsDeploymentConnectionNodesDeployment ¶
type PullRequestNodeMergeCommitDeploymentsDeploymentConnectionNodesDeployment struct { // Identifies the date and time when the object was created. CreatedAt time.Time `json:"createdAt"` }
PullRequestNodeMergeCommitDeploymentsDeploymentConnectionNodesDeployment includes the requested fields of the GraphQL type Deployment. The GraphQL type's documentation follows.
Represents triggered deployment instance.
func (*PullRequestNodeMergeCommitDeploymentsDeploymentConnectionNodesDeployment) GetCreatedAt ¶
func (v *PullRequestNodeMergeCommitDeploymentsDeploymentConnectionNodesDeployment) GetCreatedAt() time.Time
GetCreatedAt returns PullRequestNodeMergeCommitDeploymentsDeploymentConnectionNodesDeployment.CreatedAt, and is useful for accessing the field via an interface.
type PullRequestNodeReviewsPullRequestReviewConnection ¶
type PullRequestNodeReviewsPullRequestReviewConnection struct { // Identifies the total count of items in the connection. TotalCount int `json:"totalCount"` // A list of nodes. Nodes []PullRequestNodeReviewsPullRequestReviewConnectionNodesPullRequestReview `json:"nodes"` }
PullRequestNodeReviewsPullRequestReviewConnection includes the requested fields of the GraphQL type PullRequestReviewConnection. The GraphQL type's documentation follows.
The connection type for PullRequestReview.
func (*PullRequestNodeReviewsPullRequestReviewConnection) GetNodes ¶
func (v *PullRequestNodeReviewsPullRequestReviewConnection) GetNodes() []PullRequestNodeReviewsPullRequestReviewConnectionNodesPullRequestReview
GetNodes returns PullRequestNodeReviewsPullRequestReviewConnection.Nodes, and is useful for accessing the field via an interface.
func (*PullRequestNodeReviewsPullRequestReviewConnection) GetTotalCount ¶
func (v *PullRequestNodeReviewsPullRequestReviewConnection) GetTotalCount() int
GetTotalCount returns PullRequestNodeReviewsPullRequestReviewConnection.TotalCount, and is useful for accessing the field via an interface.
type PullRequestNodeReviewsPullRequestReviewConnectionNodesPullRequestReview ¶
type PullRequestNodeReviewsPullRequestReviewConnectionNodesPullRequestReview struct { // Identifies the date and time when the object was created. CreatedAt time.Time `json:"createdAt"` }
PullRequestNodeReviewsPullRequestReviewConnectionNodesPullRequestReview includes the requested fields of the GraphQL type PullRequestReview. The GraphQL type's documentation follows.
A review object for a given pull request.
func (*PullRequestNodeReviewsPullRequestReviewConnectionNodesPullRequestReview) GetCreatedAt ¶
func (v *PullRequestNodeReviewsPullRequestReviewConnectionNodesPullRequestReview) GetCreatedAt() time.Time
GetCreatedAt returns PullRequestNodeReviewsPullRequestReviewConnectionNodesPullRequestReview.CreatedAt, and is useful for accessing the field via an interface.
type PullRequestState ¶
type PullRequestState string
The possible states of a pull request.
const ( // A pull request that has been closed without being merged. PullRequestStateClosed PullRequestState = "CLOSED" // A pull request that has been closed by being merged. PullRequestStateMerged PullRequestState = "MERGED" // A pull request that is still open. PullRequestStateOpen PullRequestState = "OPEN" )
type Repo ¶ added in v0.74.0
type Repo struct { // The Node ID of the Repository object Id string `json:"id"` // The name of the repository. Name string `json:"name"` // The Ref associated with the repository's default branch. DefaultBranchRef RepoDefaultBranchRef `json:"defaultBranchRef"` }
Repo includes the GraphQL fields of Repository requested by the fragment Repo. The GraphQL type's documentation follows.
A repository contains the content for a project.
func (*Repo) GetDefaultBranchRef ¶ added in v0.74.0
func (v *Repo) GetDefaultBranchRef() RepoDefaultBranchRef
GetDefaultBranchRef returns Repo.DefaultBranchRef, and is useful for accessing the field via an interface.
type RepoDefaultBranchRef ¶ added in v0.74.0
type RepoDefaultBranchRef struct { // The ref name. Name string `json:"name"` }
RepoDefaultBranchRef includes the requested fields of the GraphQL type Ref. The GraphQL type's documentation follows.
Represents a Git reference.
func (*RepoDefaultBranchRef) GetName ¶ added in v0.74.0
func (v *RepoDefaultBranchRef) GetName() string
GetName returns RepoDefaultBranchRef.Name, and is useful for accessing the field via an interface.
type SearchNode ¶
type SearchNode interface { // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). GetTypename() string // contains filtered or unexported methods }
SearchNode includes the requested fields of the GraphQL interface SearchResultItem.
SearchNode is implemented by the following types: SearchNodeApp SearchNodeDiscussion SearchNodeIssue SearchNodeMarketplaceListing SearchNodeOrganization SearchNodePullRequest SearchNodeRepository SearchNodeUser The GraphQL type's documentation follows.
The results of a search.
type SearchNodeApp ¶
type SearchNodeApp struct {
Typename string `json:"__typename"`
}
SearchNodeApp includes the requested fields of the GraphQL type App. The GraphQL type's documentation follows.
A GitHub App.
func (*SearchNodeApp) GetTypename ¶
func (v *SearchNodeApp) GetTypename() string
GetTypename returns SearchNodeApp.Typename, and is useful for accessing the field via an interface.
type SearchNodeDiscussion ¶
type SearchNodeDiscussion struct {
Typename string `json:"__typename"`
}
SearchNodeDiscussion includes the requested fields of the GraphQL type Discussion. The GraphQL type's documentation follows.
A discussion in a repository.
func (*SearchNodeDiscussion) GetTypename ¶
func (v *SearchNodeDiscussion) GetTypename() string
GetTypename returns SearchNodeDiscussion.Typename, and is useful for accessing the field via an interface.
type SearchNodeIssue ¶
type SearchNodeIssue struct {
Typename string `json:"__typename"`
}
SearchNodeIssue includes the requested fields of the GraphQL type Issue. The GraphQL type's documentation follows.
An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project.
func (*SearchNodeIssue) GetTypename ¶
func (v *SearchNodeIssue) GetTypename() string
GetTypename returns SearchNodeIssue.Typename, and is useful for accessing the field via an interface.
type SearchNodeMarketplaceListing ¶
type SearchNodeMarketplaceListing struct {
Typename string `json:"__typename"`
}
SearchNodeMarketplaceListing includes the requested fields of the GraphQL type MarketplaceListing. The GraphQL type's documentation follows.
A listing in the GitHub integration marketplace.
func (*SearchNodeMarketplaceListing) GetTypename ¶
func (v *SearchNodeMarketplaceListing) GetTypename() string
GetTypename returns SearchNodeMarketplaceListing.Typename, and is useful for accessing the field via an interface.
type SearchNodeOrganization ¶
type SearchNodeOrganization struct {
Typename string `json:"__typename"`
}
SearchNodeOrganization includes the requested fields of the GraphQL type Organization. The GraphQL type's documentation follows.
An account on GitHub, with one or more owners, that has repositories, members and teams.
func (*SearchNodeOrganization) GetTypename ¶
func (v *SearchNodeOrganization) GetTypename() string
GetTypename returns SearchNodeOrganization.Typename, and is useful for accessing the field via an interface.
type SearchNodePullRequest ¶
type SearchNodePullRequest struct {
Typename string `json:"__typename"`
}
SearchNodePullRequest includes the requested fields of the GraphQL type PullRequest. The GraphQL type's documentation follows.
A repository pull request.
func (*SearchNodePullRequest) GetTypename ¶
func (v *SearchNodePullRequest) GetTypename() string
GetTypename returns SearchNodePullRequest.Typename, and is useful for accessing the field via an interface.
type SearchNodeRepository ¶
SearchNodeRepository includes the requested fields of the GraphQL type Repository. The GraphQL type's documentation follows.
A repository contains the content for a project.
func (*SearchNodeRepository) GetDefaultBranchRef ¶
func (v *SearchNodeRepository) GetDefaultBranchRef() RepoDefaultBranchRef
GetDefaultBranchRef returns SearchNodeRepository.DefaultBranchRef, and is useful for accessing the field via an interface.
func (*SearchNodeRepository) GetId ¶
func (v *SearchNodeRepository) GetId() string
GetId returns SearchNodeRepository.Id, and is useful for accessing the field via an interface.
func (*SearchNodeRepository) GetName ¶
func (v *SearchNodeRepository) GetName() string
GetName returns SearchNodeRepository.Name, and is useful for accessing the field via an interface.
func (*SearchNodeRepository) GetTypename ¶
func (v *SearchNodeRepository) GetTypename() string
GetTypename returns SearchNodeRepository.Typename, and is useful for accessing the field via an interface.
func (*SearchNodeRepository) MarshalJSON ¶ added in v0.74.0
func (v *SearchNodeRepository) MarshalJSON() ([]byte, error)
func (*SearchNodeRepository) UnmarshalJSON ¶ added in v0.74.0
func (v *SearchNodeRepository) UnmarshalJSON(b []byte) error
type SearchNodeUser ¶
type SearchNodeUser struct {
Typename string `json:"__typename"`
}
SearchNodeUser includes the requested fields of the GraphQL type User. The GraphQL type's documentation follows.
A user is an individual's account on GitHub that owns repositories and can make new content.
func (*SearchNodeUser) GetTypename ¶
func (v *SearchNodeUser) GetTypename() string
GetTypename returns SearchNodeUser.Typename, and is useful for accessing the field via an interface.
type SecurityAdvisorySeverity ¶ added in v0.74.0
type SecurityAdvisorySeverity string
Severity of the vulnerability.
const ( // Critical. SecurityAdvisorySeverityCritical SecurityAdvisorySeverity = "CRITICAL" // High. SecurityAdvisorySeverityHigh SecurityAdvisorySeverity = "HIGH" // Low. SecurityAdvisorySeverityLow SecurityAdvisorySeverity = "LOW" // Moderate. SecurityAdvisorySeverityModerate SecurityAdvisorySeverity = "MODERATE" )
type TeamNode ¶ added in v0.74.0
type TeamNode struct {
Repo `json:"-"`
}
TeamNode includes the requested fields of the GraphQL type Repository. The GraphQL type's documentation follows.
A repository contains the content for a project.
func (*TeamNode) GetDefaultBranchRef ¶ added in v0.74.0
func (v *TeamNode) GetDefaultBranchRef() RepoDefaultBranchRef
GetDefaultBranchRef returns TeamNode.DefaultBranchRef, and is useful for accessing the field via an interface.
func (*TeamNode) GetId ¶ added in v0.74.0
GetId returns TeamNode.Id, and is useful for accessing the field via an interface.
func (*TeamNode) GetName ¶ added in v0.74.0
GetName returns TeamNode.Name, and is useful for accessing the field via an interface.
func (*TeamNode) MarshalJSON ¶ added in v0.74.0
func (*TeamNode) UnmarshalJSON ¶ added in v0.74.0
type VulnerabilityAlerts ¶ added in v0.74.0
type VulnerabilityAlerts struct { // Information to aid in pagination. PageInfo VulnerabilityAlertsPageInfo `json:"pageInfo"` // A list of nodes. Nodes []CVENode `json:"nodes"` }
VulnerabilityAlerts includes the requested fields of the GraphQL type RepositoryVulnerabilityAlertConnection. The GraphQL type's documentation follows.
The connection type for RepositoryVulnerabilityAlert.
func (*VulnerabilityAlerts) GetNodes ¶ added in v0.74.0
func (v *VulnerabilityAlerts) GetNodes() []CVENode
GetNodes returns VulnerabilityAlerts.Nodes, and is useful for accessing the field via an interface.
func (*VulnerabilityAlerts) GetPageInfo ¶ added in v0.74.0
func (v *VulnerabilityAlerts) GetPageInfo() VulnerabilityAlertsPageInfo
GetPageInfo returns VulnerabilityAlerts.PageInfo, and is useful for accessing the field via an interface.
type VulnerabilityAlertsPageInfo ¶ added in v0.74.0
type VulnerabilityAlertsPageInfo struct { // When paginating forwards, are there more items? HasNextPage bool `json:"hasNextPage"` // When paginating forwards, the cursor to continue. EndCursor string `json:"endCursor"` }
VulnerabilityAlertsPageInfo includes the requested fields of the GraphQL type PageInfo. The GraphQL type's documentation follows.
Information about pagination in a connection.
func (*VulnerabilityAlertsPageInfo) GetEndCursor ¶ added in v0.74.0
func (v *VulnerabilityAlertsPageInfo) GetEndCursor() string
GetEndCursor returns VulnerabilityAlertsPageInfo.EndCursor, and is useful for accessing the field via an interface.
func (*VulnerabilityAlertsPageInfo) GetHasNextPage ¶ added in v0.74.0
func (v *VulnerabilityAlertsPageInfo) GetHasNextPage() bool
GetHasNextPage returns VulnerabilityAlertsPageInfo.HasNextPage, and is useful for accessing the field via an interface.