server

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

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 server API

func (*Client) GetRekorVersion

func (a *Client) GetRekorVersion(params *GetRekorVersionParams, opts ...ClientOption) (*GetRekorVersionOK, error)

GetRekorVersion gets the current version of the rekor server

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 {
	GetRekorVersion(params *GetRekorVersionParams, opts ...ClientOption) (*GetRekorVersionOK, 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 server API client.

type GetRekorVersionDefault

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

There was an internal error in the server while processing the request

func NewGetRekorVersionDefault

func NewGetRekorVersionDefault(code int) *GetRekorVersionDefault

NewGetRekorVersionDefault creates a GetRekorVersionDefault with default headers values

func (*GetRekorVersionDefault) Code

func (o *GetRekorVersionDefault) Code() int

Code gets the status code for the get rekor version default response

func (*GetRekorVersionDefault) Error

func (o *GetRekorVersionDefault) Error() string

func (*GetRekorVersionDefault) GetPayload

func (o *GetRekorVersionDefault) GetPayload() *models.Error

type GetRekorVersionOK

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

A JSON object with the running rekor version

func NewGetRekorVersionOK

func NewGetRekorVersionOK() *GetRekorVersionOK

NewGetRekorVersionOK creates a GetRekorVersionOK with default headers values

func (*GetRekorVersionOK) Error

func (o *GetRekorVersionOK) Error() string

func (*GetRekorVersionOK) GetPayload

func (o *GetRekorVersionOK) GetPayload() *models.RekorVersion

type GetRekorVersionParams

type GetRekorVersionParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetRekorVersionParams contains all the parameters to send to the API endpoint

for the get rekor version operation.

Typically these are written to a http.Request.

func NewGetRekorVersionParams

func NewGetRekorVersionParams() *GetRekorVersionParams

NewGetRekorVersionParams creates a new GetRekorVersionParams 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 NewGetRekorVersionParamsWithContext

func NewGetRekorVersionParamsWithContext(ctx context.Context) *GetRekorVersionParams

NewGetRekorVersionParamsWithContext creates a new GetRekorVersionParams object with the ability to set a context for a request.

func NewGetRekorVersionParamsWithHTTPClient

func NewGetRekorVersionParamsWithHTTPClient(client *http.Client) *GetRekorVersionParams

NewGetRekorVersionParamsWithHTTPClient creates a new GetRekorVersionParams object with the ability to set a custom HTTPClient for a request.

func NewGetRekorVersionParamsWithTimeout

func NewGetRekorVersionParamsWithTimeout(timeout time.Duration) *GetRekorVersionParams

NewGetRekorVersionParamsWithTimeout creates a new GetRekorVersionParams object with the ability to set a timeout on a request.

func (*GetRekorVersionParams) SetContext

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

SetContext adds the context to the get rekor version params

func (*GetRekorVersionParams) SetDefaults

func (o *GetRekorVersionParams) SetDefaults()

SetDefaults hydrates default values in the get rekor version params (not the query body).

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

func (*GetRekorVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get rekor version params

func (*GetRekorVersionParams) SetTimeout

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

SetTimeout adds the timeout to the get rekor version params

func (*GetRekorVersionParams) WithContext

WithContext adds the context to the get rekor version params

func (*GetRekorVersionParams) WithDefaults

func (o *GetRekorVersionParams) WithDefaults() *GetRekorVersionParams

WithDefaults hydrates default values in the get rekor version params (not the query body).

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

func (*GetRekorVersionParams) WithHTTPClient

func (o *GetRekorVersionParams) WithHTTPClient(client *http.Client) *GetRekorVersionParams

WithHTTPClient adds the HTTPClient to the get rekor version params

func (*GetRekorVersionParams) WithTimeout

func (o *GetRekorVersionParams) WithTimeout(timeout time.Duration) *GetRekorVersionParams

WithTimeout adds the timeout to the get rekor version params

func (*GetRekorVersionParams) WriteToRequest

func (o *GetRekorVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetRekorVersionReader

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

GetRekorVersionReader is a Reader for the GetRekorVersion structure.

func (*GetRekorVersionReader) ReadResponse

func (o *GetRekorVersionReader) 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