Documentation ¶
Index ¶
Constants ¶
View Source
const ( IssueConfirmed = IssueStatus("confirmed") // when a pentester confirm that issue is real IssueFalse = IssueStatus("false") // it's a false issue IssueFixed = IssueStatus("fixed") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IssueStatus ¶
type IssueStatus string
func (IssueStatus) Convert ¶
func (t IssueStatus) Convert(text string) (interface{}, error)
func (IssueStatus) Enum ¶
func (t IssueStatus) Enum() []interface{}
func (IssueStatus) MarshalJSON ¶
func (t IssueStatus) MarshalJSON() ([]byte, error)
It's a hack to show custom type as string in swagger
type SummaryReport ¶
type Target ¶
type Target struct { Id bson.ObjectId `json:"id,omitempty" bson:"_id"` Type TargetType `json:"type" description:"one of [web|mobile]"` Web *WebTarget `json:"web,omitempty" description:"information about web target"` Project bson.ObjectId `json:"project"` Created time.Time `json:"created,omitempty"` Updated time.Time `json:"updated,omitempty"` SummaryReport *SummaryReport `json:"summaryReport,omitempty" bson:"-"` }
type TargetIssue ¶
type TargetIssue struct { Issue *report.Issue `json:"issue"` Status IssueStatus `json:"status"` }
type TargetList ¶
type TargetList struct { pagination.Meta `json:",inline"` Results []*Target `json:"results"` }
type TargetType ¶
type TargetType string
const ( TypeWeb TargetType = "web" TypeMobile TargetType = "mobile" )
func (TargetType) Convert ¶
func (t TargetType) Convert(text string) (interface{}, error)
func (TargetType) Enum ¶
func (t TargetType) Enum() []interface{}
func (TargetType) MarshalJSON ¶
func (t TargetType) MarshalJSON() ([]byte, error)
It's a hack to show custom type as string in swagger
Click to show internal directories.
Click to hide internal directories.