operations

package
v2.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const GetSbomDBResourceHashNotFoundCode int = 404

GetSbomDBResourceHashNotFoundCode is the HTTP code returned for type GetSbomDBResourceHashNotFound

View Source
const GetSbomDBResourceHashOKCode int = 200

GetSbomDBResourceHashOKCode is the HTTP code returned for type GetSbomDBResourceHashOK

View Source
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

WithPayload adds the payload to the get sbom d b resource hash default response

func (*GetSbomDBResourceHashDefault) WithStatusCode

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

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

type GetSbomDBResourceHashOK struct {

	/*
	  In: Body
	*/
	Payload *models.SBOM `json:"body,omitempty"`
}

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

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

func (o *GetSbomDBResourceHashURL) Must(u *url.URL, err error) *url.URL

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

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

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

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

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

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

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

WithPayload adds the payload to the put sbom d b resource hash default response

func (*PutSbomDBResourceHashDefault) WithStatusCode

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

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

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

func (o *PutSbomDBResourceHashURL) Must(u *url.URL, err error) *url.URL

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL