Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeEmpty = ReportType("empty") TypeRaw = ReportType("raw") TypeMulti = ReportType("multi") TypeIssues = ReportType("issues") TypeTechs = ReportType("techs") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpEntity ¶
type HttpTransaction ¶
type HttpTransaction struct { Id int `json:"id,omitempty"` Method string `json:"method"` Request *HttpEntity `json:"request,omitempty"` Response *HttpEntity `json:"response,omitempty"` }
type Issue ¶
type Issue struct { Severity Severity `json:"severity"` Summary string `json:"summary"` Desc string `json:"desc,omitempty"` Urls []*Url `json:"urls,omitempty" description:"where this issue is happened"` Extras []*Extra `json:"extras,omitempty" bson:"extras" description:"information about vulnerability"` HttpTransactions []*HttpTransaction `json:"httpTransactions,omitempty" bson:"httpTransactions"` }
type Report ¶
type Report struct { Id bson.ObjectId `json:"id,omitempty" bson:"_id"` Type ReportType `json:"type" description:"one of [raw,issues,techs,multi,empty]"` Created time.Time `json:"created,omitempty" description:"when report is created"` Updated time.Time `json:"updated,omitempty" description:"when report is updated"` Scan bson.ObjectId `json:"scan,omitempty" description:"scan id"` ScanSession bson.ObjectId `json:"scanSession,omitempty" bson:"scanSession" description:"scan session id"` Raw `json:",inline,omitempty" bson:"raw,inline"` Multi []*Report `json:"multi,omitempty" bson:"multi,omitempty"` Issues []*Issue `json:"issues,omitempty" bson:"issues,omitempty"` Techs []*Tech `json:"techs,omitempty"` }
func (*Report) SetScanSession ¶
type ReportList ¶
type ReportList struct { pagination.Meta `json:",inline"` Results []*Report `json:"results"` }
type ReportType ¶
type ReportType string
func (ReportType) Convert ¶
func (t ReportType) Convert(text string) (interface{}, error)
func (ReportType) Enum ¶
func (t ReportType) Enum() []interface{}
func (ReportType) MarshalJSON ¶
func (t ReportType) MarshalJSON() ([]byte, error)
It's a hack to show custom type as string in swagger
type Severity ¶
type Severity string
func (Severity) MarshalJSON ¶
It's a hack to show custom type as string in swagger
Click to show internal directories.
Click to hide internal directories.