Documentation
¶
Index ¶
Constants ¶
View Source
const ( HeaderAccessControlAllowOrigin = "Access-Control-Allow-Origin" HeaderAccessControlAllowMethods = "Access-Control-Allow-Methods" HeaderAccessControlAllowHeaders = "Access-Control-Allow-Headers" HeaderAccessControlAllowCredentials = "Access-Control-Allow-Credentials" )
Variables ¶
View Source
var ErrMissingOpts = errors.New("missing required options")
Functions ¶
This section is empty.
Types ¶
type AutofixArtifactsRequest ¶
type AutofixResultObject ¶
type Facade ¶
type Facade struct {
ArtifactHandler *Handler
// contains filtered or unexported fields
}
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(storage storage.StorageClient, bucket string) *Handler
func (*Handler) HandleAnalysis ¶
HandleAnalysisArtifacts handles reading and parsing the body of the POST request to `/artifacts/analysis` endpoint.
type Opts ¶
type Opts struct {
AllowedOrigin string // For CORS
Bucket string
Storage storage.StorageClient
}
type Router ¶
type Router interface {
AddRoute(method string, path string, handlerFunc echo.HandlerFunc, middleware ...echo.MiddlewareFunc)
}
Click to show internal directories.
Click to hide internal directories.