Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdReport ¶
func NewCmdReport(cf *cmdutils.CLIFactory) *cobra.Command
NewCmdVersion returns the current version of cli being used
Types ¶
type QueryResponse ¶
type QueryResponse struct {
Data struct {
CreateArtifact struct {
Error string `json:"error"`
Ok bool `json:"ok"`
} `json:"createArtifact"`
} `json:"data"`
}
QueryResponse is the response returned by artifacts report GraphQL query
type ReportOptions ¶
func (*ReportOptions) Run ¶
func (opts *ReportOptions) Run() int
type ReportQuery ¶
type ReportQuery struct {
Query string `json:"query"`
Variables struct {
Input ReportQueryInput `json:"input"`
} `json:"variables"`
}
ReportQueryInput is the structure of artifacts report GraphQL query
type ReportQueryInput ¶
type ReportQueryInput struct {
AccessToken string `json:"accessToken"`
CommitOID string `json:"commitOid"`
ReporterName string `json:"reporter"`
ReporterVersion string `json:"reporterVersion"`
Key string `json:"key"`
Data string `json:"data"`
AnalyzerShortcode string `json:"analyzer"`
Metadata interface{} `json:"metadata,omitempty"`
}
ReportQueryInput is the schema for variables of artifacts report GraphQL query
Click to show internal directories.
Click to hide internal directories.