federation

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationActivityJSON

func WithAcceptApplicationActivityJSON(r *runtime.ClientOperation)

WithAcceptApplicationActivityJSON sets the Accept header to "application/activity+json".

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

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

Types

type Client

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

Client for federation API

func (*Client) S2sFeaturedCollectionGet

func (a *Client) S2sFeaturedCollectionGet(params *S2sFeaturedCollectionGetParams, opts ...ClientOption) (*S2sFeaturedCollectionGetOK, error)
S2sFeaturedCollectionGet gets the featured collection pinned posts for a user

The response will contain an ordered collection of Note URIs in the `items` property.

It is up to the caller to dereference the provided Note URIs (or not, if they already have them cached).

HTTP signature is required on the request.

func (*Client) S2sOutboxGet

func (a *Client) S2sOutboxGet(params *S2sOutboxGetParams, opts ...ClientOption) (*S2sOutboxGetOK, error)
S2sOutboxGet gets the public outbox collection for an actor

Note that the response will be a Collection with a page as `first`, as shown below, if `page` is `false`.

If `page` is `true`, then the response will be a single `CollectionPage` without the wrapping `Collection`.

HTTP signature is required on the request.

func (*Client) S2sRepliesGet

func (a *Client) S2sRepliesGet(params *S2sRepliesGetParams, opts ...ClientOption) (*S2sRepliesGetOK, error)
S2sRepliesGet gets the replies collection for a status

Note that the response will be a Collection with a page as `first`, as shown below, if `page` is `false`.

If `page` is `true`, then the response will be a single `CollectionPage` without the wrapping `Collection`.

HTTP signature is required on the request.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

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

func WithAccept

func WithAccept(mime string) ClientOption

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

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

type ClientService

type ClientService interface {
	S2sFeaturedCollectionGet(params *S2sFeaturedCollectionGetParams, opts ...ClientOption) (*S2sFeaturedCollectionGetOK, error)

	S2sOutboxGet(params *S2sOutboxGetParams, opts ...ClientOption) (*S2sOutboxGetOK, error)

	S2sRepliesGet(params *S2sRepliesGetParams, opts ...ClientOption) (*S2sRepliesGetOK, 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 federation API client.

func NewClientWithBasicAuth

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

New creates a new federation 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 federation 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 S2sFeaturedCollectionGetBadRequest

type S2sFeaturedCollectionGetBadRequest struct {
}

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

bad request

func NewS2sFeaturedCollectionGetBadRequest

func NewS2sFeaturedCollectionGetBadRequest() *S2sFeaturedCollectionGetBadRequest

NewS2sFeaturedCollectionGetBadRequest creates a S2sFeaturedCollectionGetBadRequest with default headers values

func (*S2sFeaturedCollectionGetBadRequest) Code

Code gets the status code for the s2s featured collection get bad request response

func (*S2sFeaturedCollectionGetBadRequest) Error

func (*S2sFeaturedCollectionGetBadRequest) IsClientError

func (o *S2sFeaturedCollectionGetBadRequest) IsClientError() bool

IsClientError returns true when this s2s featured collection get bad request response has a 4xx status code

func (*S2sFeaturedCollectionGetBadRequest) IsCode

IsCode returns true when this s2s featured collection get bad request response a status code equal to that given

func (*S2sFeaturedCollectionGetBadRequest) IsRedirect

func (o *S2sFeaturedCollectionGetBadRequest) IsRedirect() bool

IsRedirect returns true when this s2s featured collection get bad request response has a 3xx status code

func (*S2sFeaturedCollectionGetBadRequest) IsServerError

func (o *S2sFeaturedCollectionGetBadRequest) IsServerError() bool

IsServerError returns true when this s2s featured collection get bad request response has a 5xx status code

func (*S2sFeaturedCollectionGetBadRequest) IsSuccess

IsSuccess returns true when this s2s featured collection get bad request response has a 2xx status code

func (*S2sFeaturedCollectionGetBadRequest) String

type S2sFeaturedCollectionGetForbidden

type S2sFeaturedCollectionGetForbidden struct {
}

S2sFeaturedCollectionGetForbidden describes a response with status code 403, with default header values.

forbidden

func NewS2sFeaturedCollectionGetForbidden

func NewS2sFeaturedCollectionGetForbidden() *S2sFeaturedCollectionGetForbidden

NewS2sFeaturedCollectionGetForbidden creates a S2sFeaturedCollectionGetForbidden with default headers values

func (*S2sFeaturedCollectionGetForbidden) Code

Code gets the status code for the s2s featured collection get forbidden response

func (*S2sFeaturedCollectionGetForbidden) Error

func (*S2sFeaturedCollectionGetForbidden) IsClientError

func (o *S2sFeaturedCollectionGetForbidden) IsClientError() bool

IsClientError returns true when this s2s featured collection get forbidden response has a 4xx status code

func (*S2sFeaturedCollectionGetForbidden) IsCode

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

IsCode returns true when this s2s featured collection get forbidden response a status code equal to that given

func (*S2sFeaturedCollectionGetForbidden) IsRedirect

func (o *S2sFeaturedCollectionGetForbidden) IsRedirect() bool

IsRedirect returns true when this s2s featured collection get forbidden response has a 3xx status code

func (*S2sFeaturedCollectionGetForbidden) IsServerError

func (o *S2sFeaturedCollectionGetForbidden) IsServerError() bool

IsServerError returns true when this s2s featured collection get forbidden response has a 5xx status code

func (*S2sFeaturedCollectionGetForbidden) IsSuccess

func (o *S2sFeaturedCollectionGetForbidden) IsSuccess() bool

IsSuccess returns true when this s2s featured collection get forbidden response has a 2xx status code

func (*S2sFeaturedCollectionGetForbidden) String

type S2sFeaturedCollectionGetNotFound

type S2sFeaturedCollectionGetNotFound struct {
}

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

not found

func NewS2sFeaturedCollectionGetNotFound

func NewS2sFeaturedCollectionGetNotFound() *S2sFeaturedCollectionGetNotFound

NewS2sFeaturedCollectionGetNotFound creates a S2sFeaturedCollectionGetNotFound with default headers values

func (*S2sFeaturedCollectionGetNotFound) Code

Code gets the status code for the s2s featured collection get not found response

func (*S2sFeaturedCollectionGetNotFound) Error

func (*S2sFeaturedCollectionGetNotFound) IsClientError

func (o *S2sFeaturedCollectionGetNotFound) IsClientError() bool

IsClientError returns true when this s2s featured collection get not found response has a 4xx status code

func (*S2sFeaturedCollectionGetNotFound) IsCode

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

IsCode returns true when this s2s featured collection get not found response a status code equal to that given

func (*S2sFeaturedCollectionGetNotFound) IsRedirect

func (o *S2sFeaturedCollectionGetNotFound) IsRedirect() bool

IsRedirect returns true when this s2s featured collection get not found response has a 3xx status code

func (*S2sFeaturedCollectionGetNotFound) IsServerError

func (o *S2sFeaturedCollectionGetNotFound) IsServerError() bool

IsServerError returns true when this s2s featured collection get not found response has a 5xx status code

func (*S2sFeaturedCollectionGetNotFound) IsSuccess

func (o *S2sFeaturedCollectionGetNotFound) IsSuccess() bool

IsSuccess returns true when this s2s featured collection get not found response has a 2xx status code

func (*S2sFeaturedCollectionGetNotFound) String

type S2sFeaturedCollectionGetOK

type S2sFeaturedCollectionGetOK struct {
	Payload *models.SwaggerFeaturedCollection
}

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

S2sFeaturedCollectionGetOK s2s featured collection get o k

func NewS2sFeaturedCollectionGetOK

func NewS2sFeaturedCollectionGetOK() *S2sFeaturedCollectionGetOK

NewS2sFeaturedCollectionGetOK creates a S2sFeaturedCollectionGetOK with default headers values

func (*S2sFeaturedCollectionGetOK) Code

func (o *S2sFeaturedCollectionGetOK) Code() int

Code gets the status code for the s2s featured collection get o k response

func (*S2sFeaturedCollectionGetOK) Error

func (*S2sFeaturedCollectionGetOK) GetPayload

func (*S2sFeaturedCollectionGetOK) IsClientError

func (o *S2sFeaturedCollectionGetOK) IsClientError() bool

IsClientError returns true when this s2s featured collection get o k response has a 4xx status code

func (*S2sFeaturedCollectionGetOK) IsCode

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

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

func (*S2sFeaturedCollectionGetOK) IsRedirect

func (o *S2sFeaturedCollectionGetOK) IsRedirect() bool

IsRedirect returns true when this s2s featured collection get o k response has a 3xx status code

func (*S2sFeaturedCollectionGetOK) IsServerError

func (o *S2sFeaturedCollectionGetOK) IsServerError() bool

IsServerError returns true when this s2s featured collection get o k response has a 5xx status code

func (*S2sFeaturedCollectionGetOK) IsSuccess

func (o *S2sFeaturedCollectionGetOK) IsSuccess() bool

IsSuccess returns true when this s2s featured collection get o k response has a 2xx status code

func (*S2sFeaturedCollectionGetOK) String

func (o *S2sFeaturedCollectionGetOK) String() string

type S2sFeaturedCollectionGetParams

type S2sFeaturedCollectionGetParams struct {

	/* Username.

	   Account name of the user
	*/
	Username string

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

S2sFeaturedCollectionGetParams contains all the parameters to send to the API endpoint

for the s2s featured collection get operation.

Typically these are written to a http.Request.

func NewS2sFeaturedCollectionGetParams

func NewS2sFeaturedCollectionGetParams() *S2sFeaturedCollectionGetParams

NewS2sFeaturedCollectionGetParams creates a new S2sFeaturedCollectionGetParams 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 NewS2sFeaturedCollectionGetParamsWithContext

func NewS2sFeaturedCollectionGetParamsWithContext(ctx context.Context) *S2sFeaturedCollectionGetParams

NewS2sFeaturedCollectionGetParamsWithContext creates a new S2sFeaturedCollectionGetParams object with the ability to set a context for a request.

func NewS2sFeaturedCollectionGetParamsWithHTTPClient

func NewS2sFeaturedCollectionGetParamsWithHTTPClient(client *http.Client) *S2sFeaturedCollectionGetParams

NewS2sFeaturedCollectionGetParamsWithHTTPClient creates a new S2sFeaturedCollectionGetParams object with the ability to set a custom HTTPClient for a request.

func NewS2sFeaturedCollectionGetParamsWithTimeout

func NewS2sFeaturedCollectionGetParamsWithTimeout(timeout time.Duration) *S2sFeaturedCollectionGetParams

NewS2sFeaturedCollectionGetParamsWithTimeout creates a new S2sFeaturedCollectionGetParams object with the ability to set a timeout on a request.

func (*S2sFeaturedCollectionGetParams) SetContext

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

SetContext adds the context to the s2s featured collection get params

func (*S2sFeaturedCollectionGetParams) SetDefaults

func (o *S2sFeaturedCollectionGetParams) SetDefaults()

SetDefaults hydrates default values in the s2s featured collection get params (not the query body).

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

func (*S2sFeaturedCollectionGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the s2s featured collection get params

func (*S2sFeaturedCollectionGetParams) SetTimeout

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

SetTimeout adds the timeout to the s2s featured collection get params

func (*S2sFeaturedCollectionGetParams) SetUsername

func (o *S2sFeaturedCollectionGetParams) SetUsername(username string)

SetUsername adds the username to the s2s featured collection get params

func (*S2sFeaturedCollectionGetParams) WithContext

WithContext adds the context to the s2s featured collection get params

func (*S2sFeaturedCollectionGetParams) WithDefaults

WithDefaults hydrates default values in the s2s featured collection get params (not the query body).

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

func (*S2sFeaturedCollectionGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the s2s featured collection get params

func (*S2sFeaturedCollectionGetParams) WithTimeout

WithTimeout adds the timeout to the s2s featured collection get params

func (*S2sFeaturedCollectionGetParams) WithUsername

WithUsername adds the username to the s2s featured collection get params

func (*S2sFeaturedCollectionGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type S2sFeaturedCollectionGetReader

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

S2sFeaturedCollectionGetReader is a Reader for the S2sFeaturedCollectionGet structure.

func (*S2sFeaturedCollectionGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type S2sFeaturedCollectionGetUnauthorized

type S2sFeaturedCollectionGetUnauthorized struct {
}

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

unauthorized

func NewS2sFeaturedCollectionGetUnauthorized

func NewS2sFeaturedCollectionGetUnauthorized() *S2sFeaturedCollectionGetUnauthorized

NewS2sFeaturedCollectionGetUnauthorized creates a S2sFeaturedCollectionGetUnauthorized with default headers values

func (*S2sFeaturedCollectionGetUnauthorized) Code

Code gets the status code for the s2s featured collection get unauthorized response

func (*S2sFeaturedCollectionGetUnauthorized) Error

func (*S2sFeaturedCollectionGetUnauthorized) IsClientError

func (o *S2sFeaturedCollectionGetUnauthorized) IsClientError() bool

IsClientError returns true when this s2s featured collection get unauthorized response has a 4xx status code

func (*S2sFeaturedCollectionGetUnauthorized) IsCode

IsCode returns true when this s2s featured collection get unauthorized response a status code equal to that given

func (*S2sFeaturedCollectionGetUnauthorized) IsRedirect

IsRedirect returns true when this s2s featured collection get unauthorized response has a 3xx status code

func (*S2sFeaturedCollectionGetUnauthorized) IsServerError

func (o *S2sFeaturedCollectionGetUnauthorized) IsServerError() bool

IsServerError returns true when this s2s featured collection get unauthorized response has a 5xx status code

func (*S2sFeaturedCollectionGetUnauthorized) IsSuccess

IsSuccess returns true when this s2s featured collection get unauthorized response has a 2xx status code

func (*S2sFeaturedCollectionGetUnauthorized) String

type S2sOutboxGetBadRequest

type S2sOutboxGetBadRequest struct {
}

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

bad request

func NewS2sOutboxGetBadRequest

func NewS2sOutboxGetBadRequest() *S2sOutboxGetBadRequest

NewS2sOutboxGetBadRequest creates a S2sOutboxGetBadRequest with default headers values

func (*S2sOutboxGetBadRequest) Code

func (o *S2sOutboxGetBadRequest) Code() int

Code gets the status code for the s2s outbox get bad request response

func (*S2sOutboxGetBadRequest) Error

func (o *S2sOutboxGetBadRequest) Error() string

func (*S2sOutboxGetBadRequest) IsClientError

func (o *S2sOutboxGetBadRequest) IsClientError() bool

IsClientError returns true when this s2s outbox get bad request response has a 4xx status code

func (*S2sOutboxGetBadRequest) IsCode

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

IsCode returns true when this s2s outbox get bad request response a status code equal to that given

func (*S2sOutboxGetBadRequest) IsRedirect

func (o *S2sOutboxGetBadRequest) IsRedirect() bool

IsRedirect returns true when this s2s outbox get bad request response has a 3xx status code

func (*S2sOutboxGetBadRequest) IsServerError

func (o *S2sOutboxGetBadRequest) IsServerError() bool

IsServerError returns true when this s2s outbox get bad request response has a 5xx status code

func (*S2sOutboxGetBadRequest) IsSuccess

func (o *S2sOutboxGetBadRequest) IsSuccess() bool

IsSuccess returns true when this s2s outbox get bad request response has a 2xx status code

func (*S2sOutboxGetBadRequest) String

func (o *S2sOutboxGetBadRequest) String() string

type S2sOutboxGetForbidden

type S2sOutboxGetForbidden struct {
}

S2sOutboxGetForbidden describes a response with status code 403, with default header values.

forbidden

func NewS2sOutboxGetForbidden

func NewS2sOutboxGetForbidden() *S2sOutboxGetForbidden

NewS2sOutboxGetForbidden creates a S2sOutboxGetForbidden with default headers values

func (*S2sOutboxGetForbidden) Code

func (o *S2sOutboxGetForbidden) Code() int

Code gets the status code for the s2s outbox get forbidden response

func (*S2sOutboxGetForbidden) Error

func (o *S2sOutboxGetForbidden) Error() string

func (*S2sOutboxGetForbidden) IsClientError

func (o *S2sOutboxGetForbidden) IsClientError() bool

IsClientError returns true when this s2s outbox get forbidden response has a 4xx status code

func (*S2sOutboxGetForbidden) IsCode

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

IsCode returns true when this s2s outbox get forbidden response a status code equal to that given

func (*S2sOutboxGetForbidden) IsRedirect

func (o *S2sOutboxGetForbidden) IsRedirect() bool

IsRedirect returns true when this s2s outbox get forbidden response has a 3xx status code

func (*S2sOutboxGetForbidden) IsServerError

func (o *S2sOutboxGetForbidden) IsServerError() bool

IsServerError returns true when this s2s outbox get forbidden response has a 5xx status code

func (*S2sOutboxGetForbidden) IsSuccess

func (o *S2sOutboxGetForbidden) IsSuccess() bool

IsSuccess returns true when this s2s outbox get forbidden response has a 2xx status code

func (*S2sOutboxGetForbidden) String

func (o *S2sOutboxGetForbidden) String() string

type S2sOutboxGetNotFound

type S2sOutboxGetNotFound struct {
}

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

not found

func NewS2sOutboxGetNotFound

func NewS2sOutboxGetNotFound() *S2sOutboxGetNotFound

NewS2sOutboxGetNotFound creates a S2sOutboxGetNotFound with default headers values

func (*S2sOutboxGetNotFound) Code

func (o *S2sOutboxGetNotFound) Code() int

Code gets the status code for the s2s outbox get not found response

func (*S2sOutboxGetNotFound) Error

func (o *S2sOutboxGetNotFound) Error() string

func (*S2sOutboxGetNotFound) IsClientError

func (o *S2sOutboxGetNotFound) IsClientError() bool

IsClientError returns true when this s2s outbox get not found response has a 4xx status code

func (*S2sOutboxGetNotFound) IsCode

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

IsCode returns true when this s2s outbox get not found response a status code equal to that given

func (*S2sOutboxGetNotFound) IsRedirect

func (o *S2sOutboxGetNotFound) IsRedirect() bool

IsRedirect returns true when this s2s outbox get not found response has a 3xx status code

func (*S2sOutboxGetNotFound) IsServerError

func (o *S2sOutboxGetNotFound) IsServerError() bool

IsServerError returns true when this s2s outbox get not found response has a 5xx status code

func (*S2sOutboxGetNotFound) IsSuccess

func (o *S2sOutboxGetNotFound) IsSuccess() bool

IsSuccess returns true when this s2s outbox get not found response has a 2xx status code

func (*S2sOutboxGetNotFound) String

func (o *S2sOutboxGetNotFound) String() string

type S2sOutboxGetOK

type S2sOutboxGetOK struct {
	Payload *models.SwaggerCollection
}

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

S2sOutboxGetOK s2s outbox get o k

func NewS2sOutboxGetOK

func NewS2sOutboxGetOK() *S2sOutboxGetOK

NewS2sOutboxGetOK creates a S2sOutboxGetOK with default headers values

func (*S2sOutboxGetOK) Code

func (o *S2sOutboxGetOK) Code() int

Code gets the status code for the s2s outbox get o k response

func (*S2sOutboxGetOK) Error

func (o *S2sOutboxGetOK) Error() string

func (*S2sOutboxGetOK) GetPayload

func (o *S2sOutboxGetOK) GetPayload() *models.SwaggerCollection

func (*S2sOutboxGetOK) IsClientError

func (o *S2sOutboxGetOK) IsClientError() bool

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

func (*S2sOutboxGetOK) IsCode

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

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

func (*S2sOutboxGetOK) IsRedirect

func (o *S2sOutboxGetOK) IsRedirect() bool

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

func (*S2sOutboxGetOK) IsServerError

func (o *S2sOutboxGetOK) IsServerError() bool

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

func (*S2sOutboxGetOK) IsSuccess

func (o *S2sOutboxGetOK) IsSuccess() bool

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

func (*S2sOutboxGetOK) String

func (o *S2sOutboxGetOK) String() string

type S2sOutboxGetParams

type S2sOutboxGetParams struct {

	/* MaxID.

	   Maximum ID of the next status, used for paging.
	*/
	MaxID *string

	/* MinID.

	   Minimum ID of the next status, used for paging.
	*/
	MinID *string

	/* Page.

	   Return response as a CollectionPage.
	*/
	Page *bool

	/* Username.

	   Username of the account.
	*/
	Username string

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

S2sOutboxGetParams contains all the parameters to send to the API endpoint

for the s2s outbox get operation.

Typically these are written to a http.Request.

func NewS2sOutboxGetParams

func NewS2sOutboxGetParams() *S2sOutboxGetParams

NewS2sOutboxGetParams creates a new S2sOutboxGetParams 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 NewS2sOutboxGetParamsWithContext

func NewS2sOutboxGetParamsWithContext(ctx context.Context) *S2sOutboxGetParams

NewS2sOutboxGetParamsWithContext creates a new S2sOutboxGetParams object with the ability to set a context for a request.

func NewS2sOutboxGetParamsWithHTTPClient

func NewS2sOutboxGetParamsWithHTTPClient(client *http.Client) *S2sOutboxGetParams

NewS2sOutboxGetParamsWithHTTPClient creates a new S2sOutboxGetParams object with the ability to set a custom HTTPClient for a request.

func NewS2sOutboxGetParamsWithTimeout

func NewS2sOutboxGetParamsWithTimeout(timeout time.Duration) *S2sOutboxGetParams

NewS2sOutboxGetParamsWithTimeout creates a new S2sOutboxGetParams object with the ability to set a timeout on a request.

func (*S2sOutboxGetParams) SetContext

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

SetContext adds the context to the s2s outbox get params

func (*S2sOutboxGetParams) SetDefaults

func (o *S2sOutboxGetParams) SetDefaults()

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

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

func (*S2sOutboxGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the s2s outbox get params

func (*S2sOutboxGetParams) SetMaxID

func (o *S2sOutboxGetParams) SetMaxID(maxID *string)

SetMaxID adds the maxId to the s2s outbox get params

func (*S2sOutboxGetParams) SetMinID

func (o *S2sOutboxGetParams) SetMinID(minID *string)

SetMinID adds the minId to the s2s outbox get params

func (*S2sOutboxGetParams) SetPage

func (o *S2sOutboxGetParams) SetPage(page *bool)

SetPage adds the page to the s2s outbox get params

func (*S2sOutboxGetParams) SetTimeout

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

SetTimeout adds the timeout to the s2s outbox get params

func (*S2sOutboxGetParams) SetUsername

func (o *S2sOutboxGetParams) SetUsername(username string)

SetUsername adds the username to the s2s outbox get params

func (*S2sOutboxGetParams) WithContext

WithContext adds the context to the s2s outbox get params

func (*S2sOutboxGetParams) WithDefaults

func (o *S2sOutboxGetParams) WithDefaults() *S2sOutboxGetParams

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

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

func (*S2sOutboxGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the s2s outbox get params

func (*S2sOutboxGetParams) WithMaxID

func (o *S2sOutboxGetParams) WithMaxID(maxID *string) *S2sOutboxGetParams

WithMaxID adds the maxID to the s2s outbox get params

func (*S2sOutboxGetParams) WithMinID

func (o *S2sOutboxGetParams) WithMinID(minID *string) *S2sOutboxGetParams

WithMinID adds the minID to the s2s outbox get params

func (*S2sOutboxGetParams) WithPage

func (o *S2sOutboxGetParams) WithPage(page *bool) *S2sOutboxGetParams

WithPage adds the page to the s2s outbox get params

func (*S2sOutboxGetParams) WithTimeout

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

WithTimeout adds the timeout to the s2s outbox get params

func (*S2sOutboxGetParams) WithUsername

func (o *S2sOutboxGetParams) WithUsername(username string) *S2sOutboxGetParams

WithUsername adds the username to the s2s outbox get params

func (*S2sOutboxGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type S2sOutboxGetReader

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

S2sOutboxGetReader is a Reader for the S2sOutboxGet structure.

func (*S2sOutboxGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type S2sOutboxGetUnauthorized

type S2sOutboxGetUnauthorized struct {
}

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

unauthorized

func NewS2sOutboxGetUnauthorized

func NewS2sOutboxGetUnauthorized() *S2sOutboxGetUnauthorized

NewS2sOutboxGetUnauthorized creates a S2sOutboxGetUnauthorized with default headers values

func (*S2sOutboxGetUnauthorized) Code

func (o *S2sOutboxGetUnauthorized) Code() int

Code gets the status code for the s2s outbox get unauthorized response

func (*S2sOutboxGetUnauthorized) Error

func (o *S2sOutboxGetUnauthorized) Error() string

func (*S2sOutboxGetUnauthorized) IsClientError

func (o *S2sOutboxGetUnauthorized) IsClientError() bool

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

func (*S2sOutboxGetUnauthorized) IsCode

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

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

func (*S2sOutboxGetUnauthorized) IsRedirect

func (o *S2sOutboxGetUnauthorized) IsRedirect() bool

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

func (*S2sOutboxGetUnauthorized) IsServerError

func (o *S2sOutboxGetUnauthorized) IsServerError() bool

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

func (*S2sOutboxGetUnauthorized) IsSuccess

func (o *S2sOutboxGetUnauthorized) IsSuccess() bool

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

func (*S2sOutboxGetUnauthorized) String

func (o *S2sOutboxGetUnauthorized) String() string

type S2sRepliesGetBadRequest

type S2sRepliesGetBadRequest struct {
}

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

bad request

func NewS2sRepliesGetBadRequest

func NewS2sRepliesGetBadRequest() *S2sRepliesGetBadRequest

NewS2sRepliesGetBadRequest creates a S2sRepliesGetBadRequest with default headers values

func (*S2sRepliesGetBadRequest) Code

func (o *S2sRepliesGetBadRequest) Code() int

Code gets the status code for the s2s replies get bad request response

func (*S2sRepliesGetBadRequest) Error

func (o *S2sRepliesGetBadRequest) Error() string

func (*S2sRepliesGetBadRequest) IsClientError

func (o *S2sRepliesGetBadRequest) IsClientError() bool

IsClientError returns true when this s2s replies get bad request response has a 4xx status code

func (*S2sRepliesGetBadRequest) IsCode

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

IsCode returns true when this s2s replies get bad request response a status code equal to that given

func (*S2sRepliesGetBadRequest) IsRedirect

func (o *S2sRepliesGetBadRequest) IsRedirect() bool

IsRedirect returns true when this s2s replies get bad request response has a 3xx status code

func (*S2sRepliesGetBadRequest) IsServerError

func (o *S2sRepliesGetBadRequest) IsServerError() bool

IsServerError returns true when this s2s replies get bad request response has a 5xx status code

func (*S2sRepliesGetBadRequest) IsSuccess

func (o *S2sRepliesGetBadRequest) IsSuccess() bool

IsSuccess returns true when this s2s replies get bad request response has a 2xx status code

func (*S2sRepliesGetBadRequest) String

func (o *S2sRepliesGetBadRequest) String() string

type S2sRepliesGetForbidden

type S2sRepliesGetForbidden struct {
}

S2sRepliesGetForbidden describes a response with status code 403, with default header values.

forbidden

func NewS2sRepliesGetForbidden

func NewS2sRepliesGetForbidden() *S2sRepliesGetForbidden

NewS2sRepliesGetForbidden creates a S2sRepliesGetForbidden with default headers values

func (*S2sRepliesGetForbidden) Code

func (o *S2sRepliesGetForbidden) Code() int

Code gets the status code for the s2s replies get forbidden response

func (*S2sRepliesGetForbidden) Error

func (o *S2sRepliesGetForbidden) Error() string

func (*S2sRepliesGetForbidden) IsClientError

func (o *S2sRepliesGetForbidden) IsClientError() bool

IsClientError returns true when this s2s replies get forbidden response has a 4xx status code

func (*S2sRepliesGetForbidden) IsCode

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

IsCode returns true when this s2s replies get forbidden response a status code equal to that given

func (*S2sRepliesGetForbidden) IsRedirect

func (o *S2sRepliesGetForbidden) IsRedirect() bool

IsRedirect returns true when this s2s replies get forbidden response has a 3xx status code

func (*S2sRepliesGetForbidden) IsServerError

func (o *S2sRepliesGetForbidden) IsServerError() bool

IsServerError returns true when this s2s replies get forbidden response has a 5xx status code

func (*S2sRepliesGetForbidden) IsSuccess

func (o *S2sRepliesGetForbidden) IsSuccess() bool

IsSuccess returns true when this s2s replies get forbidden response has a 2xx status code

func (*S2sRepliesGetForbidden) String

func (o *S2sRepliesGetForbidden) String() string

type S2sRepliesGetNotFound

type S2sRepliesGetNotFound struct {
}

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

not found

func NewS2sRepliesGetNotFound

func NewS2sRepliesGetNotFound() *S2sRepliesGetNotFound

NewS2sRepliesGetNotFound creates a S2sRepliesGetNotFound with default headers values

func (*S2sRepliesGetNotFound) Code

func (o *S2sRepliesGetNotFound) Code() int

Code gets the status code for the s2s replies get not found response

func (*S2sRepliesGetNotFound) Error

func (o *S2sRepliesGetNotFound) Error() string

func (*S2sRepliesGetNotFound) IsClientError

func (o *S2sRepliesGetNotFound) IsClientError() bool

IsClientError returns true when this s2s replies get not found response has a 4xx status code

func (*S2sRepliesGetNotFound) IsCode

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

IsCode returns true when this s2s replies get not found response a status code equal to that given

func (*S2sRepliesGetNotFound) IsRedirect

func (o *S2sRepliesGetNotFound) IsRedirect() bool

IsRedirect returns true when this s2s replies get not found response has a 3xx status code

func (*S2sRepliesGetNotFound) IsServerError

func (o *S2sRepliesGetNotFound) IsServerError() bool

IsServerError returns true when this s2s replies get not found response has a 5xx status code

func (*S2sRepliesGetNotFound) IsSuccess

func (o *S2sRepliesGetNotFound) IsSuccess() bool

IsSuccess returns true when this s2s replies get not found response has a 2xx status code

func (*S2sRepliesGetNotFound) String

func (o *S2sRepliesGetNotFound) String() string

type S2sRepliesGetOK

type S2sRepliesGetOK struct {
	Payload *models.SwaggerCollection
}

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

S2sRepliesGetOK s2s replies get o k

func NewS2sRepliesGetOK

func NewS2sRepliesGetOK() *S2sRepliesGetOK

NewS2sRepliesGetOK creates a S2sRepliesGetOK with default headers values

func (*S2sRepliesGetOK) Code

func (o *S2sRepliesGetOK) Code() int

Code gets the status code for the s2s replies get o k response

func (*S2sRepliesGetOK) Error

func (o *S2sRepliesGetOK) Error() string

func (*S2sRepliesGetOK) GetPayload

func (o *S2sRepliesGetOK) GetPayload() *models.SwaggerCollection

func (*S2sRepliesGetOK) IsClientError

func (o *S2sRepliesGetOK) IsClientError() bool

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

func (*S2sRepliesGetOK) IsCode

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

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

func (*S2sRepliesGetOK) IsRedirect

func (o *S2sRepliesGetOK) IsRedirect() bool

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

func (*S2sRepliesGetOK) IsServerError

func (o *S2sRepliesGetOK) IsServerError() bool

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

func (*S2sRepliesGetOK) IsSuccess

func (o *S2sRepliesGetOK) IsSuccess() bool

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

func (*S2sRepliesGetOK) String

func (o *S2sRepliesGetOK) String() string

type S2sRepliesGetParams

type S2sRepliesGetParams struct {

	/* MinID.

	   Minimum ID of the next status, used for paging.
	*/
	MinID *string

	/* OnlyOtherAccounts.

	   Return replies only from accounts other than the status owner.
	*/
	OnlyOtherAccounts *bool

	/* Page.

	   Return response as a CollectionPage.
	*/
	Page *bool

	/* Status.

	   ID of the status.
	*/
	Status string

	/* Username.

	   Username of the account.
	*/
	Username string

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

S2sRepliesGetParams contains all the parameters to send to the API endpoint

for the s2s replies get operation.

Typically these are written to a http.Request.

func NewS2sRepliesGetParams

func NewS2sRepliesGetParams() *S2sRepliesGetParams

NewS2sRepliesGetParams creates a new S2sRepliesGetParams 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 NewS2sRepliesGetParamsWithContext

func NewS2sRepliesGetParamsWithContext(ctx context.Context) *S2sRepliesGetParams

NewS2sRepliesGetParamsWithContext creates a new S2sRepliesGetParams object with the ability to set a context for a request.

func NewS2sRepliesGetParamsWithHTTPClient

func NewS2sRepliesGetParamsWithHTTPClient(client *http.Client) *S2sRepliesGetParams

NewS2sRepliesGetParamsWithHTTPClient creates a new S2sRepliesGetParams object with the ability to set a custom HTTPClient for a request.

func NewS2sRepliesGetParamsWithTimeout

func NewS2sRepliesGetParamsWithTimeout(timeout time.Duration) *S2sRepliesGetParams

NewS2sRepliesGetParamsWithTimeout creates a new S2sRepliesGetParams object with the ability to set a timeout on a request.

func (*S2sRepliesGetParams) SetContext

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

SetContext adds the context to the s2s replies get params

func (*S2sRepliesGetParams) SetDefaults

func (o *S2sRepliesGetParams) SetDefaults()

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

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

func (*S2sRepliesGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the s2s replies get params

func (*S2sRepliesGetParams) SetMinID

func (o *S2sRepliesGetParams) SetMinID(minID *string)

SetMinID adds the minId to the s2s replies get params

func (*S2sRepliesGetParams) SetOnlyOtherAccounts

func (o *S2sRepliesGetParams) SetOnlyOtherAccounts(onlyOtherAccounts *bool)

SetOnlyOtherAccounts adds the onlyOtherAccounts to the s2s replies get params

func (*S2sRepliesGetParams) SetPage

func (o *S2sRepliesGetParams) SetPage(page *bool)

SetPage adds the page to the s2s replies get params

func (*S2sRepliesGetParams) SetStatus

func (o *S2sRepliesGetParams) SetStatus(status string)

SetStatus adds the status to the s2s replies get params

func (*S2sRepliesGetParams) SetTimeout

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

SetTimeout adds the timeout to the s2s replies get params

func (*S2sRepliesGetParams) SetUsername

func (o *S2sRepliesGetParams) SetUsername(username string)

SetUsername adds the username to the s2s replies get params

func (*S2sRepliesGetParams) WithContext

WithContext adds the context to the s2s replies get params

func (*S2sRepliesGetParams) WithDefaults

func (o *S2sRepliesGetParams) WithDefaults() *S2sRepliesGetParams

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

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

func (*S2sRepliesGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the s2s replies get params

func (*S2sRepliesGetParams) WithMinID

func (o *S2sRepliesGetParams) WithMinID(minID *string) *S2sRepliesGetParams

WithMinID adds the minID to the s2s replies get params

func (*S2sRepliesGetParams) WithOnlyOtherAccounts

func (o *S2sRepliesGetParams) WithOnlyOtherAccounts(onlyOtherAccounts *bool) *S2sRepliesGetParams

WithOnlyOtherAccounts adds the onlyOtherAccounts to the s2s replies get params

func (*S2sRepliesGetParams) WithPage

func (o *S2sRepliesGetParams) WithPage(page *bool) *S2sRepliesGetParams

WithPage adds the page to the s2s replies get params

func (*S2sRepliesGetParams) WithStatus

func (o *S2sRepliesGetParams) WithStatus(status string) *S2sRepliesGetParams

WithStatus adds the status to the s2s replies get params

func (*S2sRepliesGetParams) WithTimeout

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

WithTimeout adds the timeout to the s2s replies get params

func (*S2sRepliesGetParams) WithUsername

func (o *S2sRepliesGetParams) WithUsername(username string) *S2sRepliesGetParams

WithUsername adds the username to the s2s replies get params

func (*S2sRepliesGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type S2sRepliesGetReader

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

S2sRepliesGetReader is a Reader for the S2sRepliesGet structure.

func (*S2sRepliesGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type S2sRepliesGetUnauthorized

type S2sRepliesGetUnauthorized struct {
}

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

unauthorized

func NewS2sRepliesGetUnauthorized

func NewS2sRepliesGetUnauthorized() *S2sRepliesGetUnauthorized

NewS2sRepliesGetUnauthorized creates a S2sRepliesGetUnauthorized with default headers values

func (*S2sRepliesGetUnauthorized) Code

func (o *S2sRepliesGetUnauthorized) Code() int

Code gets the status code for the s2s replies get unauthorized response

func (*S2sRepliesGetUnauthorized) Error

func (o *S2sRepliesGetUnauthorized) Error() string

func (*S2sRepliesGetUnauthorized) IsClientError

func (o *S2sRepliesGetUnauthorized) IsClientError() bool

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

func (*S2sRepliesGetUnauthorized) IsCode

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

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

func (*S2sRepliesGetUnauthorized) IsRedirect

func (o *S2sRepliesGetUnauthorized) IsRedirect() bool

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

func (*S2sRepliesGetUnauthorized) IsServerError

func (o *S2sRepliesGetUnauthorized) IsServerError() bool

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

func (*S2sRepliesGetUnauthorized) IsSuccess

func (o *S2sRepliesGetUnauthorized) IsSuccess() bool

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

func (*S2sRepliesGetUnauthorized) String

func (o *S2sRepliesGetUnauthorized) String() string

Jump to

Keyboard shortcuts

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