operations

package
v0.0.0-...-5f6b411 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for operations API

func (*Client) GetSbomDBResourceHash

func (a *Client) GetSbomDBResourceHash(params *GetSbomDBResourceHashParams, opts ...ClientOption) (*GetSbomDBResourceHashOK, error)

GetSbomDBResourceHash gets an s b o m from d b by resource hash

func (*Client) PutSbomDBResourceHash

func (a *Client) PutSbomDBResourceHash(params *PutSbomDBResourceHashParams, opts ...ClientOption) (*PutSbomDBResourceHashCreated, error)

PutSbomDBResourceHash stores an s b o m in d b for the given resource hash

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetSbomDBResourceHash(params *GetSbomDBResourceHashParams, opts ...ClientOption) (*GetSbomDBResourceHashOK, error)

	PutSbomDBResourceHash(params *PutSbomDBResourceHashParams, opts ...ClientOption) (*PutSbomDBResourceHashCreated, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new operations API client.

type GetSbomDBResourceHashDefault

type GetSbomDBResourceHashDefault struct {
	Payload *models.APIResponse
	// contains filtered or unexported fields
}
GetSbomDBResourceHashDefault describes a response with status code -1, with default header values.

Unknown error

func NewGetSbomDBResourceHashDefault

func NewGetSbomDBResourceHashDefault(code int) *GetSbomDBResourceHashDefault

NewGetSbomDBResourceHashDefault creates a GetSbomDBResourceHashDefault with default headers values

func (*GetSbomDBResourceHashDefault) Code

Code gets the status code for the get sbom d b resource hash default response

func (*GetSbomDBResourceHashDefault) Error

func (*GetSbomDBResourceHashDefault) GetPayload

type GetSbomDBResourceHashNotFound

type GetSbomDBResourceHashNotFound struct {
}
GetSbomDBResourceHashNotFound describes a response with status code 404, with default header values.

SBOM not found.

func NewGetSbomDBResourceHashNotFound

func NewGetSbomDBResourceHashNotFound() *GetSbomDBResourceHashNotFound

NewGetSbomDBResourceHashNotFound creates a GetSbomDBResourceHashNotFound with default headers values

func (*GetSbomDBResourceHashNotFound) Error

type GetSbomDBResourceHashOK

type GetSbomDBResourceHashOK struct {
	Payload *models.SBOM
}
GetSbomDBResourceHashOK describes a response with status code 200, with default header values.

Success

func NewGetSbomDBResourceHashOK

func NewGetSbomDBResourceHashOK() *GetSbomDBResourceHashOK

NewGetSbomDBResourceHashOK creates a GetSbomDBResourceHashOK with default headers values

func (*GetSbomDBResourceHashOK) Error

func (o *GetSbomDBResourceHashOK) Error() string

func (*GetSbomDBResourceHashOK) GetPayload

func (o *GetSbomDBResourceHashOK) GetPayload() *models.SBOM

type GetSbomDBResourceHashParams

type GetSbomDBResourceHashParams struct {

	// ResourceHash.
	ResourceHash string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetSbomDBResourceHashParams contains all the parameters to send to the API endpoint

for the get sbom d b resource hash operation.

Typically these are written to a http.Request.

func NewGetSbomDBResourceHashParams

func NewGetSbomDBResourceHashParams() *GetSbomDBResourceHashParams

NewGetSbomDBResourceHashParams creates a new GetSbomDBResourceHashParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetSbomDBResourceHashParamsWithContext

func NewGetSbomDBResourceHashParamsWithContext(ctx context.Context) *GetSbomDBResourceHashParams

NewGetSbomDBResourceHashParamsWithContext creates a new GetSbomDBResourceHashParams object with the ability to set a context for a request.

func NewGetSbomDBResourceHashParamsWithHTTPClient

func NewGetSbomDBResourceHashParamsWithHTTPClient(client *http.Client) *GetSbomDBResourceHashParams

NewGetSbomDBResourceHashParamsWithHTTPClient creates a new GetSbomDBResourceHashParams object with the ability to set a custom HTTPClient for a request.

func NewGetSbomDBResourceHashParamsWithTimeout

func NewGetSbomDBResourceHashParamsWithTimeout(timeout time.Duration) *GetSbomDBResourceHashParams

NewGetSbomDBResourceHashParamsWithTimeout creates a new GetSbomDBResourceHashParams object with the ability to set a timeout on a request.

func (*GetSbomDBResourceHashParams) SetContext

func (o *GetSbomDBResourceHashParams) SetContext(ctx context.Context)

SetContext adds the context to the get sbom d b resource hash params

func (*GetSbomDBResourceHashParams) SetDefaults

func (o *GetSbomDBResourceHashParams) SetDefaults()

SetDefaults hydrates default values in the get sbom d b resource hash params (not the query body).

All values with no default are reset to their zero value.

func (*GetSbomDBResourceHashParams) SetHTTPClient

func (o *GetSbomDBResourceHashParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get sbom d b resource hash params

func (*GetSbomDBResourceHashParams) SetResourceHash

func (o *GetSbomDBResourceHashParams) SetResourceHash(resourceHash string)

SetResourceHash adds the resourceHash to the get sbom d b resource hash params

func (*GetSbomDBResourceHashParams) SetTimeout

func (o *GetSbomDBResourceHashParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get sbom d b resource hash params

func (*GetSbomDBResourceHashParams) WithContext

WithContext adds the context to the get sbom d b resource hash params

func (*GetSbomDBResourceHashParams) WithDefaults

WithDefaults hydrates default values in the get sbom d b resource hash params (not the query body).

All values with no default are reset to their zero value.

func (*GetSbomDBResourceHashParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get sbom d b resource hash params

func (*GetSbomDBResourceHashParams) WithResourceHash

func (o *GetSbomDBResourceHashParams) WithResourceHash(resourceHash string) *GetSbomDBResourceHashParams

WithResourceHash adds the resourceHash to the get sbom d b resource hash params

func (*GetSbomDBResourceHashParams) WithTimeout

WithTimeout adds the timeout to the get sbom d b resource hash params

func (*GetSbomDBResourceHashParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSbomDBResourceHashReader

type GetSbomDBResourceHashReader struct {
	// contains filtered or unexported fields
}

GetSbomDBResourceHashReader is a Reader for the GetSbomDBResourceHash structure.

func (*GetSbomDBResourceHashReader) ReadResponse

func (o *GetSbomDBResourceHashReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PutSbomDBResourceHashCreated

type PutSbomDBResourceHashCreated struct {
	Payload *models.SuccessResponse
}
PutSbomDBResourceHashCreated describes a response with status code 201, with default header values.

SBOM created in DB.

func NewPutSbomDBResourceHashCreated

func NewPutSbomDBResourceHashCreated() *PutSbomDBResourceHashCreated

NewPutSbomDBResourceHashCreated creates a PutSbomDBResourceHashCreated with default headers values

func (*PutSbomDBResourceHashCreated) Error

func (*PutSbomDBResourceHashCreated) GetPayload

type PutSbomDBResourceHashDefault

type PutSbomDBResourceHashDefault struct {
	Payload *models.APIResponse
	// contains filtered or unexported fields
}
PutSbomDBResourceHashDefault describes a response with status code -1, with default header values.

Unknown error

func NewPutSbomDBResourceHashDefault

func NewPutSbomDBResourceHashDefault(code int) *PutSbomDBResourceHashDefault

NewPutSbomDBResourceHashDefault creates a PutSbomDBResourceHashDefault with default headers values

func (*PutSbomDBResourceHashDefault) Code

Code gets the status code for the put sbom d b resource hash default response

func (*PutSbomDBResourceHashDefault) Error

func (*PutSbomDBResourceHashDefault) GetPayload

type PutSbomDBResourceHashParams

type PutSbomDBResourceHashParams struct {

	// Body.
	Body *models.SBOM

	// ResourceHash.
	ResourceHash string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PutSbomDBResourceHashParams contains all the parameters to send to the API endpoint

for the put sbom d b resource hash operation.

Typically these are written to a http.Request.

func NewPutSbomDBResourceHashParams

func NewPutSbomDBResourceHashParams() *PutSbomDBResourceHashParams

NewPutSbomDBResourceHashParams creates a new PutSbomDBResourceHashParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPutSbomDBResourceHashParamsWithContext

func NewPutSbomDBResourceHashParamsWithContext(ctx context.Context) *PutSbomDBResourceHashParams

NewPutSbomDBResourceHashParamsWithContext creates a new PutSbomDBResourceHashParams object with the ability to set a context for a request.

func NewPutSbomDBResourceHashParamsWithHTTPClient

func NewPutSbomDBResourceHashParamsWithHTTPClient(client *http.Client) *PutSbomDBResourceHashParams

NewPutSbomDBResourceHashParamsWithHTTPClient creates a new PutSbomDBResourceHashParams object with the ability to set a custom HTTPClient for a request.

func NewPutSbomDBResourceHashParamsWithTimeout

func NewPutSbomDBResourceHashParamsWithTimeout(timeout time.Duration) *PutSbomDBResourceHashParams

NewPutSbomDBResourceHashParamsWithTimeout creates a new PutSbomDBResourceHashParams object with the ability to set a timeout on a request.

func (*PutSbomDBResourceHashParams) SetBody

func (o *PutSbomDBResourceHashParams) SetBody(body *models.SBOM)

SetBody adds the body to the put sbom d b resource hash params

func (*PutSbomDBResourceHashParams) SetContext

func (o *PutSbomDBResourceHashParams) SetContext(ctx context.Context)

SetContext adds the context to the put sbom d b resource hash params

func (*PutSbomDBResourceHashParams) SetDefaults

func (o *PutSbomDBResourceHashParams) SetDefaults()

SetDefaults hydrates default values in the put sbom d b resource hash params (not the query body).

All values with no default are reset to their zero value.

func (*PutSbomDBResourceHashParams) SetHTTPClient

func (o *PutSbomDBResourceHashParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the put sbom d b resource hash params

func (*PutSbomDBResourceHashParams) SetResourceHash

func (o *PutSbomDBResourceHashParams) SetResourceHash(resourceHash string)

SetResourceHash adds the resourceHash to the put sbom d b resource hash params

func (*PutSbomDBResourceHashParams) SetTimeout

func (o *PutSbomDBResourceHashParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the put sbom d b resource hash params

func (*PutSbomDBResourceHashParams) WithBody

WithBody adds the body to the put sbom d b resource hash params

func (*PutSbomDBResourceHashParams) WithContext

WithContext adds the context to the put sbom d b resource hash params

func (*PutSbomDBResourceHashParams) WithDefaults

WithDefaults hydrates default values in the put sbom d b resource hash params (not the query body).

All values with no default are reset to their zero value.

func (*PutSbomDBResourceHashParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the put sbom d b resource hash params

func (*PutSbomDBResourceHashParams) WithResourceHash

func (o *PutSbomDBResourceHashParams) WithResourceHash(resourceHash string) *PutSbomDBResourceHashParams

WithResourceHash adds the resourceHash to the put sbom d b resource hash params

func (*PutSbomDBResourceHashParams) WithTimeout

WithTimeout adds the timeout to the put sbom d b resource hash params

func (*PutSbomDBResourceHashParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutSbomDBResourceHashReader

type PutSbomDBResourceHashReader struct {
	// contains filtered or unexported fields
}

PutSbomDBResourceHashReader is a Reader for the PutSbomDBResourceHash structure.

func (*PutSbomDBResourceHashReader) ReadResponse

func (o *PutSbomDBResourceHashReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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