debug

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApURLBadRequest added in v1.1.0

type ApURLBadRequest struct {
	Payload *models.Error
}

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

bad request

func NewApURLBadRequest added in v1.1.0

func NewApURLBadRequest() *ApURLBadRequest

NewApURLBadRequest creates a ApURLBadRequest with default headers values

func (*ApURLBadRequest) Code added in v1.1.0

func (o *ApURLBadRequest) Code() int

Code gets the status code for the ap Url bad request response

func (*ApURLBadRequest) Error added in v1.1.0

func (o *ApURLBadRequest) Error() string

func (*ApURLBadRequest) GetPayload added in v1.1.0

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

func (*ApURLBadRequest) IsClientError added in v1.1.0

func (o *ApURLBadRequest) IsClientError() bool

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

func (*ApURLBadRequest) IsCode added in v1.1.0

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

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

func (*ApURLBadRequest) IsRedirect added in v1.1.0

func (o *ApURLBadRequest) IsRedirect() bool

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

func (*ApURLBadRequest) IsServerError added in v1.1.0

func (o *ApURLBadRequest) IsServerError() bool

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

func (*ApURLBadRequest) IsSuccess added in v1.1.0

func (o *ApURLBadRequest) IsSuccess() bool

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

func (*ApURLBadRequest) String added in v1.1.0

func (o *ApURLBadRequest) String() string

type ApURLInternalServerError added in v1.1.0

type ApURLInternalServerError struct {
	Payload *models.Error
}

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

internal server error

func NewApURLInternalServerError added in v1.1.0

func NewApURLInternalServerError() *ApURLInternalServerError

NewApURLInternalServerError creates a ApURLInternalServerError with default headers values

func (*ApURLInternalServerError) Code added in v1.1.0

func (o *ApURLInternalServerError) Code() int

Code gets the status code for the ap Url internal server error response

func (*ApURLInternalServerError) Error added in v1.1.0

func (o *ApURLInternalServerError) Error() string

func (*ApURLInternalServerError) GetPayload added in v1.1.0

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

func (*ApURLInternalServerError) IsClientError added in v1.1.0

func (o *ApURLInternalServerError) IsClientError() bool

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

func (*ApURLInternalServerError) IsCode added in v1.1.0

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

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

func (*ApURLInternalServerError) IsRedirect added in v1.1.0

func (o *ApURLInternalServerError) IsRedirect() bool

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

func (*ApURLInternalServerError) IsServerError added in v1.1.0

func (o *ApURLInternalServerError) IsServerError() bool

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

func (*ApURLInternalServerError) IsSuccess added in v1.1.0

func (o *ApURLInternalServerError) IsSuccess() bool

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

func (*ApURLInternalServerError) String added in v1.1.0

func (o *ApURLInternalServerError) String() string

type ApURLNotAcceptable added in v1.1.0

type ApURLNotAcceptable struct {
	Payload *models.Error
}

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

not acceptable

func NewApURLNotAcceptable added in v1.1.0

func NewApURLNotAcceptable() *ApURLNotAcceptable

NewApURLNotAcceptable creates a ApURLNotAcceptable with default headers values

func (*ApURLNotAcceptable) Code added in v1.1.0

func (o *ApURLNotAcceptable) Code() int

Code gets the status code for the ap Url not acceptable response

func (*ApURLNotAcceptable) Error added in v1.1.0

func (o *ApURLNotAcceptable) Error() string

func (*ApURLNotAcceptable) GetPayload added in v1.1.0

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

func (*ApURLNotAcceptable) IsClientError added in v1.1.0

func (o *ApURLNotAcceptable) IsClientError() bool

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

func (*ApURLNotAcceptable) IsCode added in v1.1.0

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

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

func (*ApURLNotAcceptable) IsRedirect added in v1.1.0

func (o *ApURLNotAcceptable) IsRedirect() bool

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

func (*ApURLNotAcceptable) IsServerError added in v1.1.0

func (o *ApURLNotAcceptable) IsServerError() bool

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

func (*ApURLNotAcceptable) IsSuccess added in v1.1.0

func (o *ApURLNotAcceptable) IsSuccess() bool

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

func (*ApURLNotAcceptable) String added in v1.1.0

func (o *ApURLNotAcceptable) String() string

type ApURLNotFound added in v1.1.0

type ApURLNotFound struct {
	Payload *models.Error
}

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

not found

func NewApURLNotFound added in v1.1.0

func NewApURLNotFound() *ApURLNotFound

NewApURLNotFound creates a ApURLNotFound with default headers values

func (*ApURLNotFound) Code added in v1.1.0

func (o *ApURLNotFound) Code() int

Code gets the status code for the ap Url not found response

func (*ApURLNotFound) Error added in v1.1.0

func (o *ApURLNotFound) Error() string

func (*ApURLNotFound) GetPayload added in v1.1.0

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

func (*ApURLNotFound) IsClientError added in v1.1.0

func (o *ApURLNotFound) IsClientError() bool

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

func (*ApURLNotFound) IsCode added in v1.1.0

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

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

func (*ApURLNotFound) IsRedirect added in v1.1.0

func (o *ApURLNotFound) IsRedirect() bool

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

func (*ApURLNotFound) IsServerError added in v1.1.0

func (o *ApURLNotFound) IsServerError() bool

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

func (*ApURLNotFound) IsSuccess added in v1.1.0

func (o *ApURLNotFound) IsSuccess() bool

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

func (*ApURLNotFound) String added in v1.1.0

func (o *ApURLNotFound) String() string

type ApURLOK added in v1.1.0

type ApURLOK struct {
	Payload *models.DebugAPURLResponse
}

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

ApURLOK ap Url o k

func NewApURLOK added in v1.1.0

func NewApURLOK() *ApURLOK

NewApURLOK creates a ApURLOK with default headers values

func (*ApURLOK) Code added in v1.1.0

func (o *ApURLOK) Code() int

Code gets the status code for the ap Url o k response

func (*ApURLOK) Error added in v1.1.0

func (o *ApURLOK) Error() string

func (*ApURLOK) GetPayload added in v1.1.0

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

func (*ApURLOK) IsClientError added in v1.1.0

func (o *ApURLOK) IsClientError() bool

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

func (*ApURLOK) IsCode added in v1.1.0

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

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

func (*ApURLOK) IsRedirect added in v1.1.0

func (o *ApURLOK) IsRedirect() bool

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

func (*ApURLOK) IsServerError added in v1.1.0

func (o *ApURLOK) IsServerError() bool

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

func (*ApURLOK) IsSuccess added in v1.1.0

func (o *ApURLOK) IsSuccess() bool

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

func (*ApURLOK) String added in v1.1.0

func (o *ApURLOK) String() string

type ApURLParams added in v1.1.0

type ApURLParams 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
}

ApURLParams contains all the parameters to send to the API endpoint

for the ap URL operation.

Typically these are written to a http.Request.

func NewApURLParams added in v1.1.0

func NewApURLParams() *ApURLParams

NewApURLParams creates a new ApURLParams 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 NewApURLParamsWithContext added in v1.1.0

func NewApURLParamsWithContext(ctx context.Context) *ApURLParams

NewApURLParamsWithContext creates a new ApURLParams object with the ability to set a context for a request.

func NewApURLParamsWithHTTPClient added in v1.1.0

func NewApURLParamsWithHTTPClient(client *http.Client) *ApURLParams

NewApURLParamsWithHTTPClient creates a new ApURLParams object with the ability to set a custom HTTPClient for a request.

func NewApURLParamsWithTimeout added in v1.1.0

func NewApURLParamsWithTimeout(timeout time.Duration) *ApURLParams

NewApURLParamsWithTimeout creates a new ApURLParams object with the ability to set a timeout on a request.

func (*ApURLParams) SetContext added in v1.1.0

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

SetContext adds the context to the ap URL params

func (*ApURLParams) SetDefaults added in v1.1.0

func (o *ApURLParams) SetDefaults()

SetDefaults hydrates default values in the ap URL params (not the query body).

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

func (*ApURLParams) SetHTTPClient added in v1.1.0

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

SetHTTPClient adds the HTTPClient to the ap URL params

func (*ApURLParams) SetTimeout added in v1.1.0

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

SetTimeout adds the timeout to the ap URL params

func (*ApURLParams) SetURL added in v1.1.0

func (o *ApURLParams) SetURL(url string)

SetURL adds the url to the ap URL params

func (*ApURLParams) WithContext added in v1.1.0

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

WithContext adds the context to the ap URL params

func (*ApURLParams) WithDefaults added in v1.1.0

func (o *ApURLParams) WithDefaults() *ApURLParams

WithDefaults hydrates default values in the ap URL params (not the query body).

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

func (*ApURLParams) WithHTTPClient added in v1.1.0

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

WithHTTPClient adds the HTTPClient to the ap URL params

func (*ApURLParams) WithTimeout added in v1.1.0

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

WithTimeout adds the timeout to the ap URL params

func (*ApURLParams) WithURL added in v1.1.0

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

WithURL adds the url to the ap URL params

func (*ApURLParams) WriteToRequest added in v1.1.0

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

WriteToRequest writes these params to a swagger request

type ApURLReader added in v1.1.0

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

ApURLReader is a Reader for the ApURL structure.

func (*ApURLReader) ReadResponse added in v1.1.0

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

ReadResponse reads a server response into the received o.

type ApURLUnauthorized added in v1.1.0

type ApURLUnauthorized struct {
	Payload *models.Error
}

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

unauthorized

func NewApURLUnauthorized added in v1.1.0

func NewApURLUnauthorized() *ApURLUnauthorized

NewApURLUnauthorized creates a ApURLUnauthorized with default headers values

func (*ApURLUnauthorized) Code added in v1.1.0

func (o *ApURLUnauthorized) Code() int

Code gets the status code for the ap Url unauthorized response

func (*ApURLUnauthorized) Error added in v1.1.0

func (o *ApURLUnauthorized) Error() string

func (*ApURLUnauthorized) GetPayload added in v1.1.0

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

func (*ApURLUnauthorized) IsClientError added in v1.1.0

func (o *ApURLUnauthorized) IsClientError() bool

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

func (*ApURLUnauthorized) IsCode added in v1.1.0

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

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

func (*ApURLUnauthorized) IsRedirect added in v1.1.0

func (o *ApURLUnauthorized) IsRedirect() bool

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

func (*ApURLUnauthorized) IsServerError added in v1.1.0

func (o *ApURLUnauthorized) IsServerError() bool

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

func (*ApURLUnauthorized) IsSuccess added in v1.1.0

func (o *ApURLUnauthorized) IsSuccess() bool

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

func (*ApURLUnauthorized) String added in v1.1.0

func (o *ApURLUnauthorized) String() string

type ClearCachesBadRequest added in v1.1.0

type ClearCachesBadRequest struct {
	Payload *models.Error
}

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

bad request

func NewClearCachesBadRequest added in v1.1.0

func NewClearCachesBadRequest() *ClearCachesBadRequest

NewClearCachesBadRequest creates a ClearCachesBadRequest with default headers values

func (*ClearCachesBadRequest) Code added in v1.1.0

func (o *ClearCachesBadRequest) Code() int

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

func (*ClearCachesBadRequest) Error added in v1.1.0

func (o *ClearCachesBadRequest) Error() string

func (*ClearCachesBadRequest) GetPayload added in v1.1.0

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

func (*ClearCachesBadRequest) IsClientError added in v1.1.0

func (o *ClearCachesBadRequest) IsClientError() bool

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

func (*ClearCachesBadRequest) IsCode added in v1.1.0

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

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

func (*ClearCachesBadRequest) IsRedirect added in v1.1.0

func (o *ClearCachesBadRequest) IsRedirect() bool

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

func (*ClearCachesBadRequest) IsServerError added in v1.1.0

func (o *ClearCachesBadRequest) IsServerError() bool

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

func (*ClearCachesBadRequest) IsSuccess added in v1.1.0

func (o *ClearCachesBadRequest) IsSuccess() bool

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

func (*ClearCachesBadRequest) String added in v1.1.0

func (o *ClearCachesBadRequest) String() string

type ClearCachesInternalServerError added in v1.1.0

type ClearCachesInternalServerError struct {
	Payload *models.Error
}

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

internal server error

func NewClearCachesInternalServerError added in v1.1.0

func NewClearCachesInternalServerError() *ClearCachesInternalServerError

NewClearCachesInternalServerError creates a ClearCachesInternalServerError with default headers values

func (*ClearCachesInternalServerError) Code added in v1.1.0

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

func (*ClearCachesInternalServerError) Error added in v1.1.0

func (*ClearCachesInternalServerError) GetPayload added in v1.1.0

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

func (*ClearCachesInternalServerError) IsClientError added in v1.1.0

func (o *ClearCachesInternalServerError) IsClientError() bool

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

func (*ClearCachesInternalServerError) IsCode added in v1.1.0

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

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

func (*ClearCachesInternalServerError) IsRedirect added in v1.1.0

func (o *ClearCachesInternalServerError) IsRedirect() bool

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

func (*ClearCachesInternalServerError) IsServerError added in v1.1.0

func (o *ClearCachesInternalServerError) IsServerError() bool

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

func (*ClearCachesInternalServerError) IsSuccess added in v1.1.0

func (o *ClearCachesInternalServerError) IsSuccess() bool

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

func (*ClearCachesInternalServerError) String added in v1.1.0

type ClearCachesNotAcceptable added in v1.1.0

type ClearCachesNotAcceptable struct {
	Payload *models.Error
}

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

not acceptable

func NewClearCachesNotAcceptable added in v1.1.0

func NewClearCachesNotAcceptable() *ClearCachesNotAcceptable

NewClearCachesNotAcceptable creates a ClearCachesNotAcceptable with default headers values

func (*ClearCachesNotAcceptable) Code added in v1.1.0

func (o *ClearCachesNotAcceptable) Code() int

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

func (*ClearCachesNotAcceptable) Error added in v1.1.0

func (o *ClearCachesNotAcceptable) Error() string

func (*ClearCachesNotAcceptable) GetPayload added in v1.1.0

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

func (*ClearCachesNotAcceptable) IsClientError added in v1.1.0

func (o *ClearCachesNotAcceptable) IsClientError() bool

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

func (*ClearCachesNotAcceptable) IsCode added in v1.1.0

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

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

func (*ClearCachesNotAcceptable) IsRedirect added in v1.1.0

func (o *ClearCachesNotAcceptable) IsRedirect() bool

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

func (*ClearCachesNotAcceptable) IsServerError added in v1.1.0

func (o *ClearCachesNotAcceptable) IsServerError() bool

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

func (*ClearCachesNotAcceptable) IsSuccess added in v1.1.0

func (o *ClearCachesNotAcceptable) IsSuccess() bool

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

func (*ClearCachesNotAcceptable) String added in v1.1.0

func (o *ClearCachesNotAcceptable) String() string

type ClearCachesNotFound added in v1.1.0

type ClearCachesNotFound struct {
	Payload *models.Error
}

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

not found

func NewClearCachesNotFound added in v1.1.0

func NewClearCachesNotFound() *ClearCachesNotFound

NewClearCachesNotFound creates a ClearCachesNotFound with default headers values

func (*ClearCachesNotFound) Code added in v1.1.0

func (o *ClearCachesNotFound) Code() int

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

func (*ClearCachesNotFound) Error added in v1.1.0

func (o *ClearCachesNotFound) Error() string

func (*ClearCachesNotFound) GetPayload added in v1.1.0

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

func (*ClearCachesNotFound) IsClientError added in v1.1.0

func (o *ClearCachesNotFound) IsClientError() bool

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

func (*ClearCachesNotFound) IsCode added in v1.1.0

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

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

func (*ClearCachesNotFound) IsRedirect added in v1.1.0

func (o *ClearCachesNotFound) IsRedirect() bool

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

func (*ClearCachesNotFound) IsServerError added in v1.1.0

func (o *ClearCachesNotFound) IsServerError() bool

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

func (*ClearCachesNotFound) IsSuccess added in v1.1.0

func (o *ClearCachesNotFound) IsSuccess() bool

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

func (*ClearCachesNotFound) String added in v1.1.0

func (o *ClearCachesNotFound) String() string

type ClearCachesOK added in v1.1.0

type ClearCachesOK struct {
}

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

All good baby!

func NewClearCachesOK added in v1.1.0

func NewClearCachesOK() *ClearCachesOK

NewClearCachesOK creates a ClearCachesOK with default headers values

func (*ClearCachesOK) Code added in v1.1.0

func (o *ClearCachesOK) Code() int

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

func (*ClearCachesOK) Error added in v1.1.0

func (o *ClearCachesOK) Error() string

func (*ClearCachesOK) IsClientError added in v1.1.0

func (o *ClearCachesOK) IsClientError() bool

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

func (*ClearCachesOK) IsCode added in v1.1.0

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

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

func (*ClearCachesOK) IsRedirect added in v1.1.0

func (o *ClearCachesOK) IsRedirect() bool

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

func (*ClearCachesOK) IsServerError added in v1.1.0

func (o *ClearCachesOK) IsServerError() bool

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

func (*ClearCachesOK) IsSuccess added in v1.1.0

func (o *ClearCachesOK) IsSuccess() bool

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

func (*ClearCachesOK) String added in v1.1.0

func (o *ClearCachesOK) String() string

type ClearCachesParams added in v1.1.0

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

ClearCachesParams contains all the parameters to send to the API endpoint

for the clear caches operation.

Typically these are written to a http.Request.

func NewClearCachesParams added in v1.1.0

func NewClearCachesParams() *ClearCachesParams

NewClearCachesParams creates a new ClearCachesParams 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 NewClearCachesParamsWithContext added in v1.1.0

func NewClearCachesParamsWithContext(ctx context.Context) *ClearCachesParams

NewClearCachesParamsWithContext creates a new ClearCachesParams object with the ability to set a context for a request.

func NewClearCachesParamsWithHTTPClient added in v1.1.0

func NewClearCachesParamsWithHTTPClient(client *http.Client) *ClearCachesParams

NewClearCachesParamsWithHTTPClient creates a new ClearCachesParams object with the ability to set a custom HTTPClient for a request.

func NewClearCachesParamsWithTimeout added in v1.1.0

func NewClearCachesParamsWithTimeout(timeout time.Duration) *ClearCachesParams

NewClearCachesParamsWithTimeout creates a new ClearCachesParams object with the ability to set a timeout on a request.

func (*ClearCachesParams) SetContext added in v1.1.0

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

SetContext adds the context to the clear caches params

func (*ClearCachesParams) SetDefaults added in v1.1.0

func (o *ClearCachesParams) SetDefaults()

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

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

func (*ClearCachesParams) SetHTTPClient added in v1.1.0

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

SetHTTPClient adds the HTTPClient to the clear caches params

func (*ClearCachesParams) SetTimeout added in v1.1.0

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

SetTimeout adds the timeout to the clear caches params

func (*ClearCachesParams) WithContext added in v1.1.0

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

WithContext adds the context to the clear caches params

func (*ClearCachesParams) WithDefaults added in v1.1.0

func (o *ClearCachesParams) WithDefaults() *ClearCachesParams

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

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

func (*ClearCachesParams) WithHTTPClient added in v1.1.0

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

WithHTTPClient adds the HTTPClient to the clear caches params

func (*ClearCachesParams) WithTimeout added in v1.1.0

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

WithTimeout adds the timeout to the clear caches params

func (*ClearCachesParams) WriteToRequest added in v1.1.0

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

WriteToRequest writes these params to a swagger request

type ClearCachesReader added in v1.1.0

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

ClearCachesReader is a Reader for the ClearCaches structure.

func (*ClearCachesReader) ReadResponse added in v1.1.0

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

ReadResponse reads a server response into the received o.

type ClearCachesUnauthorized added in v1.1.0

type ClearCachesUnauthorized struct {
	Payload *models.Error
}

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

unauthorized

func NewClearCachesUnauthorized added in v1.1.0

func NewClearCachesUnauthorized() *ClearCachesUnauthorized

NewClearCachesUnauthorized creates a ClearCachesUnauthorized with default headers values

func (*ClearCachesUnauthorized) Code added in v1.1.0

func (o *ClearCachesUnauthorized) Code() int

Code gets the status code for the clear caches unauthorized response

func (*ClearCachesUnauthorized) Error added in v1.1.0

func (o *ClearCachesUnauthorized) Error() string

func (*ClearCachesUnauthorized) GetPayload added in v1.1.0

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

func (*ClearCachesUnauthorized) IsClientError added in v1.1.0

func (o *ClearCachesUnauthorized) IsClientError() bool

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

func (*ClearCachesUnauthorized) IsCode added in v1.1.0

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

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

func (*ClearCachesUnauthorized) IsRedirect added in v1.1.0

func (o *ClearCachesUnauthorized) IsRedirect() bool

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

func (*ClearCachesUnauthorized) IsServerError added in v1.1.0

func (o *ClearCachesUnauthorized) IsServerError() bool

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

func (*ClearCachesUnauthorized) IsSuccess added in v1.1.0

func (o *ClearCachesUnauthorized) IsSuccess() bool

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

func (*ClearCachesUnauthorized) String added in v1.1.0

func (o *ClearCachesUnauthorized) String() string

type Client

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

Client for debug API

func (*Client) ApURL added in v1.1.0

func (a *Client) ApURL(params *ApURLParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApURLOK, error)

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

func (*Client) ClearCaches added in v1.1.0

func (a *Client) ClearCaches(params *ClearCachesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClearCachesOK, error)

ClearCaches sweeps clear all in memory caches

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 {
	ApURL(params *ApURLParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApURLOK, error)

	ClearCaches(params *ClearCachesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClearCachesOK, 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.

Jump to

Keyboard shortcuts

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