debug

package
v0.0.0-...-6bd88e3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: AGPL-3.0-or-later Imports: 11 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 debug API

func (*Client) DebugAPURL

func (a *Client) DebugAPURL(params *DebugAPURLParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DebugAPURLOK, error)

DebugAPURL performs a g e t to the specified activity pub URL and return detailed debugging information

Only enabled / exposed if GoToSocial was built and is running with flag DEBUG=1.

func (*Client) DebugClearCaches

func (a *Client) DebugClearCaches(params *DebugClearCachesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DebugClearCachesOK, error)

DebugClearCaches sweeps clear all in memory caches

Only enabled / exposed if GoToSocial was built and is running with flag DEBUG=1.

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.

type ClientService

type ClientService interface {
	DebugAPURL(params *DebugAPURLParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DebugAPURLOK, error)

	DebugClearCaches(params *DebugClearCachesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DebugClearCachesOK, 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 debug API client.

func NewClientWithBasicAuth

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

New creates a new debug 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 debug 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 DebugAPURLBadRequest

type DebugAPURLBadRequest struct {
}

DebugAPURLBadRequest describes a response with status code 400, with default header values.

bad request

func NewDebugAPURLBadRequest

func NewDebugAPURLBadRequest() *DebugAPURLBadRequest

NewDebugAPURLBadRequest creates a DebugAPURLBadRequest with default headers values

func (*DebugAPURLBadRequest) Code

func (o *DebugAPURLBadRequest) Code() int

Code gets the status code for the debug a p Url bad request response

func (*DebugAPURLBadRequest) Error

func (o *DebugAPURLBadRequest) Error() string

func (*DebugAPURLBadRequest) IsClientError

func (o *DebugAPURLBadRequest) IsClientError() bool

IsClientError returns true when this debug a p Url bad request response has a 4xx status code

func (*DebugAPURLBadRequest) IsCode

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

IsCode returns true when this debug a p Url bad request response a status code equal to that given

func (*DebugAPURLBadRequest) IsRedirect

func (o *DebugAPURLBadRequest) IsRedirect() bool

IsRedirect returns true when this debug a p Url bad request response has a 3xx status code

func (*DebugAPURLBadRequest) IsServerError

func (o *DebugAPURLBadRequest) IsServerError() bool

IsServerError returns true when this debug a p Url bad request response has a 5xx status code

func (*DebugAPURLBadRequest) IsSuccess

func (o *DebugAPURLBadRequest) IsSuccess() bool

IsSuccess returns true when this debug a p Url bad request response has a 2xx status code

func (*DebugAPURLBadRequest) String

func (o *DebugAPURLBadRequest) String() string

type DebugAPURLInternalServerError

type DebugAPURLInternalServerError struct {
}

DebugAPURLInternalServerError describes a response with status code 500, with default header values.

internal server error

func NewDebugAPURLInternalServerError

func NewDebugAPURLInternalServerError() *DebugAPURLInternalServerError

NewDebugAPURLInternalServerError creates a DebugAPURLInternalServerError with default headers values

func (*DebugAPURLInternalServerError) Code

Code gets the status code for the debug a p Url internal server error response

func (*DebugAPURLInternalServerError) Error

func (*DebugAPURLInternalServerError) IsClientError

func (o *DebugAPURLInternalServerError) IsClientError() bool

IsClientError returns true when this debug a p Url internal server error response has a 4xx status code

func (*DebugAPURLInternalServerError) IsCode

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

IsCode returns true when this debug a p Url internal server error response a status code equal to that given

func (*DebugAPURLInternalServerError) IsRedirect

func (o *DebugAPURLInternalServerError) IsRedirect() bool

IsRedirect returns true when this debug a p Url internal server error response has a 3xx status code

func (*DebugAPURLInternalServerError) IsServerError

func (o *DebugAPURLInternalServerError) IsServerError() bool

IsServerError returns true when this debug a p Url internal server error response has a 5xx status code

func (*DebugAPURLInternalServerError) IsSuccess

func (o *DebugAPURLInternalServerError) IsSuccess() bool

IsSuccess returns true when this debug a p Url internal server error response has a 2xx status code

func (*DebugAPURLInternalServerError) String

type DebugAPURLNotAcceptable

type DebugAPURLNotAcceptable struct {
}

DebugAPURLNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewDebugAPURLNotAcceptable

func NewDebugAPURLNotAcceptable() *DebugAPURLNotAcceptable

NewDebugAPURLNotAcceptable creates a DebugAPURLNotAcceptable with default headers values

func (*DebugAPURLNotAcceptable) Code

func (o *DebugAPURLNotAcceptable) Code() int

Code gets the status code for the debug a p Url not acceptable response

func (*DebugAPURLNotAcceptable) Error

func (o *DebugAPURLNotAcceptable) Error() string

func (*DebugAPURLNotAcceptable) IsClientError

func (o *DebugAPURLNotAcceptable) IsClientError() bool

IsClientError returns true when this debug a p Url not acceptable response has a 4xx status code

func (*DebugAPURLNotAcceptable) IsCode

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

IsCode returns true when this debug a p Url not acceptable response a status code equal to that given

func (*DebugAPURLNotAcceptable) IsRedirect

func (o *DebugAPURLNotAcceptable) IsRedirect() bool

IsRedirect returns true when this debug a p Url not acceptable response has a 3xx status code

func (*DebugAPURLNotAcceptable) IsServerError

func (o *DebugAPURLNotAcceptable) IsServerError() bool

IsServerError returns true when this debug a p Url not acceptable response has a 5xx status code

func (*DebugAPURLNotAcceptable) IsSuccess

func (o *DebugAPURLNotAcceptable) IsSuccess() bool

IsSuccess returns true when this debug a p Url not acceptable response has a 2xx status code

func (*DebugAPURLNotAcceptable) String

func (o *DebugAPURLNotAcceptable) String() string

type DebugAPURLNotFound

type DebugAPURLNotFound struct {
}

DebugAPURLNotFound describes a response with status code 404, with default header values.

not found

func NewDebugAPURLNotFound

func NewDebugAPURLNotFound() *DebugAPURLNotFound

NewDebugAPURLNotFound creates a DebugAPURLNotFound with default headers values

func (*DebugAPURLNotFound) Code

func (o *DebugAPURLNotFound) Code() int

Code gets the status code for the debug a p Url not found response

func (*DebugAPURLNotFound) Error

func (o *DebugAPURLNotFound) Error() string

func (*DebugAPURLNotFound) IsClientError

func (o *DebugAPURLNotFound) IsClientError() bool

IsClientError returns true when this debug a p Url not found response has a 4xx status code

func (*DebugAPURLNotFound) IsCode

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

IsCode returns true when this debug a p Url not found response a status code equal to that given

func (*DebugAPURLNotFound) IsRedirect

func (o *DebugAPURLNotFound) IsRedirect() bool

IsRedirect returns true when this debug a p Url not found response has a 3xx status code

func (*DebugAPURLNotFound) IsServerError

func (o *DebugAPURLNotFound) IsServerError() bool

IsServerError returns true when this debug a p Url not found response has a 5xx status code

func (*DebugAPURLNotFound) IsSuccess

func (o *DebugAPURLNotFound) IsSuccess() bool

IsSuccess returns true when this debug a p Url not found response has a 2xx status code

func (*DebugAPURLNotFound) String

func (o *DebugAPURLNotFound) String() string

type DebugAPURLOK

type DebugAPURLOK struct {
	Payload *models.DebugAPURLResponse
}

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

DebugAPURLOK debug a p Url o k

func NewDebugAPURLOK

func NewDebugAPURLOK() *DebugAPURLOK

NewDebugAPURLOK creates a DebugAPURLOK with default headers values

func (*DebugAPURLOK) Code

func (o *DebugAPURLOK) Code() int

Code gets the status code for the debug a p Url o k response

func (*DebugAPURLOK) Error

func (o *DebugAPURLOK) Error() string

func (*DebugAPURLOK) GetPayload

func (o *DebugAPURLOK) GetPayload() *models.DebugAPURLResponse

func (*DebugAPURLOK) IsClientError

func (o *DebugAPURLOK) IsClientError() bool

IsClientError returns true when this debug a p Url o k response has a 4xx status code

func (*DebugAPURLOK) IsCode

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

IsCode returns true when this debug a p Url o k response a status code equal to that given

func (*DebugAPURLOK) IsRedirect

func (o *DebugAPURLOK) IsRedirect() bool

IsRedirect returns true when this debug a p Url o k response has a 3xx status code

func (*DebugAPURLOK) IsServerError

func (o *DebugAPURLOK) IsServerError() bool

IsServerError returns true when this debug a p Url o k response has a 5xx status code

func (*DebugAPURLOK) IsSuccess

func (o *DebugAPURLOK) IsSuccess() bool

IsSuccess returns true when this debug a p Url o k response has a 2xx status code

func (*DebugAPURLOK) String

func (o *DebugAPURLOK) String() string

type DebugAPURLParams

type DebugAPURLParams struct {

	/* URL.

	   The URL / ActivityPub ID to dereference. This should be a full URL, including protocol. Eg., `https://example.org/users/someone`
	*/
	URL string

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

DebugAPURLParams contains all the parameters to send to the API endpoint

for the debug a p Url operation.

Typically these are written to a http.Request.

func NewDebugAPURLParams

func NewDebugAPURLParams() *DebugAPURLParams

NewDebugAPURLParams creates a new DebugAPURLParams 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 NewDebugAPURLParamsWithContext

func NewDebugAPURLParamsWithContext(ctx context.Context) *DebugAPURLParams

NewDebugAPURLParamsWithContext creates a new DebugAPURLParams object with the ability to set a context for a request.

func NewDebugAPURLParamsWithHTTPClient

func NewDebugAPURLParamsWithHTTPClient(client *http.Client) *DebugAPURLParams

NewDebugAPURLParamsWithHTTPClient creates a new DebugAPURLParams object with the ability to set a custom HTTPClient for a request.

func NewDebugAPURLParamsWithTimeout

func NewDebugAPURLParamsWithTimeout(timeout time.Duration) *DebugAPURLParams

NewDebugAPURLParamsWithTimeout creates a new DebugAPURLParams object with the ability to set a timeout on a request.

func (*DebugAPURLParams) SetContext

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

SetContext adds the context to the debug a p Url params

func (*DebugAPURLParams) SetDefaults

func (o *DebugAPURLParams) SetDefaults()

SetDefaults hydrates default values in the debug a p Url params (not the query body).

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

func (*DebugAPURLParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the debug a p Url params

func (*DebugAPURLParams) SetTimeout

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

SetTimeout adds the timeout to the debug a p Url params

func (*DebugAPURLParams) SetURL

func (o *DebugAPURLParams) SetURL(url string)

SetURL adds the url to the debug a p Url params

func (*DebugAPURLParams) WithContext

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

WithContext adds the context to the debug a p Url params

func (*DebugAPURLParams) WithDefaults

func (o *DebugAPURLParams) WithDefaults() *DebugAPURLParams

WithDefaults hydrates default values in the debug a p Url params (not the query body).

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

func (*DebugAPURLParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the debug a p Url params

func (*DebugAPURLParams) WithTimeout

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

WithTimeout adds the timeout to the debug a p Url params

func (*DebugAPURLParams) WithURL

func (o *DebugAPURLParams) WithURL(url string) *DebugAPURLParams

WithURL adds the url to the debug a p Url params

func (*DebugAPURLParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DebugAPURLReader

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

DebugAPURLReader is a Reader for the DebugAPURL structure.

func (*DebugAPURLReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DebugAPURLUnauthorized

type DebugAPURLUnauthorized struct {
}

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

unauthorized

func NewDebugAPURLUnauthorized

func NewDebugAPURLUnauthorized() *DebugAPURLUnauthorized

NewDebugAPURLUnauthorized creates a DebugAPURLUnauthorized with default headers values

func (*DebugAPURLUnauthorized) Code

func (o *DebugAPURLUnauthorized) Code() int

Code gets the status code for the debug a p Url unauthorized response

func (*DebugAPURLUnauthorized) Error

func (o *DebugAPURLUnauthorized) Error() string

func (*DebugAPURLUnauthorized) IsClientError

func (o *DebugAPURLUnauthorized) IsClientError() bool

IsClientError returns true when this debug a p Url unauthorized response has a 4xx status code

func (*DebugAPURLUnauthorized) IsCode

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

IsCode returns true when this debug a p Url unauthorized response a status code equal to that given

func (*DebugAPURLUnauthorized) IsRedirect

func (o *DebugAPURLUnauthorized) IsRedirect() bool

IsRedirect returns true when this debug a p Url unauthorized response has a 3xx status code

func (*DebugAPURLUnauthorized) IsServerError

func (o *DebugAPURLUnauthorized) IsServerError() bool

IsServerError returns true when this debug a p Url unauthorized response has a 5xx status code

func (*DebugAPURLUnauthorized) IsSuccess

func (o *DebugAPURLUnauthorized) IsSuccess() bool

IsSuccess returns true when this debug a p Url unauthorized response has a 2xx status code

func (*DebugAPURLUnauthorized) String

func (o *DebugAPURLUnauthorized) String() string

type DebugClearCachesBadRequest

type DebugClearCachesBadRequest struct {
}

DebugClearCachesBadRequest describes a response with status code 400, with default header values.

bad request

func NewDebugClearCachesBadRequest

func NewDebugClearCachesBadRequest() *DebugClearCachesBadRequest

NewDebugClearCachesBadRequest creates a DebugClearCachesBadRequest with default headers values

func (*DebugClearCachesBadRequest) Code

func (o *DebugClearCachesBadRequest) Code() int

Code gets the status code for the debug clear caches bad request response

func (*DebugClearCachesBadRequest) Error

func (*DebugClearCachesBadRequest) IsClientError

func (o *DebugClearCachesBadRequest) IsClientError() bool

IsClientError returns true when this debug clear caches bad request response has a 4xx status code

func (*DebugClearCachesBadRequest) IsCode

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

IsCode returns true when this debug clear caches bad request response a status code equal to that given

func (*DebugClearCachesBadRequest) IsRedirect

func (o *DebugClearCachesBadRequest) IsRedirect() bool

IsRedirect returns true when this debug clear caches bad request response has a 3xx status code

func (*DebugClearCachesBadRequest) IsServerError

func (o *DebugClearCachesBadRequest) IsServerError() bool

IsServerError returns true when this debug clear caches bad request response has a 5xx status code

func (*DebugClearCachesBadRequest) IsSuccess

func (o *DebugClearCachesBadRequest) IsSuccess() bool

IsSuccess returns true when this debug clear caches bad request response has a 2xx status code

func (*DebugClearCachesBadRequest) String

func (o *DebugClearCachesBadRequest) String() string

type DebugClearCachesInternalServerError

type DebugClearCachesInternalServerError struct {
}

DebugClearCachesInternalServerError describes a response with status code 500, with default header values.

internal server error

func NewDebugClearCachesInternalServerError

func NewDebugClearCachesInternalServerError() *DebugClearCachesInternalServerError

NewDebugClearCachesInternalServerError creates a DebugClearCachesInternalServerError with default headers values

func (*DebugClearCachesInternalServerError) Code

Code gets the status code for the debug clear caches internal server error response

func (*DebugClearCachesInternalServerError) Error

func (*DebugClearCachesInternalServerError) IsClientError

func (o *DebugClearCachesInternalServerError) IsClientError() bool

IsClientError returns true when this debug clear caches internal server error response has a 4xx status code

func (*DebugClearCachesInternalServerError) IsCode

IsCode returns true when this debug clear caches internal server error response a status code equal to that given

func (*DebugClearCachesInternalServerError) IsRedirect

func (o *DebugClearCachesInternalServerError) IsRedirect() bool

IsRedirect returns true when this debug clear caches internal server error response has a 3xx status code

func (*DebugClearCachesInternalServerError) IsServerError

func (o *DebugClearCachesInternalServerError) IsServerError() bool

IsServerError returns true when this debug clear caches internal server error response has a 5xx status code

func (*DebugClearCachesInternalServerError) IsSuccess

IsSuccess returns true when this debug clear caches internal server error response has a 2xx status code

func (*DebugClearCachesInternalServerError) String

type DebugClearCachesNotAcceptable

type DebugClearCachesNotAcceptable struct {
}

DebugClearCachesNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewDebugClearCachesNotAcceptable

func NewDebugClearCachesNotAcceptable() *DebugClearCachesNotAcceptable

NewDebugClearCachesNotAcceptable creates a DebugClearCachesNotAcceptable with default headers values

func (*DebugClearCachesNotAcceptable) Code

Code gets the status code for the debug clear caches not acceptable response

func (*DebugClearCachesNotAcceptable) Error

func (*DebugClearCachesNotAcceptable) IsClientError

func (o *DebugClearCachesNotAcceptable) IsClientError() bool

IsClientError returns true when this debug clear caches not acceptable response has a 4xx status code

func (*DebugClearCachesNotAcceptable) IsCode

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

IsCode returns true when this debug clear caches not acceptable response a status code equal to that given

func (*DebugClearCachesNotAcceptable) IsRedirect

func (o *DebugClearCachesNotAcceptable) IsRedirect() bool

IsRedirect returns true when this debug clear caches not acceptable response has a 3xx status code

func (*DebugClearCachesNotAcceptable) IsServerError

func (o *DebugClearCachesNotAcceptable) IsServerError() bool

IsServerError returns true when this debug clear caches not acceptable response has a 5xx status code

func (*DebugClearCachesNotAcceptable) IsSuccess

func (o *DebugClearCachesNotAcceptable) IsSuccess() bool

IsSuccess returns true when this debug clear caches not acceptable response has a 2xx status code

func (*DebugClearCachesNotAcceptable) String

type DebugClearCachesNotFound

type DebugClearCachesNotFound struct {
}

DebugClearCachesNotFound describes a response with status code 404, with default header values.

not found

func NewDebugClearCachesNotFound

func NewDebugClearCachesNotFound() *DebugClearCachesNotFound

NewDebugClearCachesNotFound creates a DebugClearCachesNotFound with default headers values

func (*DebugClearCachesNotFound) Code

func (o *DebugClearCachesNotFound) Code() int

Code gets the status code for the debug clear caches not found response

func (*DebugClearCachesNotFound) Error

func (o *DebugClearCachesNotFound) Error() string

func (*DebugClearCachesNotFound) IsClientError

func (o *DebugClearCachesNotFound) IsClientError() bool

IsClientError returns true when this debug clear caches not found response has a 4xx status code

func (*DebugClearCachesNotFound) IsCode

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

IsCode returns true when this debug clear caches not found response a status code equal to that given

func (*DebugClearCachesNotFound) IsRedirect

func (o *DebugClearCachesNotFound) IsRedirect() bool

IsRedirect returns true when this debug clear caches not found response has a 3xx status code

func (*DebugClearCachesNotFound) IsServerError

func (o *DebugClearCachesNotFound) IsServerError() bool

IsServerError returns true when this debug clear caches not found response has a 5xx status code

func (*DebugClearCachesNotFound) IsSuccess

func (o *DebugClearCachesNotFound) IsSuccess() bool

IsSuccess returns true when this debug clear caches not found response has a 2xx status code

func (*DebugClearCachesNotFound) String

func (o *DebugClearCachesNotFound) String() string

type DebugClearCachesOK

type DebugClearCachesOK struct {
}

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

All good baby!

func NewDebugClearCachesOK

func NewDebugClearCachesOK() *DebugClearCachesOK

NewDebugClearCachesOK creates a DebugClearCachesOK with default headers values

func (*DebugClearCachesOK) Code

func (o *DebugClearCachesOK) Code() int

Code gets the status code for the debug clear caches o k response

func (*DebugClearCachesOK) Error

func (o *DebugClearCachesOK) Error() string

func (*DebugClearCachesOK) IsClientError

func (o *DebugClearCachesOK) IsClientError() bool

IsClientError returns true when this debug clear caches o k response has a 4xx status code

func (*DebugClearCachesOK) IsCode

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

IsCode returns true when this debug clear caches o k response a status code equal to that given

func (*DebugClearCachesOK) IsRedirect

func (o *DebugClearCachesOK) IsRedirect() bool

IsRedirect returns true when this debug clear caches o k response has a 3xx status code

func (*DebugClearCachesOK) IsServerError

func (o *DebugClearCachesOK) IsServerError() bool

IsServerError returns true when this debug clear caches o k response has a 5xx status code

func (*DebugClearCachesOK) IsSuccess

func (o *DebugClearCachesOK) IsSuccess() bool

IsSuccess returns true when this debug clear caches o k response has a 2xx status code

func (*DebugClearCachesOK) String

func (o *DebugClearCachesOK) String() string

type DebugClearCachesParams

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

DebugClearCachesParams contains all the parameters to send to the API endpoint

for the debug clear caches operation.

Typically these are written to a http.Request.

func NewDebugClearCachesParams

func NewDebugClearCachesParams() *DebugClearCachesParams

NewDebugClearCachesParams creates a new DebugClearCachesParams 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 NewDebugClearCachesParamsWithContext

func NewDebugClearCachesParamsWithContext(ctx context.Context) *DebugClearCachesParams

NewDebugClearCachesParamsWithContext creates a new DebugClearCachesParams object with the ability to set a context for a request.

func NewDebugClearCachesParamsWithHTTPClient

func NewDebugClearCachesParamsWithHTTPClient(client *http.Client) *DebugClearCachesParams

NewDebugClearCachesParamsWithHTTPClient creates a new DebugClearCachesParams object with the ability to set a custom HTTPClient for a request.

func NewDebugClearCachesParamsWithTimeout

func NewDebugClearCachesParamsWithTimeout(timeout time.Duration) *DebugClearCachesParams

NewDebugClearCachesParamsWithTimeout creates a new DebugClearCachesParams object with the ability to set a timeout on a request.

func (*DebugClearCachesParams) SetContext

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

SetContext adds the context to the debug clear caches params

func (*DebugClearCachesParams) SetDefaults

func (o *DebugClearCachesParams) SetDefaults()

SetDefaults hydrates default values in the debug clear caches params (not the query body).

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

func (*DebugClearCachesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the debug clear caches params

func (*DebugClearCachesParams) SetTimeout

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

SetTimeout adds the timeout to the debug clear caches params

func (*DebugClearCachesParams) WithContext

WithContext adds the context to the debug clear caches params

func (*DebugClearCachesParams) WithDefaults

WithDefaults hydrates default values in the debug clear caches params (not the query body).

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

func (*DebugClearCachesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the debug clear caches params

func (*DebugClearCachesParams) WithTimeout

WithTimeout adds the timeout to the debug clear caches params

func (*DebugClearCachesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DebugClearCachesReader

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

DebugClearCachesReader is a Reader for the DebugClearCaches structure.

func (*DebugClearCachesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DebugClearCachesUnauthorized

type DebugClearCachesUnauthorized struct {
}

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

unauthorized

func NewDebugClearCachesUnauthorized

func NewDebugClearCachesUnauthorized() *DebugClearCachesUnauthorized

NewDebugClearCachesUnauthorized creates a DebugClearCachesUnauthorized with default headers values

func (*DebugClearCachesUnauthorized) Code

Code gets the status code for the debug clear caches unauthorized response

func (*DebugClearCachesUnauthorized) Error

func (*DebugClearCachesUnauthorized) IsClientError

func (o *DebugClearCachesUnauthorized) IsClientError() bool

IsClientError returns true when this debug clear caches unauthorized response has a 4xx status code

func (*DebugClearCachesUnauthorized) IsCode

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

IsCode returns true when this debug clear caches unauthorized response a status code equal to that given

func (*DebugClearCachesUnauthorized) IsRedirect

func (o *DebugClearCachesUnauthorized) IsRedirect() bool

IsRedirect returns true when this debug clear caches unauthorized response has a 3xx status code

func (*DebugClearCachesUnauthorized) IsServerError

func (o *DebugClearCachesUnauthorized) IsServerError() bool

IsServerError returns true when this debug clear caches unauthorized response has a 5xx status code

func (*DebugClearCachesUnauthorized) IsSuccess

func (o *DebugClearCachesUnauthorized) IsSuccess() bool

IsSuccess returns true when this debug clear caches unauthorized response has a 2xx status code

func (*DebugClearCachesUnauthorized) String

Jump to

Keyboard shortcuts

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