Documentation ¶
Index ¶
- Constants
- type GetSbomDBResourceHash
- type GetSbomDBResourceHashDefault
- func (o *GetSbomDBResourceHashDefault) SetPayload(payload *models.APIResponse)
- func (o *GetSbomDBResourceHashDefault) SetStatusCode(code int)
- func (o *GetSbomDBResourceHashDefault) WithPayload(payload *models.APIResponse) *GetSbomDBResourceHashDefault
- func (o *GetSbomDBResourceHashDefault) WithStatusCode(code int) *GetSbomDBResourceHashDefault
- func (o *GetSbomDBResourceHashDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetSbomDBResourceHashHandler
- type GetSbomDBResourceHashHandlerFunc
- type GetSbomDBResourceHashNotFound
- type GetSbomDBResourceHashOK
- type GetSbomDBResourceHashParams
- type GetSbomDBResourceHashURL
- func (o *GetSbomDBResourceHashURL) Build() (*url.URL, error)
- func (o *GetSbomDBResourceHashURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSbomDBResourceHashURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSbomDBResourceHashURL) SetBasePath(bp string)
- func (o *GetSbomDBResourceHashURL) String() string
- func (o *GetSbomDBResourceHashURL) StringFull(scheme, host string) string
- func (o *GetSbomDBResourceHashURL) WithBasePath(bp string) *GetSbomDBResourceHashURL
- type KubeClaritySBOMDBAPIsAPI
- func (o *KubeClaritySBOMDBAPIsAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *KubeClaritySBOMDBAPIsAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *KubeClaritySBOMDBAPIsAPI) Authorizer() runtime.Authorizer
- func (o *KubeClaritySBOMDBAPIsAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *KubeClaritySBOMDBAPIsAPI) Context() *middleware.Context
- func (o *KubeClaritySBOMDBAPIsAPI) DefaultConsumes() string
- func (o *KubeClaritySBOMDBAPIsAPI) DefaultProduces() string
- func (o *KubeClaritySBOMDBAPIsAPI) Formats() strfmt.Registry
- func (o *KubeClaritySBOMDBAPIsAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *KubeClaritySBOMDBAPIsAPI) Init()
- func (o *KubeClaritySBOMDBAPIsAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *KubeClaritySBOMDBAPIsAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *KubeClaritySBOMDBAPIsAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *KubeClaritySBOMDBAPIsAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *KubeClaritySBOMDBAPIsAPI) Serve(builder middleware.Builder) http.Handler
- func (o *KubeClaritySBOMDBAPIsAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *KubeClaritySBOMDBAPIsAPI) SetDefaultConsumes(mediaType string)
- func (o *KubeClaritySBOMDBAPIsAPI) SetDefaultProduces(mediaType string)
- func (o *KubeClaritySBOMDBAPIsAPI) SetSpec(spec *loads.Document)
- func (o *KubeClaritySBOMDBAPIsAPI) UseRedoc()
- func (o *KubeClaritySBOMDBAPIsAPI) UseSwaggerUI()
- func (o *KubeClaritySBOMDBAPIsAPI) Validate() error
- type PutSbomDBResourceHash
- type PutSbomDBResourceHashCreated
- func (o *PutSbomDBResourceHashCreated) SetPayload(payload *models.SuccessResponse)
- func (o *PutSbomDBResourceHashCreated) WithPayload(payload *models.SuccessResponse) *PutSbomDBResourceHashCreated
- func (o *PutSbomDBResourceHashCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutSbomDBResourceHashDefault
- func (o *PutSbomDBResourceHashDefault) SetPayload(payload *models.APIResponse)
- func (o *PutSbomDBResourceHashDefault) SetStatusCode(code int)
- func (o *PutSbomDBResourceHashDefault) WithPayload(payload *models.APIResponse) *PutSbomDBResourceHashDefault
- func (o *PutSbomDBResourceHashDefault) WithStatusCode(code int) *PutSbomDBResourceHashDefault
- func (o *PutSbomDBResourceHashDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutSbomDBResourceHashHandler
- type PutSbomDBResourceHashHandlerFunc
- type PutSbomDBResourceHashParams
- type PutSbomDBResourceHashURL
- func (o *PutSbomDBResourceHashURL) Build() (*url.URL, error)
- func (o *PutSbomDBResourceHashURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PutSbomDBResourceHashURL) Must(u *url.URL, err error) *url.URL
- func (o *PutSbomDBResourceHashURL) SetBasePath(bp string)
- func (o *PutSbomDBResourceHashURL) String() string
- func (o *PutSbomDBResourceHashURL) StringFull(scheme, host string) string
- func (o *PutSbomDBResourceHashURL) WithBasePath(bp string) *PutSbomDBResourceHashURL
Constants ¶
const GetSbomDBResourceHashNotFoundCode int = 404
GetSbomDBResourceHashNotFoundCode is the HTTP code returned for type GetSbomDBResourceHashNotFound
const GetSbomDBResourceHashOKCode int = 200
GetSbomDBResourceHashOKCode is the HTTP code returned for type GetSbomDBResourceHashOK
const PutSbomDBResourceHashCreatedCode int = 201
PutSbomDBResourceHashCreatedCode is the HTTP code returned for type PutSbomDBResourceHashCreated
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetSbomDBResourceHash ¶
type GetSbomDBResourceHash struct { Context *middleware.Context Handler GetSbomDBResourceHashHandler }
GetSbomDBResourceHash swagger:route GET /sbomDB/{resourceHash} getSbomDBResourceHash
Get an SBOM from DB by resource hash.
func NewGetSbomDBResourceHash ¶
func NewGetSbomDBResourceHash(ctx *middleware.Context, handler GetSbomDBResourceHashHandler) *GetSbomDBResourceHash
NewGetSbomDBResourceHash creates a new http.Handler for the get sbom d b resource hash operation
func (*GetSbomDBResourceHash) ServeHTTP ¶
func (o *GetSbomDBResourceHash) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSbomDBResourceHashDefault ¶
type GetSbomDBResourceHashDefault struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` // contains filtered or unexported fields }
GetSbomDBResourceHashDefault Unknown error
swagger:response getSbomDBResourceHashDefault
func NewGetSbomDBResourceHashDefault ¶
func NewGetSbomDBResourceHashDefault(code int) *GetSbomDBResourceHashDefault
NewGetSbomDBResourceHashDefault creates GetSbomDBResourceHashDefault with default headers values
func (*GetSbomDBResourceHashDefault) SetPayload ¶
func (o *GetSbomDBResourceHashDefault) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get sbom d b resource hash default response
func (*GetSbomDBResourceHashDefault) SetStatusCode ¶
func (o *GetSbomDBResourceHashDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get sbom d b resource hash default response
func (*GetSbomDBResourceHashDefault) WithPayload ¶
func (o *GetSbomDBResourceHashDefault) WithPayload(payload *models.APIResponse) *GetSbomDBResourceHashDefault
WithPayload adds the payload to the get sbom d b resource hash default response
func (*GetSbomDBResourceHashDefault) WithStatusCode ¶
func (o *GetSbomDBResourceHashDefault) WithStatusCode(code int) *GetSbomDBResourceHashDefault
WithStatusCode adds the status to the get sbom d b resource hash default response
func (*GetSbomDBResourceHashDefault) WriteResponse ¶
func (o *GetSbomDBResourceHashDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSbomDBResourceHashHandler ¶
type GetSbomDBResourceHashHandler interface {
Handle(GetSbomDBResourceHashParams) middleware.Responder
}
GetSbomDBResourceHashHandler interface for that can handle valid get sbom d b resource hash params
type GetSbomDBResourceHashHandlerFunc ¶
type GetSbomDBResourceHashHandlerFunc func(GetSbomDBResourceHashParams) middleware.Responder
GetSbomDBResourceHashHandlerFunc turns a function with the right signature into a get sbom d b resource hash handler
func (GetSbomDBResourceHashHandlerFunc) Handle ¶
func (fn GetSbomDBResourceHashHandlerFunc) Handle(params GetSbomDBResourceHashParams) middleware.Responder
Handle executing the request and returning a response
type GetSbomDBResourceHashNotFound ¶
type GetSbomDBResourceHashNotFound struct { }
GetSbomDBResourceHashNotFound SBOM not found.
swagger:response getSbomDBResourceHashNotFound
func NewGetSbomDBResourceHashNotFound ¶
func NewGetSbomDBResourceHashNotFound() *GetSbomDBResourceHashNotFound
NewGetSbomDBResourceHashNotFound creates GetSbomDBResourceHashNotFound with default headers values
func (*GetSbomDBResourceHashNotFound) WriteResponse ¶
func (o *GetSbomDBResourceHashNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSbomDBResourceHashOK ¶
GetSbomDBResourceHashOK Success
swagger:response getSbomDBResourceHashOK
func NewGetSbomDBResourceHashOK ¶
func NewGetSbomDBResourceHashOK() *GetSbomDBResourceHashOK
NewGetSbomDBResourceHashOK creates GetSbomDBResourceHashOK with default headers values
func (*GetSbomDBResourceHashOK) SetPayload ¶
func (o *GetSbomDBResourceHashOK) SetPayload(payload *models.SBOM)
SetPayload sets the payload to the get sbom d b resource hash o k response
func (*GetSbomDBResourceHashOK) WithPayload ¶
func (o *GetSbomDBResourceHashOK) WithPayload(payload *models.SBOM) *GetSbomDBResourceHashOK
WithPayload adds the payload to the get sbom d b resource hash o k response
func (*GetSbomDBResourceHashOK) WriteResponse ¶
func (o *GetSbomDBResourceHashOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSbomDBResourceHashParams ¶
type GetSbomDBResourceHashParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ ResourceHash string }
GetSbomDBResourceHashParams contains all the bound params for the get sbom d b resource hash operation typically these are obtained from a http.Request
swagger:parameters GetSbomDBResourceHash
func NewGetSbomDBResourceHashParams ¶
func NewGetSbomDBResourceHashParams() GetSbomDBResourceHashParams
NewGetSbomDBResourceHashParams creates a new GetSbomDBResourceHashParams object
There are no default values defined in the spec.
func (*GetSbomDBResourceHashParams) BindRequest ¶
func (o *GetSbomDBResourceHashParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetSbomDBResourceHashParams() beforehand.
type GetSbomDBResourceHashURL ¶
type GetSbomDBResourceHashURL struct { ResourceHash string // contains filtered or unexported fields }
GetSbomDBResourceHashURL generates an URL for the get sbom d b resource hash operation
func (*GetSbomDBResourceHashURL) Build ¶
func (o *GetSbomDBResourceHashURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSbomDBResourceHashURL) BuildFull ¶
func (o *GetSbomDBResourceHashURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSbomDBResourceHashURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSbomDBResourceHashURL) SetBasePath ¶
func (o *GetSbomDBResourceHashURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetSbomDBResourceHashURL) String ¶
func (o *GetSbomDBResourceHashURL) String() string
String returns the string representation of the path with query string
func (*GetSbomDBResourceHashURL) StringFull ¶
func (o *GetSbomDBResourceHashURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSbomDBResourceHashURL) WithBasePath ¶
func (o *GetSbomDBResourceHashURL) WithBasePath(bp string) *GetSbomDBResourceHashURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type KubeClaritySBOMDBAPIsAPI ¶
type KubeClaritySBOMDBAPIsAPI struct { Middleware func(middleware.Builder) http.Handler // BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator // APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator // BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator // JSONConsumer registers a consumer for the following mime types: // - application/json JSONConsumer runtime.Consumer // JSONProducer registers a producer for the following mime types: // - application/json JSONProducer runtime.Producer // GetSbomDBResourceHashHandler sets the operation handler for the get sbom d b resource hash operation GetSbomDBResourceHashHandler GetSbomDBResourceHashHandler // PutSbomDBResourceHashHandler sets the operation handler for the put sbom d b resource hash operation PutSbomDBResourceHashHandler PutSbomDBResourceHashHandler // ServeError is called when an error is received, there is a default handler // but you can set your own with this ServeError func(http.ResponseWriter, *http.Request, error) // PreServerShutdown is called before the HTTP(S) server is shutdown // This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic PreServerShutdown func() // ServerShutdown is called when the HTTP(S) server is shut down and done // handling all active connections and does not accept connections any more ServerShutdown func() // Custom command line argument groups with their descriptions CommandLineOptionsGroups []swag.CommandLineOptionsGroup // User defined logger function. Logger func(string, ...interface{}) // contains filtered or unexported fields }
KubeClaritySBOMDBAPIsAPI the kube clarity s b o m d b a p is API
func NewKubeClaritySBOMDBAPIsAPI ¶
func NewKubeClaritySBOMDBAPIsAPI(spec *loads.Document) *KubeClaritySBOMDBAPIsAPI
NewKubeClaritySBOMDBAPIsAPI creates a new KubeClaritySBOMDBAPIs instance
func (*KubeClaritySBOMDBAPIsAPI) AddMiddlewareFor ¶
func (o *KubeClaritySBOMDBAPIsAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
AddMiddlewareFor adds a http middleware to existing handler
func (*KubeClaritySBOMDBAPIsAPI) AuthenticatorsFor ¶
func (o *KubeClaritySBOMDBAPIsAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*KubeClaritySBOMDBAPIsAPI) Authorizer ¶
func (o *KubeClaritySBOMDBAPIsAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*KubeClaritySBOMDBAPIsAPI) ConsumersFor ¶
func (o *KubeClaritySBOMDBAPIsAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*KubeClaritySBOMDBAPIsAPI) Context ¶
func (o *KubeClaritySBOMDBAPIsAPI) Context() *middleware.Context
Context returns the middleware context for the kube clarity s b o m d b a p is API
func (*KubeClaritySBOMDBAPIsAPI) DefaultConsumes ¶
func (o *KubeClaritySBOMDBAPIsAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*KubeClaritySBOMDBAPIsAPI) DefaultProduces ¶
func (o *KubeClaritySBOMDBAPIsAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*KubeClaritySBOMDBAPIsAPI) Formats ¶
func (o *KubeClaritySBOMDBAPIsAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*KubeClaritySBOMDBAPIsAPI) HandlerFor ¶
func (o *KubeClaritySBOMDBAPIsAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*KubeClaritySBOMDBAPIsAPI) Init ¶
func (o *KubeClaritySBOMDBAPIsAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*KubeClaritySBOMDBAPIsAPI) ProducersFor ¶
func (o *KubeClaritySBOMDBAPIsAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*KubeClaritySBOMDBAPIsAPI) RegisterConsumer ¶
func (o *KubeClaritySBOMDBAPIsAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*KubeClaritySBOMDBAPIsAPI) RegisterFormat ¶
func (o *KubeClaritySBOMDBAPIsAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*KubeClaritySBOMDBAPIsAPI) RegisterProducer ¶
func (o *KubeClaritySBOMDBAPIsAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*KubeClaritySBOMDBAPIsAPI) Serve ¶
func (o *KubeClaritySBOMDBAPIsAPI) Serve(builder middleware.Builder) http.Handler
Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))
func (*KubeClaritySBOMDBAPIsAPI) ServeErrorFor ¶
func (o *KubeClaritySBOMDBAPIsAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*KubeClaritySBOMDBAPIsAPI) SetDefaultConsumes ¶
func (o *KubeClaritySBOMDBAPIsAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*KubeClaritySBOMDBAPIsAPI) SetDefaultProduces ¶
func (o *KubeClaritySBOMDBAPIsAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*KubeClaritySBOMDBAPIsAPI) SetSpec ¶
func (o *KubeClaritySBOMDBAPIsAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*KubeClaritySBOMDBAPIsAPI) UseRedoc ¶
func (o *KubeClaritySBOMDBAPIsAPI) UseRedoc()
UseRedoc for documentation at /docs
func (*KubeClaritySBOMDBAPIsAPI) UseSwaggerUI ¶
func (o *KubeClaritySBOMDBAPIsAPI) UseSwaggerUI()
UseSwaggerUI for documentation at /docs
func (*KubeClaritySBOMDBAPIsAPI) Validate ¶
func (o *KubeClaritySBOMDBAPIsAPI) Validate() error
Validate validates the registrations in the KubeClaritySBOMDBAPIsAPI
type PutSbomDBResourceHash ¶
type PutSbomDBResourceHash struct { Context *middleware.Context Handler PutSbomDBResourceHashHandler }
PutSbomDBResourceHash swagger:route PUT /sbomDB/{resourceHash} putSbomDBResourceHash
Store an SBOM in DB for the given resource hash.
func NewPutSbomDBResourceHash ¶
func NewPutSbomDBResourceHash(ctx *middleware.Context, handler PutSbomDBResourceHashHandler) *PutSbomDBResourceHash
NewPutSbomDBResourceHash creates a new http.Handler for the put sbom d b resource hash operation
func (*PutSbomDBResourceHash) ServeHTTP ¶
func (o *PutSbomDBResourceHash) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PutSbomDBResourceHashCreated ¶
type PutSbomDBResourceHashCreated struct { /* In: Body */ Payload *models.SuccessResponse `json:"body,omitempty"` }
PutSbomDBResourceHashCreated SBOM created in DB.
swagger:response putSbomDBResourceHashCreated
func NewPutSbomDBResourceHashCreated ¶
func NewPutSbomDBResourceHashCreated() *PutSbomDBResourceHashCreated
NewPutSbomDBResourceHashCreated creates PutSbomDBResourceHashCreated with default headers values
func (*PutSbomDBResourceHashCreated) SetPayload ¶
func (o *PutSbomDBResourceHashCreated) SetPayload(payload *models.SuccessResponse)
SetPayload sets the payload to the put sbom d b resource hash created response
func (*PutSbomDBResourceHashCreated) WithPayload ¶
func (o *PutSbomDBResourceHashCreated) WithPayload(payload *models.SuccessResponse) *PutSbomDBResourceHashCreated
WithPayload adds the payload to the put sbom d b resource hash created response
func (*PutSbomDBResourceHashCreated) WriteResponse ¶
func (o *PutSbomDBResourceHashCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutSbomDBResourceHashDefault ¶
type PutSbomDBResourceHashDefault struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` // contains filtered or unexported fields }
PutSbomDBResourceHashDefault Unknown error
swagger:response putSbomDBResourceHashDefault
func NewPutSbomDBResourceHashDefault ¶
func NewPutSbomDBResourceHashDefault(code int) *PutSbomDBResourceHashDefault
NewPutSbomDBResourceHashDefault creates PutSbomDBResourceHashDefault with default headers values
func (*PutSbomDBResourceHashDefault) SetPayload ¶
func (o *PutSbomDBResourceHashDefault) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the put sbom d b resource hash default response
func (*PutSbomDBResourceHashDefault) SetStatusCode ¶
func (o *PutSbomDBResourceHashDefault) SetStatusCode(code int)
SetStatusCode sets the status to the put sbom d b resource hash default response
func (*PutSbomDBResourceHashDefault) WithPayload ¶
func (o *PutSbomDBResourceHashDefault) WithPayload(payload *models.APIResponse) *PutSbomDBResourceHashDefault
WithPayload adds the payload to the put sbom d b resource hash default response
func (*PutSbomDBResourceHashDefault) WithStatusCode ¶
func (o *PutSbomDBResourceHashDefault) WithStatusCode(code int) *PutSbomDBResourceHashDefault
WithStatusCode adds the status to the put sbom d b resource hash default response
func (*PutSbomDBResourceHashDefault) WriteResponse ¶
func (o *PutSbomDBResourceHashDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutSbomDBResourceHashHandler ¶
type PutSbomDBResourceHashHandler interface {
Handle(PutSbomDBResourceHashParams) middleware.Responder
}
PutSbomDBResourceHashHandler interface for that can handle valid put sbom d b resource hash params
type PutSbomDBResourceHashHandlerFunc ¶
type PutSbomDBResourceHashHandlerFunc func(PutSbomDBResourceHashParams) middleware.Responder
PutSbomDBResourceHashHandlerFunc turns a function with the right signature into a put sbom d b resource hash handler
func (PutSbomDBResourceHashHandlerFunc) Handle ¶
func (fn PutSbomDBResourceHashHandlerFunc) Handle(params PutSbomDBResourceHashParams) middleware.Responder
Handle executing the request and returning a response
type PutSbomDBResourceHashParams ¶
type PutSbomDBResourceHashParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.SBOM /* Required: true In: path */ ResourceHash string }
PutSbomDBResourceHashParams contains all the bound params for the put sbom d b resource hash operation typically these are obtained from a http.Request
swagger:parameters PutSbomDBResourceHash
func NewPutSbomDBResourceHashParams ¶
func NewPutSbomDBResourceHashParams() PutSbomDBResourceHashParams
NewPutSbomDBResourceHashParams creates a new PutSbomDBResourceHashParams object
There are no default values defined in the spec.
func (*PutSbomDBResourceHashParams) BindRequest ¶
func (o *PutSbomDBResourceHashParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewPutSbomDBResourceHashParams() beforehand.
type PutSbomDBResourceHashURL ¶
type PutSbomDBResourceHashURL struct { ResourceHash string // contains filtered or unexported fields }
PutSbomDBResourceHashURL generates an URL for the put sbom d b resource hash operation
func (*PutSbomDBResourceHashURL) Build ¶
func (o *PutSbomDBResourceHashURL) Build() (*url.URL, error)
Build a url path and query string
func (*PutSbomDBResourceHashURL) BuildFull ¶
func (o *PutSbomDBResourceHashURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PutSbomDBResourceHashURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PutSbomDBResourceHashURL) SetBasePath ¶
func (o *PutSbomDBResourceHashURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*PutSbomDBResourceHashURL) String ¶
func (o *PutSbomDBResourceHashURL) String() string
String returns the string representation of the path with query string
func (*PutSbomDBResourceHashURL) StringFull ¶
func (o *PutSbomDBResourceHashURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PutSbomDBResourceHashURL) WithBasePath ¶
func (o *PutSbomDBResourceHashURL) WithBasePath(bp string) *PutSbomDBResourceHashURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files ¶
- get_sbom_d_b_resource_hash.go
- get_sbom_d_b_resource_hash_parameters.go
- get_sbom_d_b_resource_hash_responses.go
- get_sbom_d_b_resource_hash_urlbuilder.go
- kube_clarity_s_b_o_m_d_b_a_p_is_api.go
- put_sbom_d_b_resource_hash.go
- put_sbom_d_b_resource_hash_parameters.go
- put_sbom_d_b_resource_hash_responses.go
- put_sbom_d_b_resource_hash_urlbuilder.go