proxies

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func (*Client) CreateProxy

func (a *Client) CreateProxy(params *CreateProxyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProxyOK, error)

CreateProxy creates proxy with the parameters given

func (*Client) DeleteProxy

func (a *Client) DeleteProxy(params *DeleteProxyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error

DeleteProxy deletes proxy by ID

func (*Client) GetProxy

func (a *Client) GetProxy(params *GetProxyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProxyOK, error)

GetProxy gets proxy by ID

func (*Client) ListProxies

func (a *Client) ListProxies(params *ListProxiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProxiesOK, error)

ListProxies lists proxies

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateProxy

func (a *Client) UpdateProxy(params *UpdateProxyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateProxyOK, error)

UpdateProxy updates proxy with the parameters given

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	CreateProxy(params *CreateProxyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProxyOK, error)

	DeleteProxy(params *DeleteProxyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error

	GetProxy(params *GetProxyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProxyOK, error)

	ListProxies(params *ListProxiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProxiesOK, error)

	UpdateProxy(params *UpdateProxyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateProxyOK, 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 proxies API client.

func NewClientWithBasicAuth

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

New creates a new proxies 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 proxies 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 CreateProxyDefault

type CreateProxyDefault struct {
	Payload apiserver_params.APIErrorResponse
	// contains filtered or unexported fields
}

CreateProxyDefault describes a response with status code -1, with default header values.

APIErrorResponse

func NewCreateProxyDefault

func NewCreateProxyDefault(code int) *CreateProxyDefault

NewCreateProxyDefault creates a CreateProxyDefault with default headers values

func (*CreateProxyDefault) Code

func (o *CreateProxyDefault) Code() int

Code gets the status code for the create proxy default response

func (*CreateProxyDefault) Error

func (o *CreateProxyDefault) Error() string

func (*CreateProxyDefault) GetPayload

func (*CreateProxyDefault) IsClientError

func (o *CreateProxyDefault) IsClientError() bool

IsClientError returns true when this create proxy default response has a 4xx status code

func (*CreateProxyDefault) IsCode

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

IsCode returns true when this create proxy default response a status code equal to that given

func (*CreateProxyDefault) IsRedirect

func (o *CreateProxyDefault) IsRedirect() bool

IsRedirect returns true when this create proxy default response has a 3xx status code

func (*CreateProxyDefault) IsServerError

func (o *CreateProxyDefault) IsServerError() bool

IsServerError returns true when this create proxy default response has a 5xx status code

func (*CreateProxyDefault) IsSuccess

func (o *CreateProxyDefault) IsSuccess() bool

IsSuccess returns true when this create proxy default response has a 2xx status code

func (*CreateProxyDefault) String

func (o *CreateProxyDefault) String() string

type CreateProxyOK

type CreateProxyOK struct {
	Payload garm_params.Proxy
}

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

Proxy

func NewCreateProxyOK

func NewCreateProxyOK() *CreateProxyOK

NewCreateProxyOK creates a CreateProxyOK with default headers values

func (*CreateProxyOK) Code

func (o *CreateProxyOK) Code() int

Code gets the status code for the create proxy o k response

func (*CreateProxyOK) Error

func (o *CreateProxyOK) Error() string

func (*CreateProxyOK) GetPayload

func (o *CreateProxyOK) GetPayload() garm_params.Proxy

func (*CreateProxyOK) IsClientError

func (o *CreateProxyOK) IsClientError() bool

IsClientError returns true when this create proxy o k response has a 4xx status code

func (*CreateProxyOK) IsCode

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

IsCode returns true when this create proxy o k response a status code equal to that given

func (*CreateProxyOK) IsRedirect

func (o *CreateProxyOK) IsRedirect() bool

IsRedirect returns true when this create proxy o k response has a 3xx status code

func (*CreateProxyOK) IsServerError

func (o *CreateProxyOK) IsServerError() bool

IsServerError returns true when this create proxy o k response has a 5xx status code

func (*CreateProxyOK) IsSuccess

func (o *CreateProxyOK) IsSuccess() bool

IsSuccess returns true when this create proxy o k response has a 2xx status code

func (*CreateProxyOK) String

func (o *CreateProxyOK) String() string

type CreateProxyParams

type CreateProxyParams struct {

	/* Body.

	   Parameters used when creating the proxy.
	*/
	Body garm_params.CreateProxyParams

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

CreateProxyParams contains all the parameters to send to the API endpoint

for the create proxy operation.

Typically these are written to a http.Request.

func NewCreateProxyParams

func NewCreateProxyParams() *CreateProxyParams

NewCreateProxyParams creates a new CreateProxyParams 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 NewCreateProxyParamsWithContext

func NewCreateProxyParamsWithContext(ctx context.Context) *CreateProxyParams

NewCreateProxyParamsWithContext creates a new CreateProxyParams object with the ability to set a context for a request.

func NewCreateProxyParamsWithHTTPClient

func NewCreateProxyParamsWithHTTPClient(client *http.Client) *CreateProxyParams

NewCreateProxyParamsWithHTTPClient creates a new CreateProxyParams object with the ability to set a custom HTTPClient for a request.

func NewCreateProxyParamsWithTimeout

func NewCreateProxyParamsWithTimeout(timeout time.Duration) *CreateProxyParams

NewCreateProxyParamsWithTimeout creates a new CreateProxyParams object with the ability to set a timeout on a request.

func (*CreateProxyParams) SetBody

SetBody adds the body to the create proxy params

func (*CreateProxyParams) SetContext

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

SetContext adds the context to the create proxy params

func (*CreateProxyParams) SetDefaults

func (o *CreateProxyParams) SetDefaults()

SetDefaults hydrates default values in the create proxy params (not the query body).

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

func (*CreateProxyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create proxy params

func (*CreateProxyParams) SetTimeout

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

SetTimeout adds the timeout to the create proxy params

func (*CreateProxyParams) WithBody

WithBody adds the body to the create proxy params

func (*CreateProxyParams) WithContext

func (o *CreateProxyParams) WithContext(ctx context.Context) *CreateProxyParams

WithContext adds the context to the create proxy params

func (*CreateProxyParams) WithDefaults

func (o *CreateProxyParams) WithDefaults() *CreateProxyParams

WithDefaults hydrates default values in the create proxy params (not the query body).

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

func (*CreateProxyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create proxy params

func (*CreateProxyParams) WithTimeout

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

WithTimeout adds the timeout to the create proxy params

func (*CreateProxyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateProxyReader

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

CreateProxyReader is a Reader for the CreateProxy structure.

func (*CreateProxyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteProxyDefault

type DeleteProxyDefault struct {
	Payload apiserver_params.APIErrorResponse
	// contains filtered or unexported fields
}

DeleteProxyDefault describes a response with status code -1, with default header values.

APIErrorResponse

func NewDeleteProxyDefault

func NewDeleteProxyDefault(code int) *DeleteProxyDefault

NewDeleteProxyDefault creates a DeleteProxyDefault with default headers values

func (*DeleteProxyDefault) Code

func (o *DeleteProxyDefault) Code() int

Code gets the status code for the delete proxy default response

func (*DeleteProxyDefault) Error

func (o *DeleteProxyDefault) Error() string

func (*DeleteProxyDefault) GetPayload

func (*DeleteProxyDefault) IsClientError

func (o *DeleteProxyDefault) IsClientError() bool

IsClientError returns true when this delete proxy default response has a 4xx status code

func (*DeleteProxyDefault) IsCode

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

IsCode returns true when this delete proxy default response a status code equal to that given

func (*DeleteProxyDefault) IsRedirect

func (o *DeleteProxyDefault) IsRedirect() bool

IsRedirect returns true when this delete proxy default response has a 3xx status code

func (*DeleteProxyDefault) IsServerError

func (o *DeleteProxyDefault) IsServerError() bool

IsServerError returns true when this delete proxy default response has a 5xx status code

func (*DeleteProxyDefault) IsSuccess

func (o *DeleteProxyDefault) IsSuccess() bool

IsSuccess returns true when this delete proxy default response has a 2xx status code

func (*DeleteProxyDefault) String

func (o *DeleteProxyDefault) String() string

type DeleteProxyParams

type DeleteProxyParams struct {

	/* ProxyID.

	   ID of the proxy to delete.
	*/
	ProxyID float64

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

DeleteProxyParams contains all the parameters to send to the API endpoint

for the delete proxy operation.

Typically these are written to a http.Request.

func NewDeleteProxyParams

func NewDeleteProxyParams() *DeleteProxyParams

NewDeleteProxyParams creates a new DeleteProxyParams 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 NewDeleteProxyParamsWithContext

func NewDeleteProxyParamsWithContext(ctx context.Context) *DeleteProxyParams

NewDeleteProxyParamsWithContext creates a new DeleteProxyParams object with the ability to set a context for a request.

func NewDeleteProxyParamsWithHTTPClient

func NewDeleteProxyParamsWithHTTPClient(client *http.Client) *DeleteProxyParams

NewDeleteProxyParamsWithHTTPClient creates a new DeleteProxyParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteProxyParamsWithTimeout

func NewDeleteProxyParamsWithTimeout(timeout time.Duration) *DeleteProxyParams

NewDeleteProxyParamsWithTimeout creates a new DeleteProxyParams object with the ability to set a timeout on a request.

func (*DeleteProxyParams) SetContext

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

SetContext adds the context to the delete proxy params

func (*DeleteProxyParams) SetDefaults

func (o *DeleteProxyParams) SetDefaults()

SetDefaults hydrates default values in the delete proxy params (not the query body).

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

func (*DeleteProxyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete proxy params

func (*DeleteProxyParams) SetProxyID

func (o *DeleteProxyParams) SetProxyID(proxyID float64)

SetProxyID adds the proxyId to the delete proxy params

func (*DeleteProxyParams) SetTimeout

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

SetTimeout adds the timeout to the delete proxy params

func (*DeleteProxyParams) WithContext

func (o *DeleteProxyParams) WithContext(ctx context.Context) *DeleteProxyParams

WithContext adds the context to the delete proxy params

func (*DeleteProxyParams) WithDefaults

func (o *DeleteProxyParams) WithDefaults() *DeleteProxyParams

WithDefaults hydrates default values in the delete proxy params (not the query body).

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

func (*DeleteProxyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete proxy params

func (*DeleteProxyParams) WithProxyID

func (o *DeleteProxyParams) WithProxyID(proxyID float64) *DeleteProxyParams

WithProxyID adds the proxyID to the delete proxy params

func (*DeleteProxyParams) WithTimeout

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

WithTimeout adds the timeout to the delete proxy params

func (*DeleteProxyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteProxyReader

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

DeleteProxyReader is a Reader for the DeleteProxy structure.

func (*DeleteProxyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetProxyDefault

type GetProxyDefault struct {
	Payload apiserver_params.APIErrorResponse
	// contains filtered or unexported fields
}

GetProxyDefault describes a response with status code -1, with default header values.

APIErrorResponse

func NewGetProxyDefault

func NewGetProxyDefault(code int) *GetProxyDefault

NewGetProxyDefault creates a GetProxyDefault with default headers values

func (*GetProxyDefault) Code

func (o *GetProxyDefault) Code() int

Code gets the status code for the get proxy default response

func (*GetProxyDefault) Error

func (o *GetProxyDefault) Error() string

func (*GetProxyDefault) GetPayload

func (*GetProxyDefault) IsClientError

func (o *GetProxyDefault) IsClientError() bool

IsClientError returns true when this get proxy default response has a 4xx status code

func (*GetProxyDefault) IsCode

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

IsCode returns true when this get proxy default response a status code equal to that given

func (*GetProxyDefault) IsRedirect

func (o *GetProxyDefault) IsRedirect() bool

IsRedirect returns true when this get proxy default response has a 3xx status code

func (*GetProxyDefault) IsServerError

func (o *GetProxyDefault) IsServerError() bool

IsServerError returns true when this get proxy default response has a 5xx status code

func (*GetProxyDefault) IsSuccess

func (o *GetProxyDefault) IsSuccess() bool

IsSuccess returns true when this get proxy default response has a 2xx status code

func (*GetProxyDefault) String

func (o *GetProxyDefault) String() string

type GetProxyOK

type GetProxyOK struct {
	Payload garm_params.Proxy
}

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

Proxy

func NewGetProxyOK

func NewGetProxyOK() *GetProxyOK

NewGetProxyOK creates a GetProxyOK with default headers values

func (*GetProxyOK) Code

func (o *GetProxyOK) Code() int

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

func (*GetProxyOK) Error

func (o *GetProxyOK) Error() string

func (*GetProxyOK) GetPayload

func (o *GetProxyOK) GetPayload() garm_params.Proxy

func (*GetProxyOK) IsClientError

func (o *GetProxyOK) IsClientError() bool

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

func (*GetProxyOK) IsCode

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

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

func (*GetProxyOK) IsRedirect

func (o *GetProxyOK) IsRedirect() bool

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

func (*GetProxyOK) IsServerError

func (o *GetProxyOK) IsServerError() bool

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

func (*GetProxyOK) IsSuccess

func (o *GetProxyOK) IsSuccess() bool

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

func (*GetProxyOK) String

func (o *GetProxyOK) String() string

type GetProxyParams

type GetProxyParams struct {

	/* ProxyID.

	   ID of the proxy to fetch.
	*/
	ProxyID float64

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

GetProxyParams contains all the parameters to send to the API endpoint

for the get proxy operation.

Typically these are written to a http.Request.

func NewGetProxyParams

func NewGetProxyParams() *GetProxyParams

NewGetProxyParams creates a new GetProxyParams 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 NewGetProxyParamsWithContext

func NewGetProxyParamsWithContext(ctx context.Context) *GetProxyParams

NewGetProxyParamsWithContext creates a new GetProxyParams object with the ability to set a context for a request.

func NewGetProxyParamsWithHTTPClient

func NewGetProxyParamsWithHTTPClient(client *http.Client) *GetProxyParams

NewGetProxyParamsWithHTTPClient creates a new GetProxyParams object with the ability to set a custom HTTPClient for a request.

func NewGetProxyParamsWithTimeout

func NewGetProxyParamsWithTimeout(timeout time.Duration) *GetProxyParams

NewGetProxyParamsWithTimeout creates a new GetProxyParams object with the ability to set a timeout on a request.

func (*GetProxyParams) SetContext

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

SetContext adds the context to the get proxy params

func (*GetProxyParams) SetDefaults

func (o *GetProxyParams) SetDefaults()

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

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

func (*GetProxyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get proxy params

func (*GetProxyParams) SetProxyID

func (o *GetProxyParams) SetProxyID(proxyID float64)

SetProxyID adds the proxyId to the get proxy params

func (*GetProxyParams) SetTimeout

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

SetTimeout adds the timeout to the get proxy params

func (*GetProxyParams) WithContext

func (o *GetProxyParams) WithContext(ctx context.Context) *GetProxyParams

WithContext adds the context to the get proxy params

func (*GetProxyParams) WithDefaults

func (o *GetProxyParams) WithDefaults() *GetProxyParams

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

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

func (*GetProxyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get proxy params

func (*GetProxyParams) WithProxyID

func (o *GetProxyParams) WithProxyID(proxyID float64) *GetProxyParams

WithProxyID adds the proxyID to the get proxy params

func (*GetProxyParams) WithTimeout

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

WithTimeout adds the timeout to the get proxy params

func (*GetProxyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetProxyReader

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

GetProxyReader is a Reader for the GetProxy structure.

func (*GetProxyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListProxiesDefault

type ListProxiesDefault struct {
	Payload apiserver_params.APIErrorResponse
	// contains filtered or unexported fields
}

ListProxiesDefault describes a response with status code -1, with default header values.

APIErrorResponse

func NewListProxiesDefault

func NewListProxiesDefault(code int) *ListProxiesDefault

NewListProxiesDefault creates a ListProxiesDefault with default headers values

func (*ListProxiesDefault) Code

func (o *ListProxiesDefault) Code() int

Code gets the status code for the list proxies default response

func (*ListProxiesDefault) Error

func (o *ListProxiesDefault) Error() string

func (*ListProxiesDefault) GetPayload

func (*ListProxiesDefault) IsClientError

func (o *ListProxiesDefault) IsClientError() bool

IsClientError returns true when this list proxies default response has a 4xx status code

func (*ListProxiesDefault) IsCode

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

IsCode returns true when this list proxies default response a status code equal to that given

func (*ListProxiesDefault) IsRedirect

func (o *ListProxiesDefault) IsRedirect() bool

IsRedirect returns true when this list proxies default response has a 3xx status code

func (*ListProxiesDefault) IsServerError

func (o *ListProxiesDefault) IsServerError() bool

IsServerError returns true when this list proxies default response has a 5xx status code

func (*ListProxiesDefault) IsSuccess

func (o *ListProxiesDefault) IsSuccess() bool

IsSuccess returns true when this list proxies default response has a 2xx status code

func (*ListProxiesDefault) String

func (o *ListProxiesDefault) String() string

type ListProxiesOK

type ListProxiesOK struct {
	Payload garm_params.Proxies
}

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

Proxies

func NewListProxiesOK

func NewListProxiesOK() *ListProxiesOK

NewListProxiesOK creates a ListProxiesOK with default headers values

func (*ListProxiesOK) Code

func (o *ListProxiesOK) Code() int

Code gets the status code for the list proxies o k response

func (*ListProxiesOK) Error

func (o *ListProxiesOK) Error() string

func (*ListProxiesOK) GetPayload

func (o *ListProxiesOK) GetPayload() garm_params.Proxies

func (*ListProxiesOK) IsClientError

func (o *ListProxiesOK) IsClientError() bool

IsClientError returns true when this list proxies o k response has a 4xx status code

func (*ListProxiesOK) IsCode

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

IsCode returns true when this list proxies o k response a status code equal to that given

func (*ListProxiesOK) IsRedirect

func (o *ListProxiesOK) IsRedirect() bool

IsRedirect returns true when this list proxies o k response has a 3xx status code

func (*ListProxiesOK) IsServerError

func (o *ListProxiesOK) IsServerError() bool

IsServerError returns true when this list proxies o k response has a 5xx status code

func (*ListProxiesOK) IsSuccess

func (o *ListProxiesOK) IsSuccess() bool

IsSuccess returns true when this list proxies o k response has a 2xx status code

func (*ListProxiesOK) String

func (o *ListProxiesOK) String() string

type ListProxiesParams

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

ListProxiesParams contains all the parameters to send to the API endpoint

for the list proxies operation.

Typically these are written to a http.Request.

func NewListProxiesParams

func NewListProxiesParams() *ListProxiesParams

NewListProxiesParams creates a new ListProxiesParams 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 NewListProxiesParamsWithContext

func NewListProxiesParamsWithContext(ctx context.Context) *ListProxiesParams

NewListProxiesParamsWithContext creates a new ListProxiesParams object with the ability to set a context for a request.

func NewListProxiesParamsWithHTTPClient

func NewListProxiesParamsWithHTTPClient(client *http.Client) *ListProxiesParams

NewListProxiesParamsWithHTTPClient creates a new ListProxiesParams object with the ability to set a custom HTTPClient for a request.

func NewListProxiesParamsWithTimeout

func NewListProxiesParamsWithTimeout(timeout time.Duration) *ListProxiesParams

NewListProxiesParamsWithTimeout creates a new ListProxiesParams object with the ability to set a timeout on a request.

func (*ListProxiesParams) SetContext

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

SetContext adds the context to the list proxies params

func (*ListProxiesParams) SetDefaults

func (o *ListProxiesParams) SetDefaults()

SetDefaults hydrates default values in the list proxies params (not the query body).

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

func (*ListProxiesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list proxies params

func (*ListProxiesParams) SetTimeout

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

SetTimeout adds the timeout to the list proxies params

func (*ListProxiesParams) WithContext

func (o *ListProxiesParams) WithContext(ctx context.Context) *ListProxiesParams

WithContext adds the context to the list proxies params

func (*ListProxiesParams) WithDefaults

func (o *ListProxiesParams) WithDefaults() *ListProxiesParams

WithDefaults hydrates default values in the list proxies params (not the query body).

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

func (*ListProxiesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list proxies params

func (*ListProxiesParams) WithTimeout

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

WithTimeout adds the timeout to the list proxies params

func (*ListProxiesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListProxiesReader

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

ListProxiesReader is a Reader for the ListProxies structure.

func (*ListProxiesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateProxyDefault

type UpdateProxyDefault struct {
	Payload apiserver_params.APIErrorResponse
	// contains filtered or unexported fields
}

UpdateProxyDefault describes a response with status code -1, with default header values.

APIErrorResponse

func NewUpdateProxyDefault

func NewUpdateProxyDefault(code int) *UpdateProxyDefault

NewUpdateProxyDefault creates a UpdateProxyDefault with default headers values

func (*UpdateProxyDefault) Code

func (o *UpdateProxyDefault) Code() int

Code gets the status code for the update proxy default response

func (*UpdateProxyDefault) Error

func (o *UpdateProxyDefault) Error() string

func (*UpdateProxyDefault) GetPayload

func (*UpdateProxyDefault) IsClientError

func (o *UpdateProxyDefault) IsClientError() bool

IsClientError returns true when this update proxy default response has a 4xx status code

func (*UpdateProxyDefault) IsCode

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

IsCode returns true when this update proxy default response a status code equal to that given

func (*UpdateProxyDefault) IsRedirect

func (o *UpdateProxyDefault) IsRedirect() bool

IsRedirect returns true when this update proxy default response has a 3xx status code

func (*UpdateProxyDefault) IsServerError

func (o *UpdateProxyDefault) IsServerError() bool

IsServerError returns true when this update proxy default response has a 5xx status code

func (*UpdateProxyDefault) IsSuccess

func (o *UpdateProxyDefault) IsSuccess() bool

IsSuccess returns true when this update proxy default response has a 2xx status code

func (*UpdateProxyDefault) String

func (o *UpdateProxyDefault) String() string

type UpdateProxyOK

type UpdateProxyOK struct {
	Payload garm_params.Proxy
}

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

Proxy

func NewUpdateProxyOK

func NewUpdateProxyOK() *UpdateProxyOK

NewUpdateProxyOK creates a UpdateProxyOK with default headers values

func (*UpdateProxyOK) Code

func (o *UpdateProxyOK) Code() int

Code gets the status code for the update proxy o k response

func (*UpdateProxyOK) Error

func (o *UpdateProxyOK) Error() string

func (*UpdateProxyOK) GetPayload

func (o *UpdateProxyOK) GetPayload() garm_params.Proxy

func (*UpdateProxyOK) IsClientError

func (o *UpdateProxyOK) IsClientError() bool

IsClientError returns true when this update proxy o k response has a 4xx status code

func (*UpdateProxyOK) IsCode

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

IsCode returns true when this update proxy o k response a status code equal to that given

func (*UpdateProxyOK) IsRedirect

func (o *UpdateProxyOK) IsRedirect() bool

IsRedirect returns true when this update proxy o k response has a 3xx status code

func (*UpdateProxyOK) IsServerError

func (o *UpdateProxyOK) IsServerError() bool

IsServerError returns true when this update proxy o k response has a 5xx status code

func (*UpdateProxyOK) IsSuccess

func (o *UpdateProxyOK) IsSuccess() bool

IsSuccess returns true when this update proxy o k response has a 2xx status code

func (*UpdateProxyOK) String

func (o *UpdateProxyOK) String() string

type UpdateProxyParams

type UpdateProxyParams struct {

	/* Body.

	   Parameters used when updating the proxy.
	*/
	Body garm_params.UpdateProxyParams

	/* ProxyID.

	   ID of the proxy to update.
	*/
	ProxyID float64

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

UpdateProxyParams contains all the parameters to send to the API endpoint

for the update proxy operation.

Typically these are written to a http.Request.

func NewUpdateProxyParams

func NewUpdateProxyParams() *UpdateProxyParams

NewUpdateProxyParams creates a new UpdateProxyParams 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 NewUpdateProxyParamsWithContext

func NewUpdateProxyParamsWithContext(ctx context.Context) *UpdateProxyParams

NewUpdateProxyParamsWithContext creates a new UpdateProxyParams object with the ability to set a context for a request.

func NewUpdateProxyParamsWithHTTPClient

func NewUpdateProxyParamsWithHTTPClient(client *http.Client) *UpdateProxyParams

NewUpdateProxyParamsWithHTTPClient creates a new UpdateProxyParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateProxyParamsWithTimeout

func NewUpdateProxyParamsWithTimeout(timeout time.Duration) *UpdateProxyParams

NewUpdateProxyParamsWithTimeout creates a new UpdateProxyParams object with the ability to set a timeout on a request.

func (*UpdateProxyParams) SetBody

SetBody adds the body to the update proxy params

func (*UpdateProxyParams) SetContext

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

SetContext adds the context to the update proxy params

func (*UpdateProxyParams) SetDefaults

func (o *UpdateProxyParams) SetDefaults()

SetDefaults hydrates default values in the update proxy params (not the query body).

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

func (*UpdateProxyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update proxy params

func (*UpdateProxyParams) SetProxyID

func (o *UpdateProxyParams) SetProxyID(proxyID float64)

SetProxyID adds the proxyId to the update proxy params

func (*UpdateProxyParams) SetTimeout

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

SetTimeout adds the timeout to the update proxy params

func (*UpdateProxyParams) WithBody

WithBody adds the body to the update proxy params

func (*UpdateProxyParams) WithContext

func (o *UpdateProxyParams) WithContext(ctx context.Context) *UpdateProxyParams

WithContext adds the context to the update proxy params

func (*UpdateProxyParams) WithDefaults

func (o *UpdateProxyParams) WithDefaults() *UpdateProxyParams

WithDefaults hydrates default values in the update proxy params (not the query body).

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

func (*UpdateProxyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update proxy params

func (*UpdateProxyParams) WithProxyID

func (o *UpdateProxyParams) WithProxyID(proxyID float64) *UpdateProxyParams

WithProxyID adds the proxyID to the update proxy params

func (*UpdateProxyParams) WithTimeout

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

WithTimeout adds the timeout to the update proxy params

func (*UpdateProxyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateProxyReader

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

UpdateProxyReader is a Reader for the UpdateProxy structure.

func (*UpdateProxyReader) ReadResponse

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