Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllAdvisoryType = []AdvisoryType{ AdvisoryTypeDeprecated, AdvisoryTypeUnmaintained, AdvisoryTypeSecurity, AdvisoryTypePolicy, AdvisoryTypeOther, }
View Source
var AllPolicyViolationLevel = []PolicyViolationLevel{ PolicyViolationLevelError, PolicyViolationLevelWarn, }
Functions ¶
This section is empty.
Types ¶
type Advisory ¶
type Advisory struct { Dependency *Dependency `json:"dependency"` AdvisoryType AdvisoryType `json:"advisoryType"` Description string `json:"description"` SupportedUntil *string `json:"supportedUntil,omitempty"` EndOfLifeFrom *string `json:"endOfLifeFrom,omitempty"` }
type AdvisoryType ¶
type AdvisoryType string
const ( AdvisoryTypeDeprecated AdvisoryType = "DEPRECATED" AdvisoryTypeUnmaintained AdvisoryType = "UNMAINTAINED" AdvisoryTypeSecurity AdvisoryType = "SECURITY" AdvisoryTypePolicy AdvisoryType = "POLICY" AdvisoryTypeOther AdvisoryType = "OTHER" )
func (AdvisoryType) IsValid ¶
func (e AdvisoryType) IsValid() bool
func (AdvisoryType) MarshalGQL ¶
func (e AdvisoryType) MarshalGQL(w io.Writer)
func (AdvisoryType) String ¶
func (e AdvisoryType) String() string
func (*AdvisoryType) UnmarshalGQL ¶
func (e *AdvisoryType) UnmarshalGQL(v interface{}) error
type Dependency ¶
type Dependency struct { PackageName string `json:"packageName"` Version string `json:"version"` CurrentVersion *string `json:"currentVersion,omitempty"` PackageManager string `json:"packageManager"` PackageFilePath *string `json:"packageFilePath,omitempty"` DepTypes []string `json:"depTypes,omitempty"` }
type DependentOnResponse ¶
type DependentOnResponse struct {
Repositories []DependentOnUsage `json:"repositories,omitempty"`
}
type DependentOnUsage ¶
type PolicyViolation ¶
type PolicyViolation struct { Dependency *Dependency `json:"dependency"` Level PolicyViolationLevel `json:"level"` AdvisoryType AdvisoryType `json:"advisoryType"` Description string `json:"description"` }
type PolicyViolationLevel ¶
type PolicyViolationLevel string
const ( PolicyViolationLevelError PolicyViolationLevel = "ERROR" PolicyViolationLevelWarn PolicyViolationLevel = "WARN" )
func (PolicyViolationLevel) IsValid ¶
func (e PolicyViolationLevel) IsValid() bool
func (PolicyViolationLevel) MarshalGQL ¶
func (e PolicyViolationLevel) MarshalGQL(w io.Writer)
func (PolicyViolationLevel) String ¶
func (e PolicyViolationLevel) String() string
func (*PolicyViolationLevel) UnmarshalGQL ¶
func (e *PolicyViolationLevel) UnmarshalGQL(v interface{}) error
type RepositoriesResponse ¶
type RepositoriesResponse struct { Repositories []Repository `json:"repositories,omitempty"` TotalAdvisories int `json:"totalAdvisories"` TotalDependencies int `json:"totalDependencies"` TotalPolicyViolations int `json:"totalPolicyViolations"` }
type Repository ¶
type Repository struct { Platform string `json:"platform"` Organisation string `json:"organisation"` Repo string `json:"repo"` Owner *string `json:"owner,omitempty"` TotalDependencies int `json:"totalDependencies"` Dependencies []Dependency `json:"dependencies,omitempty"` TotalAdvisories int `json:"totalAdvisories"` Advisories []Advisory `json:"advisories,omitempty"` TotalPolicyViolations int `json:"totalPolicyViolations"` PolicyViolations []PolicyViolation `json:"policyViolations,omitempty"` }
type RepositoryKey ¶
Click to show internal directories.
Click to hide internal directories.