Versions in this module Expand all Collapse all v0 v0.1.1 Mar 4, 2024 v0.1.0 Feb 9, 2024 Changes in this version + const TokenScopes + func GetSwagger() (swagger *openapi3.T, err error) + func Handler(si ServerInterface) http.Handler + func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler + func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler + func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler + func NewAccountRequest(server string) (*http.Request, error) + func NewCreateTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewCreateTokenRequestWithFormdataBody(server string, body CreateTokenFormdataRequestBody) (*http.Request, error) + func NewDeleteTokenRequest(server string, id string) (*http.Request, error) + func NewPingRequest(server string) (*http.Request, error) + func NewProcessFileAsyncRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewProcessFileFetchRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewProcessFileFetchRequestWithFormdataBody(server string, body ProcessFileFetchFormdataRequestBody) (*http.Request, error) + func NewProcessFileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewRetrieveFileRequest(server string, id string) (*http.Request, error) + func NewRetrieveTokenRequest(server string, id string) (*http.Request, error) + func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) + func Setup(mux *flow.Mux, eng *engine.Engine, key, secret, data, baseURL string) + type AccountInfo struct + Balance *float32 + BillingEmail *string + CreationDate *string + Keys *map[string]ApiKey + ModificationDate *string + Name *string + StartingBalance *float32 + Subscription *string + Users *map[string]User + type AccountResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *AccountInfo + JSON401 *N401 + func ParseAccountResponse(rsp *http.Response) (*AccountResponse, error) + func (r AccountResponse) Status() string + func (r AccountResponse) StatusCode() int + type ApiKey struct + Active *bool + CreationDate *string + DetectionCategoriesEnabled *[]string + LastSeenDate *string + Tags *[]string + type AuthToken struct + CreationDate *string + ExpirationDate *string + Id *string + type ChiServerOptions struct + BaseRouter chi.Router + BaseURL string + ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) + Middlewares []MiddlewareFunc + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) Account(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) CreateTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) CreateTokenWithFormdataBody(ctx context.Context, body CreateTokenFormdataRequestBody, ...) (*http.Response, error) + func (c *Client) DeleteToken(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) Ping(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) ProcessFileAsyncWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) ProcessFileFetchWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) ProcessFileFetchWithFormdataBody(ctx context.Context, body ProcessFileFetchFormdataRequestBody, ...) (*http.Response, error) + func (c *Client) ProcessFileWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) RetrieveFile(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) RetrieveToken(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + type ClientInterface interface + Account func(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateTokenWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + CreateTokenWithFormdataBody func(ctx context.Context, body CreateTokenFormdataRequestBody, ...) (*http.Response, error) + DeleteToken func(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + Ping func(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + ProcessFileAsyncWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + ProcessFileFetchWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + ProcessFileFetchWithFormdataBody func(ctx context.Context, body ProcessFileFetchFormdataRequestBody, ...) (*http.Response, error) + ProcessFileWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + RetrieveFile func(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + RetrieveToken func(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestEditorFn(fn RequestEditorFn) ClientOption + type ClientWithResponses struct + func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) + func (c *ClientWithResponses) AccountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AccountResponse, error) + func (c *ClientWithResponses) CreateTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateTokenResponse, error) + func (c *ClientWithResponses) CreateTokenWithFormdataBodyWithResponse(ctx context.Context, body CreateTokenFormdataRequestBody, ...) (*CreateTokenResponse, error) + func (c *ClientWithResponses) DeleteTokenWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteTokenResponse, error) + func (c *ClientWithResponses) PingWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PingResponse, error) + func (c *ClientWithResponses) ProcessFileAsyncWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ProcessFileAsyncResponse, error) + func (c *ClientWithResponses) ProcessFileFetchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ProcessFileFetchResponse, error) + func (c *ClientWithResponses) ProcessFileFetchWithFormdataBodyWithResponse(ctx context.Context, body ProcessFileFetchFormdataRequestBody, ...) (*ProcessFileFetchResponse, error) + func (c *ClientWithResponses) ProcessFileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ProcessFileResponse, error) + func (c *ClientWithResponses) RetrieveFileWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetrieveFileResponse, error) + func (c *ClientWithResponses) RetrieveTokenWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetrieveTokenResponse, error) + type ClientWithResponsesInterface interface + AccountWithResponse func(ctx context.Context, reqEditors ...RequestEditorFn) (*AccountResponse, error) + CreateTokenWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*CreateTokenResponse, error) + CreateTokenWithFormdataBodyWithResponse func(ctx context.Context, body CreateTokenFormdataRequestBody, ...) (*CreateTokenResponse, error) + DeleteTokenWithResponse func(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteTokenResponse, error) + PingWithResponse func(ctx context.Context, reqEditors ...RequestEditorFn) (*PingResponse, error) + ProcessFileAsyncWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*ProcessFileAsyncResponse, error) + ProcessFileFetchWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*ProcessFileFetchResponse, error) + ProcessFileFetchWithFormdataBodyWithResponse func(ctx context.Context, body ProcessFileFetchFormdataRequestBody, ...) (*ProcessFileFetchResponse, error) + ProcessFileWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*ProcessFileResponse, error) + RetrieveFileWithResponse func(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetrieveFileResponse, error) + RetrieveTokenWithResponse func(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RetrieveTokenResponse, error) + type CreateTokenFormdataBody struct + Timeout *int64 + type CreateTokenFormdataRequestBody CreateTokenFormdataBody + type CreateTokenResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *AuthToken + JSON401 *N401 + func ParseCreateTokenResponse(rsp *http.Response) (*CreateTokenResponse, error) + func (r CreateTokenResponse) Status() string + func (r CreateTokenResponse) StatusCode() int + type DeleteTokenResponse struct + Body []byte + HTTPResponse *http.Response + JSON401 *N401 + func ParseDeleteTokenResponse(rsp *http.Response) (*DeleteTokenResponse, error) + func (r DeleteTokenResponse) Status() string + func (r DeleteTokenResponse) StatusCode() int + type ErrorResponse struct + Error *string + Id *string + Metadata *map[string]string + type FakeHandler struct + func (h FakeHandler) Account(w http.ResponseWriter, r *http.Request) + func (h FakeHandler) CreateToken(w http.ResponseWriter, r *http.Request) + func (h FakeHandler) DeleteToken(w http.ResponseWriter, _ *http.Request, id string) + func (h FakeHandler) Ping(w http.ResponseWriter, r *http.Request) + func (h FakeHandler) ProcessFile(w http.ResponseWriter, r *http.Request) + func (h FakeHandler) ProcessFileAsync(w http.ResponseWriter, r *http.Request) + func (h FakeHandler) ProcessFileFetch(w http.ResponseWriter, r *http.Request) + func (h FakeHandler) RetrieveFile(w http.ResponseWriter, _ *http.Request, id string) + func (h FakeHandler) RetrieveToken(w http.ResponseWriter, _ *http.Request, id string) + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type InvalidParamFormatError struct + Err error + ParamName string + func (e *InvalidParamFormatError) Error() string + func (e *InvalidParamFormatError) Unwrap() error + type MiddlewareFunc func(http.Handler) http.Handler + type N401 = ErrorResponse + type PingResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSON401 *N401 + func ParsePingResponse(rsp *http.Response) (*PingResponse, error) + func (r PingResponse) Status() string + func (r PingResponse) StatusCode() int + type ProcessFileAsyncMultipartBody struct + Callback *string + File *openapi_types.File + Metadata *map[string]string + type ProcessFileAsyncMultipartRequestBody ProcessFileAsyncMultipartBody + type ProcessFileAsyncResponse struct + Body []byte + HTTPResponse *http.Response + JSON202 *ProcessingPendingResponse + JSON400 *ErrorResponse + JSON401 *N401 + func ParseProcessFileAsyncResponse(rsp *http.Response) (*ProcessFileAsyncResponse, error) + func (r ProcessFileAsyncResponse) Status() string + func (r ProcessFileAsyncResponse) StatusCode() int + type ProcessFileFetchFormdataBody struct + AdditionalProperties map[string]string + Callback *string + Location *string + func (a *ProcessFileFetchFormdataBody) Set(fieldName string, value string) + func (a *ProcessFileFetchFormdataBody) UnmarshalJSON(b []byte) error + func (a ProcessFileFetchFormdataBody) Get(fieldName string) (value string, found bool) + func (a ProcessFileFetchFormdataBody) MarshalJSON() ([]byte, error) + type ProcessFileFetchFormdataRequestBody ProcessFileFetchFormdataBody + type ProcessFileFetchResponse struct + Body []byte + HTTPResponse *http.Response + JSON202 *ProcessingPendingResponse + JSON400 *ErrorResponse + JSON401 *N401 + func ParseProcessFileFetchResponse(rsp *http.Response) (*ProcessFileFetchResponse, error) + func (r ProcessFileFetchResponse) Status() string + func (r ProcessFileFetchResponse) StatusCode() int + type ProcessFileMultipartBody struct + File openapi_types.File + Location string + Metadata *map[string]string + type ProcessFileMultipartRequestBody ProcessFileMultipartBody + type ProcessFileResponse struct + Body []byte + HTTPResponse *http.Response + JSON201 *ProcessingResponse + JSON400 *ErrorResponse + JSON401 *N401 + JSON403 *ErrorResponse + JSON413 *ErrorResponse + func ParseProcessFileResponse(rsp *http.Response) (*ProcessFileResponse, error) + func (r ProcessFileResponse) Status() string + func (r ProcessFileResponse) StatusCode() int + type ProcessingPendingResponse struct + Id *string + type ProcessingResponse struct + Checksum *string + ContentLength *float32 + ContentType *string + CreationDate *string + Error *string + Findings *[]string + Id *string + Metadata *map[string]string + type RequestEditorFn func(ctx context.Context, req *http.Request) error + type RequiredHeaderError struct + Err error + ParamName string + func (e *RequiredHeaderError) Error() string + func (e *RequiredHeaderError) Unwrap() error + type RequiredParamError struct + ParamName string + func (e *RequiredParamError) Error() string + type RetrieveFileResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *ProcessingResponse + JSON401 *N401 + func ParseRetrieveFileResponse(rsp *http.Response) (*RetrieveFileResponse, error) + func (r RetrieveFileResponse) Status() string + func (r RetrieveFileResponse) StatusCode() int + type RetrieveTokenResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *AuthToken + JSON401 *N401 + func ParseRetrieveTokenResponse(rsp *http.Response) (*RetrieveTokenResponse, error) + func (r RetrieveTokenResponse) Status() string + func (r RetrieveTokenResponse) StatusCode() int + type ServerInterface interface + Account func(w http.ResponseWriter, r *http.Request) + CreateToken func(w http.ResponseWriter, r *http.Request) + DeleteToken func(w http.ResponseWriter, r *http.Request, id string) + Ping func(w http.ResponseWriter, r *http.Request) + ProcessFile func(w http.ResponseWriter, r *http.Request) + ProcessFileAsync func(w http.ResponseWriter, r *http.Request) + ProcessFileFetch func(w http.ResponseWriter, r *http.Request) + RetrieveFile func(w http.ResponseWriter, r *http.Request, id string) + RetrieveToken func(w http.ResponseWriter, r *http.Request, id string) + type ServerInterfaceWrapper struct + ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) + Handler ServerInterface + HandlerMiddlewares []MiddlewareFunc + func (siw *ServerInterfaceWrapper) Account(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) CreateToken(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) DeleteToken(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) Ping(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) ProcessFile(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) ProcessFileAsync(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) ProcessFileFetch(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) RetrieveFile(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) RetrieveToken(w http.ResponseWriter, r *http.Request) + type TooManyValuesForParamError struct + Count int + ParamName string + func (e *TooManyValuesForParamError) Error() string + type UnescapedCookieParamError struct + Err error + ParamName string + func (e *UnescapedCookieParamError) Error() string + func (e *UnescapedCookieParamError) Unwrap() error + type Unimplemented struct + func (_ Unimplemented) Account(w http.ResponseWriter, r *http.Request) + func (_ Unimplemented) CreateToken(w http.ResponseWriter, r *http.Request) + func (_ Unimplemented) DeleteToken(w http.ResponseWriter, r *http.Request, id string) + func (_ Unimplemented) Ping(w http.ResponseWriter, r *http.Request) + func (_ Unimplemented) ProcessFile(w http.ResponseWriter, r *http.Request) + func (_ Unimplemented) ProcessFileAsync(w http.ResponseWriter, r *http.Request) + func (_ Unimplemented) ProcessFileFetch(w http.ResponseWriter, r *http.Request) + func (_ Unimplemented) RetrieveFile(w http.ResponseWriter, r *http.Request, id string) + func (_ Unimplemented) RetrieveToken(w http.ResponseWriter, r *http.Request, id string) + type UnmarshalingParamError struct + Err error + ParamName string + func (e *UnmarshalingParamError) Error() string + func (e *UnmarshalingParamError) Unwrap() error + type User struct + CreationDate *string + LastLogin *string