{"modulePath":"github.com/deepsourcelabs/cli","version":"v0.10.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package report\n\n## Constants\n\n```go\nconst (\n\tCliVersion = \"v0.8.0\"\n)\n```\n\n## Variables\n\n```go\nvar ErrInvalidDSN = errors.New(\"DeepSource | Error | Invalid DSN. Cross verify DEEPSOURCE_DSN value against the settings page of the repository\")\n```\n\n## Functions\n\n```go\nfunc NewCmdReport() *cobra.Command\n```\nNewCmdVersion returns the current version of cli being used\n\n## Types\n\n```go\ntype DSN struct {\n\tProtocol string\n\tHost     string\n\tToken    string\n}\n```\n\n```go\nfunc NewDSN(raw string) (*DSN, error)\n```\n\n```go\ntype QueryResponse struct {\n\tData struct {\n\t\tCreateArtifact struct {\n\t\t\tError   string `json:\"error\"`\n\t\t\tMessage string `json:\"message\"`\n\t\t\tOk      bool   `json:\"ok\"`\n\t\t} `json:\"createArtifact\"`\n\t} `json:\"data\"`\n}\n```\nQueryResponse is the response returned by artifacts report GraphQL query\n\n```go\ntype ReportOptions struct {\n\tAnalyzer                    string\n\tAnalyzerType                string\n\tKey                         string\n\tValue                       string\n\tValueFile                   string\n\tSkipCertificateVerification bool\n\tDSN                         string\n\tUseOIDC                     bool\n\tOIDCRequestToken            string // id token to manually get an OIDC token\n\tOIDCRequestUrl              string // url to manually get an OIDC token\n\tDeepSourceHostEndpoint      string // DeepSource host endpoint where the app is running. Defaults to the cloud endpoint https://app.deepsource.com\n\tOIDCProvider                string // OIDC provider to use for authentication\n}\n```\n\n```go\nfunc (opts *ReportOptions) Run() int\n```\n\n```go\ntype ReportQuery struct {\n\tQuery     string `json:\"query\"`\n\tVariables struct {\n\t\tInput ReportQueryInput `json:\"input\"`\n\t} `json:\"variables\"`\n}\n```\nReportQueryInput is the structure of artifacts report GraphQL query\n\n```go\ntype ReportQueryInput struct {\n\tAccessToken       string      `json:\"accessToken\"`\n\tCommitOID         string      `json:\"commitOid\"`\n\tReporterName      string      `json:\"reporter\"`\n\tReporterVersion   string      `json:\"reporterVersion\"`\n\tKey               string      `json:\"key\"`\n\tData              string      `json:\"data\"`\n\tAnalyzerShortcode string      `json:\"analyzer\"`\n\tAnalyzerType      string      `json:\"analyzerType,omitempty\"`\n\tMetadata          interface{} `json:\"metadata,omitempty\"`\n}\n```\nReportQueryInput is the schema for variables of artifacts report GraphQL query\n\n","path":"github.com/deepsourcelabs/cli/command/report","name":"report","synopsis":"","isRedistributable":true}
