Documentation ¶
Index ¶
- func AbortChecksPath(id uuid.UUID) string
- func AbortScansPath(id uuid.UUID) string
- func ChecksScansPath(id uuid.UUID) string
- func CreateChecksPath() string
- func CreateScansPath() string
- func IndexAgentsPath() string
- func IndexAssettypesPath() string
- func IndexChecktypesPath() string
- func IndexScansPath() string
- func KillChecksPath(id uuid.UUID) string
- func PauseAgentsPath(id uuid.UUID) string
- func ShowAgentsPath(id uuid.UUID) string
- func ShowChecksPath(id uuid.UUID) string
- func ShowChecktypesPath(id uuid.UUID) string
- func ShowHealthcheckPath() string
- func ShowScansPath(id uuid.UUID) string
- func StatsScansPath(id uuid.UUID) string
- func UploadFileScansPath() string
- type Agent
- type AgentData
- type Agentdata
- type Agentjobqueuedata
- type Agents
- type Assettype
- type AssettypeCollection
- type AssettypeType
- type Check
- type CheckData
- type CheckPayload
- type Checkdata
- type Checks
- type Checktype
- type ChecktypeType
- type Checktypes
- type Client
- func (c *Client) AbortChecks(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) AbortScans(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ChecksScans(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) CreateChecks(ctx context.Context, path string, payload *CheckPayload) (*http.Response, error)
- func (c *Client) CreateScans(ctx context.Context, path string, payload *ScanPayload) (*http.Response, error)
- func (c *Client) DecodeAgent(resp *http.Response) (*Agent, error)
- func (c *Client) DecodeAgentdata(resp *http.Response) (*Agentdata, error)
- func (c *Client) DecodeAgentjobqueuedata(resp *http.Response) (*Agentjobqueuedata, error)
- func (c *Client) DecodeAgents(resp *http.Response) (*Agents, error)
- func (c *Client) DecodeAssettype(resp *http.Response) (*Assettype, error)
- func (c *Client) DecodeAssettypeCollection(resp *http.Response) (AssettypeCollection, error)
- func (c *Client) DecodeCheck(resp *http.Response) (*Check, error)
- func (c *Client) DecodeCheckdata(resp *http.Response) (*Checkdata, error)
- func (c *Client) DecodeChecks(resp *http.Response) (*Checks, error)
- func (c *Client) DecodeChecktype(resp *http.Response) (*Checktype, error)
- func (c *Client) DecodeChecktypes(resp *http.Response) (*Checktypes, error)
- func (c *Client) DecodeErrorResponse(resp *http.Response) (*goa.ErrorResponse, error)
- func (c *Client) DecodeJobqueue(resp *http.Response) (*Jobqueue, error)
- func (c *Client) DecodeScan(resp *http.Response) (*Scan, error)
- func (c *Client) DecodeScancheckdata(resp *http.Response) (*Scancheckdata, error)
- func (c *Client) DecodeScandata(resp *http.Response) (*Scandata, error)
- func (c *Client) DecodeScans(resp *http.Response) (*Scans, error)
- func (c *Client) DecodeStat(resp *http.Response) (*Stat, error)
- func (c *Client) DecodeStats(resp *http.Response) (*Stats, error)
- func (c *Client) DownloadSwaggerJSON(ctx context.Context, dest string) (int64, error)
- func (c *Client) IndexAgents(ctx context.Context, path string, status *string) (*http.Response, error)
- func (c *Client) IndexAssettypes(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) IndexChecktypes(ctx context.Context, path string, enabled *string) (*http.Response, error)
- func (c *Client) IndexScans(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) KillChecks(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) NewAbortChecksRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewAbortScansRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewChecksScansRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewCreateChecksRequest(ctx context.Context, path string, payload *CheckPayload) (*http.Request, error)
- func (c *Client) NewCreateScansRequest(ctx context.Context, path string, payload *ScanPayload) (*http.Request, error)
- func (c *Client) NewIndexAgentsRequest(ctx context.Context, path string, status *string) (*http.Request, error)
- func (c *Client) NewIndexAssettypesRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewIndexChecktypesRequest(ctx context.Context, path string, enabled *string) (*http.Request, error)
- func (c *Client) NewIndexScansRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewKillChecksRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewPauseAgentsRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewShowAgentsRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewShowChecksRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewShowChecktypesRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewShowHealthcheckRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewShowScansRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewStatsScansRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewUploadFileScansRequest(ctx context.Context, path string, payload *FileScanPayload) (*http.Request, error)
- func (c *Client) PauseAgents(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ShowAgents(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ShowChecks(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ShowChecktypes(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ShowHealthcheck(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ShowScans(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) StatsScans(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) UploadFileScans(ctx context.Context, path string, payload *FileScanPayload) (*http.Response, error)
- type FileScanPayload
- type Jobqueue
- type Scan
- type ScanChecksPayload
- type ScanData
- type ScanPayload
- type Scancheckdata
- type Scandata
- type Scans
- type Stat
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbortChecksPath ¶
AbortChecksPath computes a request path to the abort action of Checks.
func AbortScansPath ¶
AbortScansPath computes a request path to the abort action of Scans.
func ChecksScansPath ¶
ChecksScansPath computes a request path to the checks action of Scans.
func CreateChecksPath ¶
func CreateChecksPath() string
CreateChecksPath computes a request path to the create action of Checks.
func CreateScansPath ¶
func CreateScansPath() string
CreateScansPath computes a request path to the create action of Scans.
func IndexAgentsPath ¶
func IndexAgentsPath() string
IndexAgentsPath computes a request path to the index action of Agents.
func IndexAssettypesPath ¶
func IndexAssettypesPath() string
IndexAssettypesPath computes a request path to the index action of Assettypes.
func IndexChecktypesPath ¶
func IndexChecktypesPath() string
IndexChecktypesPath computes a request path to the index action of Checktypes.
func IndexScansPath ¶
func IndexScansPath() string
IndexScansPath computes a request path to the index action of Scans.
func KillChecksPath ¶
KillChecksPath computes a request path to the kill action of Checks.
func PauseAgentsPath ¶
PauseAgentsPath computes a request path to the pause action of Agents.
func ShowAgentsPath ¶
ShowAgentsPath computes a request path to the show action of Agents.
func ShowChecksPath ¶
ShowChecksPath computes a request path to the show action of Checks.
func ShowChecktypesPath ¶
ShowChecktypesPath computes a request path to the show action of Checktypes.
func ShowHealthcheckPath ¶
func ShowHealthcheckPath() string
ShowHealthcheckPath computes a request path to the show action of healthcheck.
func ShowScansPath ¶
ShowScansPath computes a request path to the show action of Scans.
func StatsScansPath ¶
StatsScansPath computes a request path to the stats action of Scans.
func UploadFileScansPath ¶
func UploadFileScansPath() string
UploadFileScansPath computes a request path to the upload action of FileScans.
Types ¶
type Agent ¶
type Agent struct {
Agent *Agentdata `form:"agent" json:"agent" yaml:"agent" xml:"agent"`
}
Agent media type (default view)
Identifier: application/vnd.agent+json; view=default
type AgentData ¶
type AgentData struct { ID uuid.UUID `form:"id" json:"id" yaml:"id" xml:"id"` Status string `form:"status" json:"status" yaml:"status" xml:"status"` }
AgentData user type.
type Agentdata ¶
type Agentdata struct { Enabled bool `form:"enabled" json:"enabled" yaml:"enabled" xml:"enabled"` HeartbetAt time.Time `form:"heartbet_at" json:"heartbet_at" yaml:"heartbet_at" xml:"heartbet_at"` ID uuid.UUID `form:"id" json:"id" yaml:"id" xml:"id"` Jobqueue *Jobqueue `form:"jobqueue" json:"jobqueue" yaml:"jobqueue" xml:"jobqueue"` Status string `form:"status" json:"status" yaml:"status" xml:"status"` Version string `form:"version" json:"version" yaml:"version" xml:"version"` }
Agentdata media type (default view)
Identifier: application/vnd.agentdata+json; view=default
type Agentjobqueuedata ¶
type Agentjobqueuedata struct { Arn string `form:"arn" json:"arn" yaml:"arn" xml:"arn"` Description string `form:"description" json:"description" yaml:"description" xml:"description"` Enabled bool `form:"enabled" json:"enabled" yaml:"enabled" xml:"enabled"` ID uuid.UUID `form:"id" json:"id" yaml:"id" xml:"id"` }
Agentjobqueuedata media type (default view)
Identifier: application/vnd.agentjobqueuedata+json; view=default
func (*Agentjobqueuedata) Validate ¶
func (mt *Agentjobqueuedata) Validate() (err error)
Validate validates the Agentjobqueuedata media type instance.
type Agents ¶
type Agents struct {
Agents []*AgentData `form:"agents" json:"agents" yaml:"agents" xml:"agents"`
}
Agents media type (default view)
Identifier: application/vnd.agents+json; view=default
type Assettype ¶
type Assettype struct { Assettype *string `form:"assettype,omitempty" json:"assettype,omitempty" yaml:"assettype,omitempty" xml:"assettype,omitempty"` Name []string `form:"name,omitempty" json:"name,omitempty" yaml:"name,omitempty" xml:"name,omitempty"` }
Assettype media type (default view)
Identifier: application/vnd.assettype+json; view=default
type AssettypeCollection ¶
type AssettypeCollection []*Assettype
AssettypeCollection is the media type for an array of Assettype (default view)
Identifier: application/vnd.assettype+json; type=collection; view=default
type AssettypeType ¶
type AssettypeType struct { Assettype *string `form:"assettype,omitempty" json:"assettype,omitempty" yaml:"assettype,omitempty" xml:"assettype,omitempty"` Name []string `form:"name,omitempty" json:"name,omitempty" yaml:"name,omitempty" xml:"name,omitempty"` }
AssettypeType user type.
type Check ¶
type Check struct {
Check *Checkdata `form:"check" json:"check" yaml:"check" xml:"check"`
}
Check media type (default view)
Identifier: application/vnd.check+json; view=default
type CheckData ¶
type CheckData struct { // Name of the checktype this check is ChecktypeName *string `` /* 126-byte string literal not displayed */ // ID of the specific queue this check must we enqueued. // The queue must already be created in vulcan core. JobqueueID *uuid.UUID `form:"jobqueue_id,omitempty" json:"jobqueue_id,omitempty" yaml:"jobqueue_id,omitempty" xml:"jobqueue_id,omitempty"` // Configuration options for the Check. It should be in JSON format Options *string `form:"options,omitempty" json:"options,omitempty" yaml:"options,omitempty" xml:"options,omitempty"` // a tag Tag *string `form:"tag,omitempty" json:"tag,omitempty" yaml:"tag,omitempty" xml:"tag,omitempty"` // Target to be scanned. Can be a domain, hostname, IP or URL Target string `form:"target" json:"target" yaml:"target" xml:"target"` // Webhook to callback after the Check has finished Webhook *string `form:"webhook,omitempty" json:"webhook,omitempty" yaml:"webhook,omitempty" xml:"webhook,omitempty"` }
CheckData user type.
type CheckPayload ¶
type CheckPayload struct {
Check *CheckData `form:"check" json:"check" yaml:"check" xml:"check"`
}
CheckPayload user type.
func (*CheckPayload) Validate ¶
func (ut *CheckPayload) Validate() (err error)
Validate validates the CheckPayload type instance.
type Checkdata ¶
type Checkdata struct { Checktype *ChecktypeType `form:"checktype" json:"checktype" yaml:"checktype" xml:"checktype"` ID uuid.UUID `form:"id" json:"id" yaml:"id" xml:"id"` // Configuration options for the Check. It should be in JSON format Options *string `form:"options,omitempty" json:"options,omitempty" yaml:"options,omitempty" xml:"options,omitempty"` Progress *float64 `form:"progress,omitempty" json:"progress,omitempty" yaml:"progress,omitempty" xml:"progress,omitempty"` Raw *string `form:"raw,omitempty" json:"raw,omitempty" yaml:"raw,omitempty" xml:"raw,omitempty"` Report *string `form:"report,omitempty" json:"report,omitempty" yaml:"report,omitempty" xml:"report,omitempty"` Scan *Scandata `form:"scan,omitempty" json:"scan,omitempty" yaml:"scan,omitempty" xml:"scan,omitempty"` Status string `form:"status" json:"status" yaml:"status" xml:"status"` // Target to be scanned. Can be a domain, hostname, IP or URL Target string `form:"target" json:"target" yaml:"target" xml:"target"` // Webhook to callback after the Check has finished Webhook *string `form:"webhook,omitempty" json:"webhook,omitempty" yaml:"webhook,omitempty" xml:"webhook,omitempty"` }
Checkdata media type (default view)
Identifier: application/vnd.checkdata+json; view=default
type Checks ¶
type Checks struct {
Checks []*Scancheckdata `form:"checks" json:"checks" yaml:"checks" xml:"checks"`
}
Checks media type (default view)
Identifier: application/vnd.checks+json; view=default
type Checktype ¶
type Checktype struct {
Checktype *ChecktypeType `form:"checktype" json:"checktype" yaml:"checktype" xml:"checktype"`
}
Checktype media type (default view)
Identifier: application/vnd.checktype+json; view=default
type ChecktypeType ¶
type ChecktypeType struct { Description *string `form:"description,omitempty" json:"description,omitempty" yaml:"description,omitempty" xml:"description,omitempty"` Enabled *bool `form:"enabled,omitempty" json:"enabled,omitempty" yaml:"enabled,omitempty" xml:"enabled,omitempty"` ID uuid.UUID `form:"id" json:"id" yaml:"id" xml:"id"` // Image that needs to be pulled to run the Check of this type Image string `form:"image" json:"image" yaml:"image" xml:"image"` Name string `form:"name" json:"name" yaml:"name" xml:"name"` // Default configuration options for the Checktype. It should be in JSON format Options *string `form:"options,omitempty" json:"options,omitempty" yaml:"options,omitempty" xml:"options,omitempty"` // Specifies the maximum amount of time that the check should be running before it's killed Timeout *int `form:"timeout,omitempty" json:"timeout,omitempty" yaml:"timeout,omitempty" xml:"timeout,omitempty"` }
ChecktypeType user type.
func (*ChecktypeType) Validate ¶
func (ut *ChecktypeType) Validate() (err error)
Validate validates the ChecktypeType type instance.
type Checktypes ¶
type Checktypes struct {
Checktypes []*ChecktypeType `form:"checktypes" json:"checktypes" yaml:"checktypes" xml:"checktypes"`
}
Checktypes media type (default view)
Identifier: application/vnd.checktypes+json; view=default
func (*Checktypes) Validate ¶
func (mt *Checktypes) Validate() (err error)
Validate validates the Checktypes media type instance.
type Client ¶
type Client struct { *goaclient.Client Encoder *goa.HTTPEncoder Decoder *goa.HTTPDecoder }
Client is the vulcan-persistence service client.
func (*Client) AbortChecks ¶
Abort a Check gracefully
func (*Client) AbortScans ¶
Abort a scan
func (*Client) ChecksScans ¶
Get checks of the Scan
func (*Client) CreateChecks ¶
func (c *Client) CreateChecks(ctx context.Context, path string, payload *CheckPayload) (*http.Response, error)
Create a new Check
func (*Client) CreateScans ¶
func (c *Client) CreateScans(ctx context.Context, path string, payload *ScanPayload) (*http.Response, error)
Create a new Scan
func (*Client) DecodeAgent ¶
DecodeAgent decodes the Agent instance encoded in resp body.
func (*Client) DecodeAgentdata ¶
DecodeAgentdata decodes the Agentdata instance encoded in resp body.
func (*Client) DecodeAgentjobqueuedata ¶
func (c *Client) DecodeAgentjobqueuedata(resp *http.Response) (*Agentjobqueuedata, error)
DecodeAgentjobqueuedata decodes the Agentjobqueuedata instance encoded in resp body.
func (*Client) DecodeAgents ¶
DecodeAgents decodes the Agents instance encoded in resp body.
func (*Client) DecodeAssettype ¶
DecodeAssettype decodes the Assettype instance encoded in resp body.
func (*Client) DecodeAssettypeCollection ¶
func (c *Client) DecodeAssettypeCollection(resp *http.Response) (AssettypeCollection, error)
DecodeAssettypeCollection decodes the AssettypeCollection instance encoded in resp body.
func (*Client) DecodeCheck ¶
DecodeCheck decodes the Check instance encoded in resp body.
func (*Client) DecodeCheckdata ¶
DecodeCheckdata decodes the Checkdata instance encoded in resp body.
func (*Client) DecodeChecks ¶
DecodeChecks decodes the Checks instance encoded in resp body.
func (*Client) DecodeChecktype ¶
DecodeChecktype decodes the Checktype instance encoded in resp body.
func (*Client) DecodeChecktypes ¶
func (c *Client) DecodeChecktypes(resp *http.Response) (*Checktypes, error)
DecodeChecktypes decodes the Checktypes instance encoded in resp body.
func (*Client) DecodeErrorResponse ¶
DecodeErrorResponse decodes the ErrorResponse instance encoded in resp body.
func (*Client) DecodeJobqueue ¶
DecodeJobqueue decodes the Jobqueue instance encoded in resp body.
func (*Client) DecodeScan ¶
DecodeScan decodes the Scan instance encoded in resp body.
func (*Client) DecodeScancheckdata ¶
func (c *Client) DecodeScancheckdata(resp *http.Response) (*Scancheckdata, error)
DecodeScancheckdata decodes the Scancheckdata instance encoded in resp body.
func (*Client) DecodeScandata ¶
DecodeScandata decodes the Scandata instance encoded in resp body.
func (*Client) DecodeScans ¶
DecodeScans decodes the Scans instance encoded in resp body.
func (*Client) DecodeStat ¶
DecodeStat decodes the Stat instance encoded in resp body.
func (*Client) DecodeStats ¶
DecodeStats decodes the Stats instance encoded in resp body.
func (*Client) DownloadSwaggerJSON ¶
DownloadSwaggerJSON downloads swagger.json and writes it to the file dest. It returns the number of bytes downloaded in case of success.
func (*Client) IndexAgents ¶
func (c *Client) IndexAgents(ctx context.Context, path string, status *string) (*http.Response, error)
Get all agents
func (*Client) IndexAssettypes ¶
Get all assettypes and per each one the checktypes that are accepting that concrete assettype
func (*Client) IndexChecktypes ¶
func (c *Client) IndexChecktypes(ctx context.Context, path string, enabled *string) (*http.Response, error)
Get all checktypes
func (*Client) IndexScans ¶
Get all scans
func (*Client) KillChecks ¶
Kill a Check immediately
func (*Client) NewAbortChecksRequest ¶
NewAbortChecksRequest create the request corresponding to the abort action endpoint of the Checks resource.
func (*Client) NewAbortScansRequest ¶
NewAbortScansRequest create the request corresponding to the abort action endpoint of the Scans resource.
func (*Client) NewChecksScansRequest ¶
NewChecksScansRequest create the request corresponding to the checks action endpoint of the Scans resource.
func (*Client) NewCreateChecksRequest ¶
func (c *Client) NewCreateChecksRequest(ctx context.Context, path string, payload *CheckPayload) (*http.Request, error)
NewCreateChecksRequest create the request corresponding to the create action endpoint of the Checks resource.
func (*Client) NewCreateScansRequest ¶
func (c *Client) NewCreateScansRequest(ctx context.Context, path string, payload *ScanPayload) (*http.Request, error)
NewCreateScansRequest create the request corresponding to the create action endpoint of the Scans resource.
func (*Client) NewIndexAgentsRequest ¶
func (c *Client) NewIndexAgentsRequest(ctx context.Context, path string, status *string) (*http.Request, error)
NewIndexAgentsRequest create the request corresponding to the index action endpoint of the Agents resource.
func (*Client) NewIndexAssettypesRequest ¶
NewIndexAssettypesRequest create the request corresponding to the index action endpoint of the Assettypes resource.
func (*Client) NewIndexChecktypesRequest ¶
func (c *Client) NewIndexChecktypesRequest(ctx context.Context, path string, enabled *string) (*http.Request, error)
NewIndexChecktypesRequest create the request corresponding to the index action endpoint of the Checktypes resource.
func (*Client) NewIndexScansRequest ¶
NewIndexScansRequest create the request corresponding to the index action endpoint of the Scans resource.
func (*Client) NewKillChecksRequest ¶
NewKillChecksRequest create the request corresponding to the kill action endpoint of the Checks resource.
func (*Client) NewPauseAgentsRequest ¶
NewPauseAgentsRequest create the request corresponding to the pause action endpoint of the Agents resource.
func (*Client) NewShowAgentsRequest ¶
NewShowAgentsRequest create the request corresponding to the show action endpoint of the Agents resource.
func (*Client) NewShowChecksRequest ¶
NewShowChecksRequest create the request corresponding to the show action endpoint of the Checks resource.
func (*Client) NewShowChecktypesRequest ¶
NewShowChecktypesRequest create the request corresponding to the show action endpoint of the Checktypes resource.
func (*Client) NewShowHealthcheckRequest ¶
NewShowHealthcheckRequest create the request corresponding to the show action endpoint of the healthcheck resource.
func (*Client) NewShowScansRequest ¶
NewShowScansRequest create the request corresponding to the show action endpoint of the Scans resource.
func (*Client) NewStatsScansRequest ¶
NewStatsScansRequest create the request corresponding to the stats action endpoint of the Scans resource.
func (*Client) NewUploadFileScansRequest ¶
func (c *Client) NewUploadFileScansRequest(ctx context.Context, path string, payload *FileScanPayload) (*http.Request, error)
NewUploadFileScansRequest create the request corresponding to the upload action endpoint of the FileScans resource.
func (*Client) PauseAgents ¶
Pause an agent
func (*Client) ShowAgents ¶
Get an Agent by its ID
func (*Client) ShowChecks ¶
Get a Check by its ID
func (*Client) ShowChecktypes ¶
Get a Checktype by its ID
func (*Client) ShowHealthcheck ¶
Get the health status for the application
func (*Client) StatsScans ¶
Get stats of the Scan
func (*Client) UploadFileScans ¶
func (c *Client) UploadFileScans(ctx context.Context, path string, payload *FileScanPayload) (*http.Response, error)
Create a scan by uploading a file using a multipart form with the scan definition
type FileScanPayload ¶
type FileScanPayload struct { // Upload Upload string `form:"upload" json:"upload" yaml:"upload" xml:"upload"` }
FileScanPayload user type.
func (*FileScanPayload) Validate ¶
func (ut *FileScanPayload) Validate() (err error)
Validate validates the FileScanPayload type instance.
type Jobqueue ¶
type Jobqueue struct {
Jobqueue *Agentjobqueuedata `form:"jobqueue" json:"jobqueue" yaml:"jobqueue" xml:"jobqueue"`
}
Jobqueue media type (default view)
Identifier: application/vnd.jobqueue+json; view=default
type Scan ¶
type Scan struct {
Scan *Scandata `form:"scan" json:"scan" yaml:"scan" xml:"scan"`
}
Scan media type (default view)
Identifier: application/vnd.scan+json; view=default
type ScanChecksPayload ¶
type ScanChecksPayload struct {
Checks []*CheckPayload `form:"checks" json:"checks" yaml:"checks" xml:"checks"`
}
ScanChecksPayload user type.
func (*ScanChecksPayload) Validate ¶
func (ut *ScanChecksPayload) Validate() (err error)
Validate validates the ScanChecksPayload type instance.
type ScanData ¶
type ScanData struct { // Number of checks of the scan Size int `form:"size" json:"size" yaml:"size" xml:"size"` }
ScanData user type.
type ScanPayload ¶
type ScanPayload struct {
Scan *ScanChecksPayload `form:"scan,omitempty" json:"scan,omitempty" yaml:"scan,omitempty" xml:"scan,omitempty"`
}
ScanPayload user type.
func (*ScanPayload) Validate ¶
func (ut *ScanPayload) Validate() (err error)
Validate validates the ScanPayload type instance.
type Scancheckdata ¶
type Scancheckdata struct { // Name of the checktype this check is ChecktypeName string `form:"checktype_name" json:"checktype_name" yaml:"checktype_name" xml:"checktype_name"` ID uuid.UUID `form:"id" json:"id" yaml:"id" xml:"id"` Status string `form:"status" json:"status" yaml:"status" xml:"status"` // Target to be scanned. Can be a domain, hostname, IP or URL Target string `form:"target" json:"target" yaml:"target" xml:"target"` }
Scancheckdata media type (default view)
Identifier: application/vnd.scancheckdata+json; view=default
func (*Scancheckdata) Validate ¶
func (mt *Scancheckdata) Validate() (err error)
Validate validates the Scancheckdata media type instance.
type Scandata ¶
type Scandata struct { ID uuid.UUID `form:"id" json:"id" yaml:"id" xml:"id"` // Number of checks of the scan Size int `form:"size" json:"size" yaml:"size" xml:"size"` }
Scandata media type (default view)
Identifier: application/vnd.scandata+json; view=default
type Scans ¶
type Scans struct {
Scans []*ScanData `form:"scans" json:"scans" yaml:"scans" xml:"scans"`
}
Scans media type (default view)
Identifier: application/vnd.scans+json; view=default
type Stat ¶
type Stat struct { Status string `form:"status" json:"status" yaml:"status" xml:"status"` Total int `form:"total" json:"total" yaml:"total" xml:"total"` }
Stat media type (default view)
Identifier: application/vnd.stat+json; view=default