Documentation
¶
Index ¶
- func HealthcheckHref() string
- func MountHealthcheckController(service *goa.Service, ctrl HealthcheckController)
- func MountResultsController(service *goa.Service, ctrl ResultsController)
- type GetLogResultsContext
- type GetReportResultsContext
- type HealthcheckController
- type RawPayload
- type RawResultsContext
- type ReportPayload
- type ReportResultsContext
- type ResultsController
- type ShowHealthcheckContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MountHealthcheckController ¶
func MountHealthcheckController(service *goa.Service, ctrl HealthcheckController)
MountHealthcheckController "mounts" a Healthcheck resource controller on the given service.
func MountResultsController ¶
func MountResultsController(service *goa.Service, ctrl ResultsController)
MountResultsController "mounts" a Results resource controller on the given service.
Types ¶
type GetLogResultsContext ¶
type GetLogResultsContext struct { context.Context *goa.ResponseData *goa.RequestData Check string Date string Scan string }
GetLogResultsContext provides the Results getLog action context.
func NewGetLogResultsContext ¶
func NewGetLogResultsContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetLogResultsContext, error)
NewGetLogResultsContext parses the incoming request URL and body, performs validations and creates the context used by the Results controller getLog action.
func (*GetLogResultsContext) BadRequest ¶
func (ctx *GetLogResultsContext) BadRequest() error
BadRequest sends a HTTP response with status code 400.
func (*GetLogResultsContext) OK ¶
func (ctx *GetLogResultsContext) OK(resp []byte) error
OK sends a HTTP response with status code 200.
type GetReportResultsContext ¶
type GetReportResultsContext struct { context.Context *goa.ResponseData *goa.RequestData Check string Date string Scan string }
GetReportResultsContext provides the Results getReport action context.
func NewGetReportResultsContext ¶
func NewGetReportResultsContext(ctx context.Context, r *http.Request, service *goa.Service) (*GetReportResultsContext, error)
NewGetReportResultsContext parses the incoming request URL and body, performs validations and creates the context used by the Results controller getReport action.
func (*GetReportResultsContext) BadRequest ¶
func (ctx *GetReportResultsContext) BadRequest() error
BadRequest sends a HTTP response with status code 400.
func (*GetReportResultsContext) OK ¶
func (ctx *GetReportResultsContext) OK(resp []byte) error
OK sends a HTTP response with status code 200.
type HealthcheckController ¶
type HealthcheckController interface { goa.Muxer Show(*ShowHealthcheckContext) error }
HealthcheckController is the controller interface for the Healthcheck actions.
type RawPayload ¶
type RawPayload struct { // Check UUID CheckID *uuid.UUID `form:"check_id,omitempty" json:"check_id,omitempty" yaml:"check_id,omitempty" xml:"check_id,omitempty"` // Raw result of a Check. It's a JSON with a BASE64 encoded value of the raw result Raw *string `form:"raw,omitempty" json:"raw,omitempty" yaml:"raw,omitempty" xml:"raw,omitempty"` // Scan UUID ScanID *uuid.UUID `form:"scan_id,omitempty" json:"scan_id,omitempty" yaml:"scan_id,omitempty" xml:"scan_id,omitempty"` // Scan start time ScanStartTime *time.Time `` /* 130-byte string literal not displayed */ }
RawPayload user type.
type RawResultsContext ¶
type RawResultsContext struct { context.Context *goa.ResponseData *goa.RequestData Payload *RawPayload }
RawResultsContext provides the Results raw action context.
func NewRawResultsContext ¶
func NewRawResultsContext(ctx context.Context, r *http.Request, service *goa.Service) (*RawResultsContext, error)
NewRawResultsContext parses the incoming request URL and body, performs validations and creates the context used by the Results controller raw action.
func (*RawResultsContext) BadRequest ¶
func (ctx *RawResultsContext) BadRequest() error
BadRequest sends a HTTP response with status code 400.
func (*RawResultsContext) Created ¶
func (ctx *RawResultsContext) Created() error
Created sends a HTTP response with status code 201.
type ReportPayload ¶
type ReportPayload struct { // Check UUID CheckID *uuid.UUID `form:"check_id,omitempty" json:"check_id,omitempty" yaml:"check_id,omitempty" xml:"check_id,omitempty"` // Report of a Check. It's a JSON containing the value of the report Report *string `form:"report,omitempty" json:"report,omitempty" yaml:"report,omitempty" xml:"report,omitempty"` // Scan UUID ScanID *uuid.UUID `form:"scan_id,omitempty" json:"scan_id,omitempty" yaml:"scan_id,omitempty" xml:"scan_id,omitempty"` // Scan start time ScanStartTime *time.Time `` /* 130-byte string literal not displayed */ }
ReportPayload user type.
func (*ReportPayload) Validate ¶
func (ut *ReportPayload) Validate() (err error)
Validate validates the ReportPayload type instance.
type ReportResultsContext ¶
type ReportResultsContext struct { context.Context *goa.ResponseData *goa.RequestData Payload *ReportPayload }
ReportResultsContext provides the Results report action context.
func NewReportResultsContext ¶
func NewReportResultsContext(ctx context.Context, r *http.Request, service *goa.Service) (*ReportResultsContext, error)
NewReportResultsContext parses the incoming request URL and body, performs validations and creates the context used by the Results controller report action.
func (*ReportResultsContext) BadRequest ¶
func (ctx *ReportResultsContext) BadRequest() error
BadRequest sends a HTTP response with status code 400.
func (*ReportResultsContext) Created ¶
func (ctx *ReportResultsContext) Created() error
Created sends a HTTP response with status code 201.
type ResultsController ¶
type ResultsController interface { goa.Muxer GetLog(*GetLogResultsContext) error GetReport(*GetReportResultsContext) error Raw(*RawResultsContext) error Report(*ReportResultsContext) error }
ResultsController is the controller interface for the Results actions.
type ShowHealthcheckContext ¶
type ShowHealthcheckContext struct { context.Context *goa.ResponseData *goa.RequestData }
ShowHealthcheckContext provides the healthcheck show action context.
func NewShowHealthcheckContext ¶
func NewShowHealthcheckContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowHealthcheckContext, error)
NewShowHealthcheckContext parses the incoming request URL and body, performs validations and creates the context used by the healthcheck controller show action.
func (*ShowHealthcheckContext) OK ¶
func (ctx *ShowHealthcheckContext) OK(resp []byte) error
OK sends a HTTP response with status code 200.