experimental

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationIoSwaggerExamplesTodoListV1JSON

func WithAcceptApplicationIoSwaggerExamplesTodoListV1JSON(r *runtime.ClientOperation)

WithAcceptApplicationIoSwaggerExamplesTodoListV1JSON sets the Accept header to "application/io.swagger.examples.todo-list.v1+json".

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithContentTypeApplicationIoSwaggerExamplesTodoListV1JSON

func WithContentTypeApplicationIoSwaggerExamplesTodoListV1JSON(r *runtime.ClientOperation)

WithContentTypeApplicationIoSwaggerExamplesTodoListV1JSON sets the Content-Type header to "application/io.swagger.examples.todo-list.v1+json".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

Types

type Client

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

Client for experimental API

func (*Client) GetExperimental

func (a *Client) GetExperimental(params *GetExperimentalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetExperimentalOK, error)

GetExperimental get experimental API

func (*Client) PutExperimental

PutExperimental put experimental API

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 may be used to customize the behavior of Client methods.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	GetExperimental(params *GetExperimentalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetExperimentalOK, error)

	PutExperimental(params *PutExperimentalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutExperimentalOK, *PutExperimentalNoContent, 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 experimental API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new experimental API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new experimental API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type GetExperimentalOK

type GetExperimentalOK struct {
	Payload *models.Item
}

GetExperimentalOK describes a response with status code 200, with default header values.

OK

func NewGetExperimentalOK

func NewGetExperimentalOK() *GetExperimentalOK

NewGetExperimentalOK creates a GetExperimentalOK with default headers values

func (*GetExperimentalOK) Code

func (o *GetExperimentalOK) Code() int

Code gets the status code for the get experimental o k response

func (*GetExperimentalOK) Error

func (o *GetExperimentalOK) Error() string

func (*GetExperimentalOK) GetPayload

func (o *GetExperimentalOK) GetPayload() *models.Item

func (*GetExperimentalOK) IsClientError

func (o *GetExperimentalOK) IsClientError() bool

IsClientError returns true when this get experimental o k response has a 4xx status code

func (*GetExperimentalOK) IsCode

func (o *GetExperimentalOK) IsCode(code int) bool

IsCode returns true when this get experimental o k response a status code equal to that given

func (*GetExperimentalOK) IsRedirect

func (o *GetExperimentalOK) IsRedirect() bool

IsRedirect returns true when this get experimental o k response has a 3xx status code

func (*GetExperimentalOK) IsServerError

func (o *GetExperimentalOK) IsServerError() bool

IsServerError returns true when this get experimental o k response has a 5xx status code

func (*GetExperimentalOK) IsSuccess

func (o *GetExperimentalOK) IsSuccess() bool

IsSuccess returns true when this get experimental o k response has a 2xx status code

func (*GetExperimentalOK) String

func (o *GetExperimentalOK) String() string

type GetExperimentalParams

type GetExperimentalParams struct {

	// ID.
	ID *string

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

GetExperimentalParams contains all the parameters to send to the API endpoint

for the get experimental operation.

Typically these are written to a http.Request.

func NewGetExperimentalParams

func NewGetExperimentalParams() *GetExperimentalParams

NewGetExperimentalParams creates a new GetExperimentalParams 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 NewGetExperimentalParamsWithContext

func NewGetExperimentalParamsWithContext(ctx context.Context) *GetExperimentalParams

NewGetExperimentalParamsWithContext creates a new GetExperimentalParams object with the ability to set a context for a request.

func NewGetExperimentalParamsWithHTTPClient

func NewGetExperimentalParamsWithHTTPClient(client *http.Client) *GetExperimentalParams

NewGetExperimentalParamsWithHTTPClient creates a new GetExperimentalParams object with the ability to set a custom HTTPClient for a request.

func NewGetExperimentalParamsWithTimeout

func NewGetExperimentalParamsWithTimeout(timeout time.Duration) *GetExperimentalParams

NewGetExperimentalParamsWithTimeout creates a new GetExperimentalParams object with the ability to set a timeout on a request.

func (*GetExperimentalParams) SetContext

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

SetContext adds the context to the get experimental params

func (*GetExperimentalParams) SetDefaults

func (o *GetExperimentalParams) SetDefaults()

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

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

func (*GetExperimentalParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get experimental params

func (*GetExperimentalParams) SetID

func (o *GetExperimentalParams) SetID(id *string)

SetID adds the id to the get experimental params

func (*GetExperimentalParams) SetTimeout

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

SetTimeout adds the timeout to the get experimental params

func (*GetExperimentalParams) WithContext

WithContext adds the context to the get experimental params

func (*GetExperimentalParams) WithDefaults

func (o *GetExperimentalParams) WithDefaults() *GetExperimentalParams

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

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

func (*GetExperimentalParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get experimental params

func (*GetExperimentalParams) WithID

WithID adds the id to the get experimental params

func (*GetExperimentalParams) WithTimeout

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

WithTimeout adds the timeout to the get experimental params

func (*GetExperimentalParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetExperimentalReader

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

GetExperimentalReader is a Reader for the GetExperimental structure.

func (*GetExperimentalReader) ReadResponse

func (o *GetExperimentalReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type GetExperimentalUnauthorized

type GetExperimentalUnauthorized struct {
}

GetExperimentalUnauthorized describes a response with status code 401, with default header values.

wrong

func NewGetExperimentalUnauthorized

func NewGetExperimentalUnauthorized() *GetExperimentalUnauthorized

NewGetExperimentalUnauthorized creates a GetExperimentalUnauthorized with default headers values

func (*GetExperimentalUnauthorized) Code

func (o *GetExperimentalUnauthorized) Code() int

Code gets the status code for the get experimental unauthorized response

func (*GetExperimentalUnauthorized) Error

func (*GetExperimentalUnauthorized) IsClientError

func (o *GetExperimentalUnauthorized) IsClientError() bool

IsClientError returns true when this get experimental unauthorized response has a 4xx status code

func (*GetExperimentalUnauthorized) IsCode

func (o *GetExperimentalUnauthorized) IsCode(code int) bool

IsCode returns true when this get experimental unauthorized response a status code equal to that given

func (*GetExperimentalUnauthorized) IsRedirect

func (o *GetExperimentalUnauthorized) IsRedirect() bool

IsRedirect returns true when this get experimental unauthorized response has a 3xx status code

func (*GetExperimentalUnauthorized) IsServerError

func (o *GetExperimentalUnauthorized) IsServerError() bool

IsServerError returns true when this get experimental unauthorized response has a 5xx status code

func (*GetExperimentalUnauthorized) IsSuccess

func (o *GetExperimentalUnauthorized) IsSuccess() bool

IsSuccess returns true when this get experimental unauthorized response has a 2xx status code

func (*GetExperimentalUnauthorized) String

func (o *GetExperimentalUnauthorized) String() string

type PutExperimentalMethodNotAllowed

type PutExperimentalMethodNotAllowed struct {
}

PutExperimentalMethodNotAllowed describes a response with status code 405, with default header values.

very wrong

func NewPutExperimentalMethodNotAllowed

func NewPutExperimentalMethodNotAllowed() *PutExperimentalMethodNotAllowed

NewPutExperimentalMethodNotAllowed creates a PutExperimentalMethodNotAllowed with default headers values

func (*PutExperimentalMethodNotAllowed) Code

Code gets the status code for the put experimental method not allowed response

func (*PutExperimentalMethodNotAllowed) Error

func (*PutExperimentalMethodNotAllowed) IsClientError

func (o *PutExperimentalMethodNotAllowed) IsClientError() bool

IsClientError returns true when this put experimental method not allowed response has a 4xx status code

func (*PutExperimentalMethodNotAllowed) IsCode

func (o *PutExperimentalMethodNotAllowed) IsCode(code int) bool

IsCode returns true when this put experimental method not allowed response a status code equal to that given

func (*PutExperimentalMethodNotAllowed) IsRedirect

func (o *PutExperimentalMethodNotAllowed) IsRedirect() bool

IsRedirect returns true when this put experimental method not allowed response has a 3xx status code

func (*PutExperimentalMethodNotAllowed) IsServerError

func (o *PutExperimentalMethodNotAllowed) IsServerError() bool

IsServerError returns true when this put experimental method not allowed response has a 5xx status code

func (*PutExperimentalMethodNotAllowed) IsSuccess

func (o *PutExperimentalMethodNotAllowed) IsSuccess() bool

IsSuccess returns true when this put experimental method not allowed response has a 2xx status code

func (*PutExperimentalMethodNotAllowed) String

type PutExperimentalNoContent

type PutExperimentalNoContent struct {
}

PutExperimentalNoContent describes a response with status code 204, with default header values.

No change

func NewPutExperimentalNoContent

func NewPutExperimentalNoContent() *PutExperimentalNoContent

NewPutExperimentalNoContent creates a PutExperimentalNoContent with default headers values

func (*PutExperimentalNoContent) Code

func (o *PutExperimentalNoContent) Code() int

Code gets the status code for the put experimental no content response

func (*PutExperimentalNoContent) Error

func (o *PutExperimentalNoContent) Error() string

func (*PutExperimentalNoContent) IsClientError

func (o *PutExperimentalNoContent) IsClientError() bool

IsClientError returns true when this put experimental no content response has a 4xx status code

func (*PutExperimentalNoContent) IsCode

func (o *PutExperimentalNoContent) IsCode(code int) bool

IsCode returns true when this put experimental no content response a status code equal to that given

func (*PutExperimentalNoContent) IsRedirect

func (o *PutExperimentalNoContent) IsRedirect() bool

IsRedirect returns true when this put experimental no content response has a 3xx status code

func (*PutExperimentalNoContent) IsServerError

func (o *PutExperimentalNoContent) IsServerError() bool

IsServerError returns true when this put experimental no content response has a 5xx status code

func (*PutExperimentalNoContent) IsSuccess

func (o *PutExperimentalNoContent) IsSuccess() bool

IsSuccess returns true when this put experimental no content response has a 2xx status code

func (*PutExperimentalNoContent) String

func (o *PutExperimentalNoContent) String() string

type PutExperimentalOK

type PutExperimentalOK struct {
	Payload *models.Item
}

PutExperimentalOK describes a response with status code 200, with default header values.

OK

func NewPutExperimentalOK

func NewPutExperimentalOK() *PutExperimentalOK

NewPutExperimentalOK creates a PutExperimentalOK with default headers values

func (*PutExperimentalOK) Code

func (o *PutExperimentalOK) Code() int

Code gets the status code for the put experimental o k response

func (*PutExperimentalOK) Error

func (o *PutExperimentalOK) Error() string

func (*PutExperimentalOK) GetPayload

func (o *PutExperimentalOK) GetPayload() *models.Item

func (*PutExperimentalOK) IsClientError

func (o *PutExperimentalOK) IsClientError() bool

IsClientError returns true when this put experimental o k response has a 4xx status code

func (*PutExperimentalOK) IsCode

func (o *PutExperimentalOK) IsCode(code int) bool

IsCode returns true when this put experimental o k response a status code equal to that given

func (*PutExperimentalOK) IsRedirect

func (o *PutExperimentalOK) IsRedirect() bool

IsRedirect returns true when this put experimental o k response has a 3xx status code

func (*PutExperimentalOK) IsServerError

func (o *PutExperimentalOK) IsServerError() bool

IsServerError returns true when this put experimental o k response has a 5xx status code

func (*PutExperimentalOK) IsSuccess

func (o *PutExperimentalOK) IsSuccess() bool

IsSuccess returns true when this put experimental o k response has a 2xx status code

func (*PutExperimentalOK) String

func (o *PutExperimentalOK) String() string

type PutExperimentalParams

type PutExperimentalParams struct {

	// Body.
	Body *models.Item

	// ID.
	ID *string

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

PutExperimentalParams contains all the parameters to send to the API endpoint

for the put experimental operation.

Typically these are written to a http.Request.

func NewPutExperimentalParams

func NewPutExperimentalParams() *PutExperimentalParams

NewPutExperimentalParams creates a new PutExperimentalParams 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 NewPutExperimentalParamsWithContext

func NewPutExperimentalParamsWithContext(ctx context.Context) *PutExperimentalParams

NewPutExperimentalParamsWithContext creates a new PutExperimentalParams object with the ability to set a context for a request.

func NewPutExperimentalParamsWithHTTPClient

func NewPutExperimentalParamsWithHTTPClient(client *http.Client) *PutExperimentalParams

NewPutExperimentalParamsWithHTTPClient creates a new PutExperimentalParams object with the ability to set a custom HTTPClient for a request.

func NewPutExperimentalParamsWithTimeout

func NewPutExperimentalParamsWithTimeout(timeout time.Duration) *PutExperimentalParams

NewPutExperimentalParamsWithTimeout creates a new PutExperimentalParams object with the ability to set a timeout on a request.

func (*PutExperimentalParams) SetBody

func (o *PutExperimentalParams) SetBody(body *models.Item)

SetBody adds the body to the put experimental params

func (*PutExperimentalParams) SetContext

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

SetContext adds the context to the put experimental params

func (*PutExperimentalParams) SetDefaults

func (o *PutExperimentalParams) SetDefaults()

SetDefaults hydrates default values in the put experimental params (not the query body).

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

func (*PutExperimentalParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put experimental params

func (*PutExperimentalParams) SetID

func (o *PutExperimentalParams) SetID(id *string)

SetID adds the id to the put experimental params

func (*PutExperimentalParams) SetTimeout

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

SetTimeout adds the timeout to the put experimental params

func (*PutExperimentalParams) WithBody

WithBody adds the body to the put experimental params

func (*PutExperimentalParams) WithContext

WithContext adds the context to the put experimental params

func (*PutExperimentalParams) WithDefaults

func (o *PutExperimentalParams) WithDefaults() *PutExperimentalParams

WithDefaults hydrates default values in the put experimental params (not the query body).

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

func (*PutExperimentalParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put experimental params

func (*PutExperimentalParams) WithID

WithID adds the id to the put experimental params

func (*PutExperimentalParams) WithTimeout

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

WithTimeout adds the timeout to the put experimental params

func (*PutExperimentalParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutExperimentalReader

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

PutExperimentalReader is a Reader for the PutExperimental structure.

func (*PutExperimentalReader) ReadResponse

func (o *PutExperimentalReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, 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