Documentation ¶
Index ¶
- Constants
- func CheckTokenExpiry(client *DSClient, token string) (bool, error)
- func GetDeviceCode(client *DSClient) (string, string, string, int, int, error)
- func GetRepoStatus(client *DSClient, owner string, repoName string, provider string) (bool, error)
- func GetSupportedAnalyzers(client *DSClient) ([]string, []string, []string, map[string]string, error)
- func GetSupportedTransformers(client *DSClient) ([]string, []string, map[string]string, error)
- type AnalyzersQueryResponse
- type DSClient
- type FetchJWTResponse
- type IssuesListFileResponse
- type IssuesListResponse
- type RefreshAuthResponse
- type RepoStatusResponse
- type TransformersQueryResponse
- type VerifyJWTResponse
Constants ¶
View Source
const DefaultConnectTimeout = 1
View Source
const DefaultReadTimeout = 10
Variables ¶
This section is empty.
Functions ¶
func CheckTokenExpiry ¶
// Verifies the active status of JWT token
func GetRepoStatus ¶
func GetSupportedAnalyzers ¶
Types ¶
type AnalyzersQueryResponse ¶
type DSClient ¶
type DSClient struct { Token string // contains filtered or unexported fields }
func NewDSClient ¶
type FetchJWTResponse ¶
type FetchJWTResponse struct { Requestjwt struct { Payload struct { Email string `json:"email"` Exp string `json:"exp"` Origiat int64 `json:"origIat"` } `json:"payload"` Token string `json:"token"` Refreshtoken string `json:"refreshToken"` Refreshexpiresin int64 `json:"refreshExpiresIn"` } `json:"requestJwt"` }
type IssuesListFileResponse ¶
type IssuesListFileResponse struct { Repository struct { File struct { Issues struct { Edges []struct { Node struct { Path string `json:"path"` Beginline int `json:"beginLine"` Endline int `json:"endLine"` Concreteissue struct { Analyzer struct { Shortcode string `json:"shortcode"` } `json:"analyzer"` Title string `json:"title"` Shortcode string `json:"shortcode"` } `json:"concreteIssue"` } `json:"node"` } `json:"edges"` } `json:"issues"` } `json:"file"` } `json:"repository"` }
func GetIssuesForFile ¶
type IssuesListResponse ¶
type IssuesListResponse struct { Repository struct { Issues struct { Edges []struct { Node struct { Path string `json:"path"` Beginline int `json:"beginLine"` Endline int `json:"endLine"` Concreteissue struct { Analyzer struct { Shortcode string `json:"shortcode"` } `json:"analyzer"` Title string `json:"title"` Shortcode string `json:"shortcode"` } `json:"concreteIssue"` } `json:"node"` } `json:"edges"` } `json:"issues"` } `json:"repository"` }
type RefreshAuthResponse ¶
type RefreshAuthResponse struct { Refreshtoken struct { Token string `json:"token"` Payload struct { Email string `json:"email"` Exp string `json:"exp"` Origiat int64 `json:"origIat"` } `json:"payload"` Refreshexpiresin int64 `json:"refreshExpiresIn"` Refreshtoken string `json:"refreshToken"` } `json:"refreshToken"` }
func RefreshAuthCreds ¶
func RefreshAuthCreds(client *DSClient, refreshToken string) (*RefreshAuthResponse, error)
type RepoStatusResponse ¶
type RepoStatusResponse struct { Repository struct { Isactivated bool `json:"isActivated"` } `json:"repository"` }
type VerifyJWTResponse ¶
Click to show internal directories.
Click to hide internal directories.