Documentation
¶
Index ¶
Constants ¶
const ( // IssueIssueStatusFixed captures enum value "fixed" IssueIssueStatusFixed string = "fixed" // IssueIssueStatusOpen captures enum value "open" IssueIssueStatusOpen string = "open" )
const ( // IssueIssueTypeLibrary captures enum value "library" IssueIssueTypeLibrary string = "library" // IssueIssueTypeLicense captures enum value "license" IssueIssueTypeLicense string = "license" // IssueIssueTypeVulnerability captures enum value "vulnerability" IssueIssueTypeVulnerability string = "vulnerability" )
const ( // LibraryLanguageJava captures enum value "java" LibraryLanguageJava string = "java" // LibraryLanguageJs captures enum value "js" LibraryLanguageJs string = "js" // LibraryLanguageRuby captures enum value "ruby" LibraryLanguageRuby string = "ruby" // LibraryLanguagePython captures enum value "python" LibraryLanguagePython string = "python" // LibraryLanguageGo captures enum value "go" LibraryLanguageGo string = "go" // LibraryLanguagePhp captures enum value "php" LibraryLanguagePhp string = "php" // LibraryLanguageObjectivec captures enum value "objectivec" LibraryLanguageObjectivec string = "objectivec" // LibraryLanguageCpp captures enum value "cpp" LibraryLanguageCpp string = "cpp" // LibraryLanguageCsharp captures enum value "csharp" LibraryLanguageCsharp string = "csharp" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Issue ¶
type Issue struct {
// links
Links []*Link `json:"_links" xml:"link"`
// created date
// Format: date-time
CreatedDate strfmt.DateTime `json:"created_date,omitempty"`
// fixed scan
FixedScan *Scan `json:"fixed_scan,omitempty"`
// id
// Format: uuid
ID strfmt.UUID `json:"id,omitempty"`
// ignored
Ignored bool `json:"ignored,omitempty"`
// issue status
// Enum: [fixed open]
IssueStatus string `json:"issue_status,omitempty"`
// issue type
// Enum: [library license vulnerability]
IssueType string `json:"issue_type,omitempty"`
// library
Library *Library `json:"library,omitempty"`
// Only set for issue_type=library
// Format: date-time
LibraryUpdatedReleaseDate strfmt.DateTime `json:"library_updated_release_date,omitempty"`
// Only set for issue_type=library
LibraryUpdatedVersion string `json:"library_updated_version,omitempty"`
// Only set for issue_type=license
License *License `json:"license,omitempty"`
// Only set for issue_type=license
LicenseCount int32 `json:"license_count,omitempty"`
// opened scan
OpenedScan *Scan `json:"opened_scan,omitempty"`
// project branch
ProjectBranch string `json:"project_branch,omitempty"`
// project id
// Format: uuid
ProjectID strfmt.UUID `json:"project_id,omitempty"`
// project name
ProjectName string `json:"project_name,omitempty"`
// project tag
ProjectTag string `json:"project_tag,omitempty"`
// severity
Severity float32 `json:"severity,omitempty"`
// site id
SiteID int64 `json:"site_id,omitempty"`
// Only set for issue_type=vulnerability
Vulnerability *Vulnerability `json:"vulnerability,omitempty"`
// Only set for issue_type=vulnerability
VulnerableMethod bool `json:"vulnerable_method,omitempty"`
// workspace id
// Format: uuid
WorkspaceID strfmt.UUID `json:"workspace_id,omitempty"`
}
Issue Issue swagger:model Issue
func (*Issue) MarshalBinary ¶
MarshalBinary interface implementation
func (*Issue) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Library ¶
type Library struct {
// links
Links []*Link `json:"_links" xml:"link"`
// direct
Direct bool `json:"direct,omitempty"`
// id
ID string `json:"id,omitempty"`
// language
// Enum: [java js ruby python go php objectivec cpp csharp]
Language string `json:"language,omitempty"`
// latest version
LatestVersion string `json:"latest_version,omitempty"`
// latest version release date
// Format: date-time
LatestVersionReleaseDate strfmt.DateTime `json:"latest_version_release_date,omitempty"`
// licenses
Licenses []*License `json:"licenses"`
// line count
LineCount int64 `json:"line_count,omitempty"`
// name
Name string `json:"name,omitempty"`
// release date
// Format: date-time
ReleaseDate strfmt.DateTime `json:"release_date,omitempty"`
// transitive
Transitive bool `json:"transitive,omitempty"`
// version
Version string `json:"version,omitempty"`
}
Library Library swagger:model Library
func (*Library) MarshalBinary ¶
MarshalBinary interface implementation
func (*Library) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type License ¶
type License struct {
// links
Links []*Link `json:"_links" xml:"link"`
// id
ID string `json:"id,omitempty"`
// name
Name string `json:"name,omitempty"`
// text
Text string `json:"text,omitempty"`
}
License License swagger:model License
func (*License) MarshalBinary ¶
MarshalBinary interface implementation
func (*License) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Link ¶
type Link struct {
// deprecation
Deprecation string `json:"deprecation,omitempty" xml:"deprecation,attr"`
// href
Href string `json:"href,omitempty" xml:"href,attr"`
// hreflang
Hreflang string `json:"hreflang,omitempty" xml:"hreflang,attr"`
// media
Media string `json:"media,omitempty" xml:"media,attr"`
// rel
Rel string `json:"rel,omitempty" xml:"rel,attr"`
// templated
Templated bool `json:"templated,omitempty"`
// title
Title string `json:"title,omitempty" xml:"title,attr"`
// type
Type string `json:"type,omitempty" xml:"type,attr"`
}
Link Link swagger:model Link
func (*Link) MarshalBinary ¶
MarshalBinary interface implementation
func (*Link) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type PageMetadata ¶
type PageMetadata struct {
// number
Number int64 `json:"number,omitempty" xml:"number,attr"`
// size
Size int64 `json:"size,omitempty" xml:"size,attr"`
// total elements
TotalElements int64 `json:"total_elements,omitempty" xml:"total_elements,attr"`
// total pages
TotalPages int64 `json:"total_pages,omitempty" xml:"total_pages,attr"`
}
PageMetadata PageMetadata swagger:model PageMetadata
func (*PageMetadata) MarshalBinary ¶
func (m *PageMetadata) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PageMetadata) UnmarshalBinary ¶
func (m *PageMetadata) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PagedResourcesIssue ¶
type PagedResourcesIssue struct {
// embedded
Embedded []*Issue `json:"_embedded" xml:"embedded"`
// links
Links []*Link `json:"_links" xml:"link"`
// page
Page *PageMetadata `json:"page,omitempty"`
}
PagedResourcesIssue PagedResources«Issue» swagger:model PagedResources«Issue»
func (*PagedResourcesIssue) MarshalBinary ¶
func (m *PagedResourcesIssue) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PagedResourcesIssue) UnmarshalBinary ¶
func (m *PagedResourcesIssue) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PagedResourcesWorkspace ¶
type PagedResourcesWorkspace struct {
// embedded
Embedded []*Workspace `json:"_embedded" xml:"embedded"`
// links
Links []*Link `json:"_links" xml:"link"`
// page
Page *PageMetadata `json:"page,omitempty"`
}
PagedResourcesWorkspace PagedResources«Workspace» swagger:model PagedResources«Workspace»
func (*PagedResourcesWorkspace) MarshalBinary ¶
func (m *PagedResourcesWorkspace) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PagedResourcesWorkspace) UnmarshalBinary ¶
func (m *PagedResourcesWorkspace) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Scan ¶
type Scan struct {
// links
Links []*Link `json:"_links" xml:"link"`
// branch
Branch string `json:"branch,omitempty"`
// commit
Commit string `json:"commit,omitempty"`
// date
// Format: date-time
Date strfmt.DateTime `json:"date,omitempty"`
// id
// Format: uuid
ID strfmt.UUID `json:"id,omitempty"`
// tag
Tag string `json:"tag,omitempty"`
}
Scan Scan swagger:model Scan
func (*Scan) MarshalBinary ¶
MarshalBinary interface implementation
func (*Scan) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Vulnerability ¶
type Vulnerability struct {
// links
Links []*Link `json:"_links" xml:"link"`
// cve
Cve string `json:"cve,omitempty"`
// cvss2
Cvss2 float32 `json:"cvss2,omitempty"`
// cvss3
Cvss3 float32 `json:"cvss3,omitempty"`
// disclosure date
// Format: date-time
DisclosureDate strfmt.DateTime `json:"disclosure_date,omitempty"`
// id
ID string `json:"id,omitempty"`
// title
Title string `json:"title,omitempty"`
}
Vulnerability Vulnerability swagger:model Vulnerability
func (*Vulnerability) MarshalBinary ¶
func (m *Vulnerability) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Vulnerability) UnmarshalBinary ¶
func (m *Vulnerability) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Workspace ¶
type Workspace struct {
// links
Links []*Link `json:"_links" xml:"link"`
// id
// Format: uuid
ID strfmt.UUID `json:"id,omitempty"`
// last scan date
// Format: date-time
LastScanDate strfmt.DateTime `json:"last_scan_date,omitempty"`
// library issues count
LibraryIssuesCount int32 `json:"library_issues_count,omitempty"`
// license issues count
LicenseIssuesCount int32 `json:"license_issues_count,omitempty"`
// name
Name string `json:"name,omitempty"`
// projects count
ProjectsCount int32 `json:"projects_count,omitempty"`
// sandbox
Sandbox bool `json:"sandbox,omitempty"`
// total issues count
TotalIssuesCount int32 `json:"total_issues_count,omitempty"`
// vulnerability issues count
VulnerabilityIssuesCount int32 `json:"vulnerability_issues_count,omitempty"`
}
Workspace Workspace swagger:model Workspace
func (*Workspace) MarshalBinary ¶
MarshalBinary interface implementation
func (*Workspace) UnmarshalBinary ¶
UnmarshalBinary interface implementation