da

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SevIntToStr

func SevIntToStr(sev int) string

Types

type CompatabilityResponse

type CompatabilityResponse struct {
	Data struct {
		Attributes struct {
			Status string
		}
	}
}

type Finding

type Finding struct {
	Name               string
	Ecosystem          string
	ManifestPath       string
	ManifestVersion    string
	TopSummary         string
	TopSummarySeverity int
	TopPatchedVersion  string
	Count              int
	DependencyScope    string
	PullRequestURL     string
}

func (Finding) GetCompatability

func (f Finding) GetCompatability() string

func (Finding) HasPR

func (f Finding) HasPR() string

func (Finding) PackageString

func (f Finding) PackageString() string

func (Finding) SummaryString

func (f Finding) SummaryString() string

func (Finding) UsageString

func (f Finding) UsageString() string

func (Finding) VersionString

func (f Finding) VersionString() string

type Findings

type Findings []Finding

func GetFindings

func GetFindings(repoOwner, repoName string) Findings

func (Findings) Len

func (f Findings) Len() int

func (Findings) Less

func (f Findings) Less(i, j int) bool

func (Findings) Swap

func (f Findings) Swap(i, j int)

type FirstPatchedVersion

type FirstPatchedVersion struct {
	Identifier string
}

type Node

type Node struct {
	DependabotUpdate struct {
		PullRequest struct {
			ResourcePath string
			State        string
		}
	}
	DependencyScope  string
	Number           int
	SecurityAdvisory struct {
		Summary string
	}
	SecurityVulnerability  SecurityVulnerability
	State                  string
	VulnerableManifestPath string
	VulnerableRequirements string
}

func GetNodes

func GetNodes(repoOwner, repoName string) []Node

type Package

type Package struct {
	Ecosystem string
	Name      string
}

type Query

type Query struct {
	Repository Repository `graphql:"repository(name: $name, owner: $owner)"`
}

type Repository

type Repository struct {
	VulnerabilityAlerts VulnerabilityAlerts `graphql:"vulnerabilityAlerts(first: $first, after: $cursor, states:OPEN)"`
}

type SecurityAdvisory

type SecurityAdvisory struct {
	Summary string
}

type SecurityVulnerability

type SecurityVulnerability struct {
	FirstPatchedVersion FirstPatchedVersion
	Package             Package
	Severity            string
}

type VulnerabilityAlerts

type VulnerabilityAlerts struct {
	Nodes    []Node
	PageInfo struct {
		HasNextPage bool
		EndCursor   string
	}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL