models

package
v0.0.0-...-dc70d09 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (

	// IssueIssueStatusFixed captures enum value "fixed"
	IssueIssueStatusFixed string = "fixed"

	// IssueIssueStatusOpen captures enum value "open"
	IssueIssueStatusOpen string = "open"
)
View Source
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"
)
View Source
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

func (m *Issue) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Issue) UnmarshalBinary

func (m *Issue) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Issue) Validate

func (m *Issue) Validate(formats strfmt.Registry) error

Validate validates this issue

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

func (m *Library) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Library) UnmarshalBinary

func (m *Library) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Library) Validate

func (m *Library) Validate(formats strfmt.Registry) error

Validate validates this library

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

func (m *License) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*License) UnmarshalBinary

func (m *License) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*License) Validate

func (m *License) Validate(formats strfmt.Registry) error

Validate validates this license

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

func (m *Link) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Link) UnmarshalBinary

func (m *Link) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Link) Validate

func (m *Link) Validate(formats strfmt.Registry) error

Validate validates this link

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

func (*PageMetadata) Validate

func (m *PageMetadata) Validate(formats strfmt.Registry) error

Validate validates this page metadata

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

func (*PagedResourcesIssue) Validate

func (m *PagedResourcesIssue) Validate(formats strfmt.Registry) error

Validate validates this paged resources issue

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

func (*PagedResourcesWorkspace) Validate

func (m *PagedResourcesWorkspace) Validate(formats strfmt.Registry) error

Validate validates this paged resources workspace

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

func (m *Scan) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Scan) UnmarshalBinary

func (m *Scan) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Scan) Validate

func (m *Scan) Validate(formats strfmt.Registry) error

Validate validates this scan

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

func (*Vulnerability) Validate

func (m *Vulnerability) Validate(formats strfmt.Registry) error

Validate validates this vulnerability

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

func (m *Workspace) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Workspace) UnmarshalBinary

func (m *Workspace) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Workspace) Validate

func (m *Workspace) Validate(formats strfmt.Registry) error

Validate validates this workspace

Jump to

Keyboard shortcuts

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