activitypub

package
v0.0.0-...-17ef07c Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

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

func WithContentTypeTextPlain

func WithContentTypeTextPlain(r *runtime.ClientOperation)

WithContentTypeTextPlain sets the Content-Type header to "text/plain".

Types

type ActivitypubInstanceActorInboxNoContent

type ActivitypubInstanceActorInboxNoContent struct {
}

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

APIEmpty is an empty response

func NewActivitypubInstanceActorInboxNoContent

func NewActivitypubInstanceActorInboxNoContent() *ActivitypubInstanceActorInboxNoContent

NewActivitypubInstanceActorInboxNoContent creates a ActivitypubInstanceActorInboxNoContent with default headers values

func (*ActivitypubInstanceActorInboxNoContent) Code

Code gets the status code for the activitypub instance actor inbox no content response

func (*ActivitypubInstanceActorInboxNoContent) Error

func (*ActivitypubInstanceActorInboxNoContent) IsClientError

func (o *ActivitypubInstanceActorInboxNoContent) IsClientError() bool

IsClientError returns true when this activitypub instance actor inbox no content response has a 4xx status code

func (*ActivitypubInstanceActorInboxNoContent) IsCode

IsCode returns true when this activitypub instance actor inbox no content response a status code equal to that given

func (*ActivitypubInstanceActorInboxNoContent) IsRedirect

IsRedirect returns true when this activitypub instance actor inbox no content response has a 3xx status code

func (*ActivitypubInstanceActorInboxNoContent) IsServerError

func (o *ActivitypubInstanceActorInboxNoContent) IsServerError() bool

IsServerError returns true when this activitypub instance actor inbox no content response has a 5xx status code

func (*ActivitypubInstanceActorInboxNoContent) IsSuccess

IsSuccess returns true when this activitypub instance actor inbox no content response has a 2xx status code

func (*ActivitypubInstanceActorInboxNoContent) String

type ActivitypubInstanceActorInboxParams

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

ActivitypubInstanceActorInboxParams contains all the parameters to send to the API endpoint

for the activitypub instance actor inbox operation.

Typically these are written to a http.Request.

func NewActivitypubInstanceActorInboxParams

func NewActivitypubInstanceActorInboxParams() *ActivitypubInstanceActorInboxParams

NewActivitypubInstanceActorInboxParams creates a new ActivitypubInstanceActorInboxParams 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 NewActivitypubInstanceActorInboxParamsWithContext

func NewActivitypubInstanceActorInboxParamsWithContext(ctx context.Context) *ActivitypubInstanceActorInboxParams

NewActivitypubInstanceActorInboxParamsWithContext creates a new ActivitypubInstanceActorInboxParams object with the ability to set a context for a request.

func NewActivitypubInstanceActorInboxParamsWithHTTPClient

func NewActivitypubInstanceActorInboxParamsWithHTTPClient(client *http.Client) *ActivitypubInstanceActorInboxParams

NewActivitypubInstanceActorInboxParamsWithHTTPClient creates a new ActivitypubInstanceActorInboxParams object with the ability to set a custom HTTPClient for a request.

func NewActivitypubInstanceActorInboxParamsWithTimeout

func NewActivitypubInstanceActorInboxParamsWithTimeout(timeout time.Duration) *ActivitypubInstanceActorInboxParams

NewActivitypubInstanceActorInboxParamsWithTimeout creates a new ActivitypubInstanceActorInboxParams object with the ability to set a timeout on a request.

func (*ActivitypubInstanceActorInboxParams) SetContext

SetContext adds the context to the activitypub instance actor inbox params

func (*ActivitypubInstanceActorInboxParams) SetDefaults

func (o *ActivitypubInstanceActorInboxParams) SetDefaults()

SetDefaults hydrates default values in the activitypub instance actor inbox params (not the query body).

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

func (*ActivitypubInstanceActorInboxParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the activitypub instance actor inbox params

func (*ActivitypubInstanceActorInboxParams) SetTimeout

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

SetTimeout adds the timeout to the activitypub instance actor inbox params

func (*ActivitypubInstanceActorInboxParams) WithContext

WithContext adds the context to the activitypub instance actor inbox params

func (*ActivitypubInstanceActorInboxParams) WithDefaults

WithDefaults hydrates default values in the activitypub instance actor inbox params (not the query body).

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

func (*ActivitypubInstanceActorInboxParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the activitypub instance actor inbox params

func (*ActivitypubInstanceActorInboxParams) WithTimeout

WithTimeout adds the timeout to the activitypub instance actor inbox params

func (*ActivitypubInstanceActorInboxParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ActivitypubInstanceActorInboxReader

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

ActivitypubInstanceActorInboxReader is a Reader for the ActivitypubInstanceActorInbox structure.

func (*ActivitypubInstanceActorInboxReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ActivitypubInstanceActorOK

type ActivitypubInstanceActorOK struct {
	Payload *models.ActivityPub
}

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

ActivityPub

func NewActivitypubInstanceActorOK

func NewActivitypubInstanceActorOK() *ActivitypubInstanceActorOK

NewActivitypubInstanceActorOK creates a ActivitypubInstanceActorOK with default headers values

func (*ActivitypubInstanceActorOK) Code

func (o *ActivitypubInstanceActorOK) Code() int

Code gets the status code for the activitypub instance actor o k response

func (*ActivitypubInstanceActorOK) Error

func (*ActivitypubInstanceActorOK) GetPayload

func (*ActivitypubInstanceActorOK) IsClientError

func (o *ActivitypubInstanceActorOK) IsClientError() bool

IsClientError returns true when this activitypub instance actor o k response has a 4xx status code

func (*ActivitypubInstanceActorOK) IsCode

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

IsCode returns true when this activitypub instance actor o k response a status code equal to that given

func (*ActivitypubInstanceActorOK) IsRedirect

func (o *ActivitypubInstanceActorOK) IsRedirect() bool

IsRedirect returns true when this activitypub instance actor o k response has a 3xx status code

func (*ActivitypubInstanceActorOK) IsServerError

func (o *ActivitypubInstanceActorOK) IsServerError() bool

IsServerError returns true when this activitypub instance actor o k response has a 5xx status code

func (*ActivitypubInstanceActorOK) IsSuccess

func (o *ActivitypubInstanceActorOK) IsSuccess() bool

IsSuccess returns true when this activitypub instance actor o k response has a 2xx status code

func (*ActivitypubInstanceActorOK) String

func (o *ActivitypubInstanceActorOK) String() string

type ActivitypubInstanceActorParams

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

ActivitypubInstanceActorParams contains all the parameters to send to the API endpoint

for the activitypub instance actor operation.

Typically these are written to a http.Request.

func NewActivitypubInstanceActorParams

func NewActivitypubInstanceActorParams() *ActivitypubInstanceActorParams

NewActivitypubInstanceActorParams creates a new ActivitypubInstanceActorParams 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 NewActivitypubInstanceActorParamsWithContext

func NewActivitypubInstanceActorParamsWithContext(ctx context.Context) *ActivitypubInstanceActorParams

NewActivitypubInstanceActorParamsWithContext creates a new ActivitypubInstanceActorParams object with the ability to set a context for a request.

func NewActivitypubInstanceActorParamsWithHTTPClient

func NewActivitypubInstanceActorParamsWithHTTPClient(client *http.Client) *ActivitypubInstanceActorParams

NewActivitypubInstanceActorParamsWithHTTPClient creates a new ActivitypubInstanceActorParams object with the ability to set a custom HTTPClient for a request.

func NewActivitypubInstanceActorParamsWithTimeout

func NewActivitypubInstanceActorParamsWithTimeout(timeout time.Duration) *ActivitypubInstanceActorParams

NewActivitypubInstanceActorParamsWithTimeout creates a new ActivitypubInstanceActorParams object with the ability to set a timeout on a request.

func (*ActivitypubInstanceActorParams) SetContext

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

SetContext adds the context to the activitypub instance actor params

func (*ActivitypubInstanceActorParams) SetDefaults

func (o *ActivitypubInstanceActorParams) SetDefaults()

SetDefaults hydrates default values in the activitypub instance actor params (not the query body).

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

func (*ActivitypubInstanceActorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the activitypub instance actor params

func (*ActivitypubInstanceActorParams) SetTimeout

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

SetTimeout adds the timeout to the activitypub instance actor params

func (*ActivitypubInstanceActorParams) WithContext

WithContext adds the context to the activitypub instance actor params

func (*ActivitypubInstanceActorParams) WithDefaults

WithDefaults hydrates default values in the activitypub instance actor params (not the query body).

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

func (*ActivitypubInstanceActorParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the activitypub instance actor params

func (*ActivitypubInstanceActorParams) WithTimeout

WithTimeout adds the timeout to the activitypub instance actor params

func (*ActivitypubInstanceActorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ActivitypubInstanceActorReader

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

ActivitypubInstanceActorReader is a Reader for the ActivitypubInstanceActor structure.

func (*ActivitypubInstanceActorReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ActivitypubPersonInboxNoContent

type ActivitypubPersonInboxNoContent struct {
}

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

APIEmpty is an empty response

func NewActivitypubPersonInboxNoContent

func NewActivitypubPersonInboxNoContent() *ActivitypubPersonInboxNoContent

NewActivitypubPersonInboxNoContent creates a ActivitypubPersonInboxNoContent with default headers values

func (*ActivitypubPersonInboxNoContent) Code

Code gets the status code for the activitypub person inbox no content response

func (*ActivitypubPersonInboxNoContent) Error

func (*ActivitypubPersonInboxNoContent) IsClientError

func (o *ActivitypubPersonInboxNoContent) IsClientError() bool

IsClientError returns true when this activitypub person inbox no content response has a 4xx status code

func (*ActivitypubPersonInboxNoContent) IsCode

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

IsCode returns true when this activitypub person inbox no content response a status code equal to that given

func (*ActivitypubPersonInboxNoContent) IsRedirect

func (o *ActivitypubPersonInboxNoContent) IsRedirect() bool

IsRedirect returns true when this activitypub person inbox no content response has a 3xx status code

func (*ActivitypubPersonInboxNoContent) IsServerError

func (o *ActivitypubPersonInboxNoContent) IsServerError() bool

IsServerError returns true when this activitypub person inbox no content response has a 5xx status code

func (*ActivitypubPersonInboxNoContent) IsSuccess

func (o *ActivitypubPersonInboxNoContent) IsSuccess() bool

IsSuccess returns true when this activitypub person inbox no content response has a 2xx status code

func (*ActivitypubPersonInboxNoContent) String

type ActivitypubPersonInboxParams

type ActivitypubPersonInboxParams struct {

	/* UserID.

	   user ID of the user
	*/
	UserID int64

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

ActivitypubPersonInboxParams contains all the parameters to send to the API endpoint

for the activitypub person inbox operation.

Typically these are written to a http.Request.

func NewActivitypubPersonInboxParams

func NewActivitypubPersonInboxParams() *ActivitypubPersonInboxParams

NewActivitypubPersonInboxParams creates a new ActivitypubPersonInboxParams 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 NewActivitypubPersonInboxParamsWithContext

func NewActivitypubPersonInboxParamsWithContext(ctx context.Context) *ActivitypubPersonInboxParams

NewActivitypubPersonInboxParamsWithContext creates a new ActivitypubPersonInboxParams object with the ability to set a context for a request.

func NewActivitypubPersonInboxParamsWithHTTPClient

func NewActivitypubPersonInboxParamsWithHTTPClient(client *http.Client) *ActivitypubPersonInboxParams

NewActivitypubPersonInboxParamsWithHTTPClient creates a new ActivitypubPersonInboxParams object with the ability to set a custom HTTPClient for a request.

func NewActivitypubPersonInboxParamsWithTimeout

func NewActivitypubPersonInboxParamsWithTimeout(timeout time.Duration) *ActivitypubPersonInboxParams

NewActivitypubPersonInboxParamsWithTimeout creates a new ActivitypubPersonInboxParams object with the ability to set a timeout on a request.

func (*ActivitypubPersonInboxParams) SetContext

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

SetContext adds the context to the activitypub person inbox params

func (*ActivitypubPersonInboxParams) SetDefaults

func (o *ActivitypubPersonInboxParams) SetDefaults()

SetDefaults hydrates default values in the activitypub person inbox params (not the query body).

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

func (*ActivitypubPersonInboxParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the activitypub person inbox params

func (*ActivitypubPersonInboxParams) SetTimeout

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

SetTimeout adds the timeout to the activitypub person inbox params

func (*ActivitypubPersonInboxParams) SetUserID

func (o *ActivitypubPersonInboxParams) SetUserID(userID int64)

SetUserID adds the userId to the activitypub person inbox params

func (*ActivitypubPersonInboxParams) WithContext

WithContext adds the context to the activitypub person inbox params

func (*ActivitypubPersonInboxParams) WithDefaults

WithDefaults hydrates default values in the activitypub person inbox params (not the query body).

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

func (*ActivitypubPersonInboxParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the activitypub person inbox params

func (*ActivitypubPersonInboxParams) WithTimeout

WithTimeout adds the timeout to the activitypub person inbox params

func (*ActivitypubPersonInboxParams) WithUserID

WithUserID adds the userID to the activitypub person inbox params

func (*ActivitypubPersonInboxParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ActivitypubPersonInboxReader

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

ActivitypubPersonInboxReader is a Reader for the ActivitypubPersonInbox structure.

func (*ActivitypubPersonInboxReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ActivitypubPersonOK

type ActivitypubPersonOK struct {
	Payload *models.ActivityPub
}

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

ActivityPub

func NewActivitypubPersonOK

func NewActivitypubPersonOK() *ActivitypubPersonOK

NewActivitypubPersonOK creates a ActivitypubPersonOK with default headers values

func (*ActivitypubPersonOK) Code

func (o *ActivitypubPersonOK) Code() int

Code gets the status code for the activitypub person o k response

func (*ActivitypubPersonOK) Error

func (o *ActivitypubPersonOK) Error() string

func (*ActivitypubPersonOK) GetPayload

func (o *ActivitypubPersonOK) GetPayload() *models.ActivityPub

func (*ActivitypubPersonOK) IsClientError

func (o *ActivitypubPersonOK) IsClientError() bool

IsClientError returns true when this activitypub person o k response has a 4xx status code

func (*ActivitypubPersonOK) IsCode

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

IsCode returns true when this activitypub person o k response a status code equal to that given

func (*ActivitypubPersonOK) IsRedirect

func (o *ActivitypubPersonOK) IsRedirect() bool

IsRedirect returns true when this activitypub person o k response has a 3xx status code

func (*ActivitypubPersonOK) IsServerError

func (o *ActivitypubPersonOK) IsServerError() bool

IsServerError returns true when this activitypub person o k response has a 5xx status code

func (*ActivitypubPersonOK) IsSuccess

func (o *ActivitypubPersonOK) IsSuccess() bool

IsSuccess returns true when this activitypub person o k response has a 2xx status code

func (*ActivitypubPersonOK) String

func (o *ActivitypubPersonOK) String() string

type ActivitypubPersonParams

type ActivitypubPersonParams struct {

	/* UserID.

	   user ID of the user
	*/
	UserID int64

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

ActivitypubPersonParams contains all the parameters to send to the API endpoint

for the activitypub person operation.

Typically these are written to a http.Request.

func NewActivitypubPersonParams

func NewActivitypubPersonParams() *ActivitypubPersonParams

NewActivitypubPersonParams creates a new ActivitypubPersonParams 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 NewActivitypubPersonParamsWithContext

func NewActivitypubPersonParamsWithContext(ctx context.Context) *ActivitypubPersonParams

NewActivitypubPersonParamsWithContext creates a new ActivitypubPersonParams object with the ability to set a context for a request.

func NewActivitypubPersonParamsWithHTTPClient

func NewActivitypubPersonParamsWithHTTPClient(client *http.Client) *ActivitypubPersonParams

NewActivitypubPersonParamsWithHTTPClient creates a new ActivitypubPersonParams object with the ability to set a custom HTTPClient for a request.

func NewActivitypubPersonParamsWithTimeout

func NewActivitypubPersonParamsWithTimeout(timeout time.Duration) *ActivitypubPersonParams

NewActivitypubPersonParamsWithTimeout creates a new ActivitypubPersonParams object with the ability to set a timeout on a request.

func (*ActivitypubPersonParams) SetContext

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

SetContext adds the context to the activitypub person params

func (*ActivitypubPersonParams) SetDefaults

func (o *ActivitypubPersonParams) SetDefaults()

SetDefaults hydrates default values in the activitypub person params (not the query body).

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

func (*ActivitypubPersonParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the activitypub person params

func (*ActivitypubPersonParams) SetTimeout

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

SetTimeout adds the timeout to the activitypub person params

func (*ActivitypubPersonParams) SetUserID

func (o *ActivitypubPersonParams) SetUserID(userID int64)

SetUserID adds the userId to the activitypub person params

func (*ActivitypubPersonParams) WithContext

WithContext adds the context to the activitypub person params

func (*ActivitypubPersonParams) WithDefaults

WithDefaults hydrates default values in the activitypub person params (not the query body).

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

func (*ActivitypubPersonParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the activitypub person params

func (*ActivitypubPersonParams) WithTimeout

WithTimeout adds the timeout to the activitypub person params

func (*ActivitypubPersonParams) WithUserID

func (o *ActivitypubPersonParams) WithUserID(userID int64) *ActivitypubPersonParams

WithUserID adds the userID to the activitypub person params

func (*ActivitypubPersonParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ActivitypubPersonReader

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

ActivitypubPersonReader is a Reader for the ActivitypubPerson structure.

func (*ActivitypubPersonReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ActivitypubRepositoryInboxNoContent

type ActivitypubRepositoryInboxNoContent struct {
}

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

APIEmpty is an empty response

func NewActivitypubRepositoryInboxNoContent

func NewActivitypubRepositoryInboxNoContent() *ActivitypubRepositoryInboxNoContent

NewActivitypubRepositoryInboxNoContent creates a ActivitypubRepositoryInboxNoContent with default headers values

func (*ActivitypubRepositoryInboxNoContent) Code

Code gets the status code for the activitypub repository inbox no content response

func (*ActivitypubRepositoryInboxNoContent) Error

func (*ActivitypubRepositoryInboxNoContent) IsClientError

func (o *ActivitypubRepositoryInboxNoContent) IsClientError() bool

IsClientError returns true when this activitypub repository inbox no content response has a 4xx status code

func (*ActivitypubRepositoryInboxNoContent) IsCode

IsCode returns true when this activitypub repository inbox no content response a status code equal to that given

func (*ActivitypubRepositoryInboxNoContent) IsRedirect

func (o *ActivitypubRepositoryInboxNoContent) IsRedirect() bool

IsRedirect returns true when this activitypub repository inbox no content response has a 3xx status code

func (*ActivitypubRepositoryInboxNoContent) IsServerError

func (o *ActivitypubRepositoryInboxNoContent) IsServerError() bool

IsServerError returns true when this activitypub repository inbox no content response has a 5xx status code

func (*ActivitypubRepositoryInboxNoContent) IsSuccess

IsSuccess returns true when this activitypub repository inbox no content response has a 2xx status code

func (*ActivitypubRepositoryInboxNoContent) String

type ActivitypubRepositoryInboxParams

type ActivitypubRepositoryInboxParams struct {

	// Body.
	Body models.ForgeLike

	/* RepositoryID.

	   repository ID of the repo
	*/
	RepositoryID int64

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

ActivitypubRepositoryInboxParams contains all the parameters to send to the API endpoint

for the activitypub repository inbox operation.

Typically these are written to a http.Request.

func NewActivitypubRepositoryInboxParams

func NewActivitypubRepositoryInboxParams() *ActivitypubRepositoryInboxParams

NewActivitypubRepositoryInboxParams creates a new ActivitypubRepositoryInboxParams 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 NewActivitypubRepositoryInboxParamsWithContext

func NewActivitypubRepositoryInboxParamsWithContext(ctx context.Context) *ActivitypubRepositoryInboxParams

NewActivitypubRepositoryInboxParamsWithContext creates a new ActivitypubRepositoryInboxParams object with the ability to set a context for a request.

func NewActivitypubRepositoryInboxParamsWithHTTPClient

func NewActivitypubRepositoryInboxParamsWithHTTPClient(client *http.Client) *ActivitypubRepositoryInboxParams

NewActivitypubRepositoryInboxParamsWithHTTPClient creates a new ActivitypubRepositoryInboxParams object with the ability to set a custom HTTPClient for a request.

func NewActivitypubRepositoryInboxParamsWithTimeout

func NewActivitypubRepositoryInboxParamsWithTimeout(timeout time.Duration) *ActivitypubRepositoryInboxParams

NewActivitypubRepositoryInboxParamsWithTimeout creates a new ActivitypubRepositoryInboxParams object with the ability to set a timeout on a request.

func (*ActivitypubRepositoryInboxParams) SetBody

SetBody adds the body to the activitypub repository inbox params

func (*ActivitypubRepositoryInboxParams) SetContext

SetContext adds the context to the activitypub repository inbox params

func (*ActivitypubRepositoryInboxParams) SetDefaults

func (o *ActivitypubRepositoryInboxParams) SetDefaults()

SetDefaults hydrates default values in the activitypub repository inbox params (not the query body).

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

func (*ActivitypubRepositoryInboxParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the activitypub repository inbox params

func (*ActivitypubRepositoryInboxParams) SetRepositoryID

func (o *ActivitypubRepositoryInboxParams) SetRepositoryID(repositoryID int64)

SetRepositoryID adds the repositoryId to the activitypub repository inbox params

func (*ActivitypubRepositoryInboxParams) SetTimeout

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

SetTimeout adds the timeout to the activitypub repository inbox params

func (*ActivitypubRepositoryInboxParams) WithBody

WithBody adds the body to the activitypub repository inbox params

func (*ActivitypubRepositoryInboxParams) WithContext

WithContext adds the context to the activitypub repository inbox params

func (*ActivitypubRepositoryInboxParams) WithDefaults

WithDefaults hydrates default values in the activitypub repository inbox params (not the query body).

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

func (*ActivitypubRepositoryInboxParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the activitypub repository inbox params

func (*ActivitypubRepositoryInboxParams) WithRepositoryID

func (o *ActivitypubRepositoryInboxParams) WithRepositoryID(repositoryID int64) *ActivitypubRepositoryInboxParams

WithRepositoryID adds the repositoryID to the activitypub repository inbox params

func (*ActivitypubRepositoryInboxParams) WithTimeout

WithTimeout adds the timeout to the activitypub repository inbox params

func (*ActivitypubRepositoryInboxParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ActivitypubRepositoryInboxReader

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

ActivitypubRepositoryInboxReader is a Reader for the ActivitypubRepositoryInbox structure.

func (*ActivitypubRepositoryInboxReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ActivitypubRepositoryOK

type ActivitypubRepositoryOK struct {
	Payload *models.ActivityPub
}

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

ActivityPub

func NewActivitypubRepositoryOK

func NewActivitypubRepositoryOK() *ActivitypubRepositoryOK

NewActivitypubRepositoryOK creates a ActivitypubRepositoryOK with default headers values

func (*ActivitypubRepositoryOK) Code

func (o *ActivitypubRepositoryOK) Code() int

Code gets the status code for the activitypub repository o k response

func (*ActivitypubRepositoryOK) Error

func (o *ActivitypubRepositoryOK) Error() string

func (*ActivitypubRepositoryOK) GetPayload

func (o *ActivitypubRepositoryOK) GetPayload() *models.ActivityPub

func (*ActivitypubRepositoryOK) IsClientError

func (o *ActivitypubRepositoryOK) IsClientError() bool

IsClientError returns true when this activitypub repository o k response has a 4xx status code

func (*ActivitypubRepositoryOK) IsCode

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

IsCode returns true when this activitypub repository o k response a status code equal to that given

func (*ActivitypubRepositoryOK) IsRedirect

func (o *ActivitypubRepositoryOK) IsRedirect() bool

IsRedirect returns true when this activitypub repository o k response has a 3xx status code

func (*ActivitypubRepositoryOK) IsServerError

func (o *ActivitypubRepositoryOK) IsServerError() bool

IsServerError returns true when this activitypub repository o k response has a 5xx status code

func (*ActivitypubRepositoryOK) IsSuccess

func (o *ActivitypubRepositoryOK) IsSuccess() bool

IsSuccess returns true when this activitypub repository o k response has a 2xx status code

func (*ActivitypubRepositoryOK) String

func (o *ActivitypubRepositoryOK) String() string

type ActivitypubRepositoryParams

type ActivitypubRepositoryParams struct {

	/* RepositoryID.

	   repository ID of the repo
	*/
	RepositoryID int64

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

ActivitypubRepositoryParams contains all the parameters to send to the API endpoint

for the activitypub repository operation.

Typically these are written to a http.Request.

func NewActivitypubRepositoryParams

func NewActivitypubRepositoryParams() *ActivitypubRepositoryParams

NewActivitypubRepositoryParams creates a new ActivitypubRepositoryParams 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 NewActivitypubRepositoryParamsWithContext

func NewActivitypubRepositoryParamsWithContext(ctx context.Context) *ActivitypubRepositoryParams

NewActivitypubRepositoryParamsWithContext creates a new ActivitypubRepositoryParams object with the ability to set a context for a request.

func NewActivitypubRepositoryParamsWithHTTPClient

func NewActivitypubRepositoryParamsWithHTTPClient(client *http.Client) *ActivitypubRepositoryParams

NewActivitypubRepositoryParamsWithHTTPClient creates a new ActivitypubRepositoryParams object with the ability to set a custom HTTPClient for a request.

func NewActivitypubRepositoryParamsWithTimeout

func NewActivitypubRepositoryParamsWithTimeout(timeout time.Duration) *ActivitypubRepositoryParams

NewActivitypubRepositoryParamsWithTimeout creates a new ActivitypubRepositoryParams object with the ability to set a timeout on a request.

func (*ActivitypubRepositoryParams) SetContext

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

SetContext adds the context to the activitypub repository params

func (*ActivitypubRepositoryParams) SetDefaults

func (o *ActivitypubRepositoryParams) SetDefaults()

SetDefaults hydrates default values in the activitypub repository params (not the query body).

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

func (*ActivitypubRepositoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the activitypub repository params

func (*ActivitypubRepositoryParams) SetRepositoryID

func (o *ActivitypubRepositoryParams) SetRepositoryID(repositoryID int64)

SetRepositoryID adds the repositoryId to the activitypub repository params

func (*ActivitypubRepositoryParams) SetTimeout

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

SetTimeout adds the timeout to the activitypub repository params

func (*ActivitypubRepositoryParams) WithContext

WithContext adds the context to the activitypub repository params

func (*ActivitypubRepositoryParams) WithDefaults

WithDefaults hydrates default values in the activitypub repository params (not the query body).

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

func (*ActivitypubRepositoryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the activitypub repository params

func (*ActivitypubRepositoryParams) WithRepositoryID

func (o *ActivitypubRepositoryParams) WithRepositoryID(repositoryID int64) *ActivitypubRepositoryParams

WithRepositoryID adds the repositoryID to the activitypub repository params

func (*ActivitypubRepositoryParams) WithTimeout

WithTimeout adds the timeout to the activitypub repository params

func (*ActivitypubRepositoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ActivitypubRepositoryReader

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

ActivitypubRepositoryReader is a Reader for the ActivitypubRepository structure.

func (*ActivitypubRepositoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for activitypub API

func (*Client) ActivitypubInstanceActor

func (a *Client) ActivitypubInstanceActor(params *ActivitypubInstanceActorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivitypubInstanceActorOK, error)

ActivitypubInstanceActor returns the instance s actor

func (*Client) ActivitypubInstanceActorInbox

ActivitypubInstanceActorInbox sends to the inbox

func (*Client) ActivitypubPerson

func (a *Client) ActivitypubPerson(params *ActivitypubPersonParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivitypubPersonOK, error)

ActivitypubPerson returns the person actor for a user

func (*Client) ActivitypubPersonInbox

func (a *Client) ActivitypubPersonInbox(params *ActivitypubPersonInboxParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivitypubPersonInboxNoContent, error)

ActivitypubPersonInbox sends to the inbox

func (*Client) ActivitypubRepository

func (a *Client) ActivitypubRepository(params *ActivitypubRepositoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivitypubRepositoryOK, error)

ActivitypubRepository returns the repository actor for a repo

func (*Client) ActivitypubRepositoryInbox

ActivitypubRepositoryInbox sends to the inbox

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 WithContentType

func WithContentType(mime string) ClientOption

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

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

type ClientService

type ClientService interface {
	ActivitypubInstanceActor(params *ActivitypubInstanceActorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivitypubInstanceActorOK, error)

	ActivitypubInstanceActorInbox(params *ActivitypubInstanceActorInboxParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivitypubInstanceActorInboxNoContent, error)

	ActivitypubPerson(params *ActivitypubPersonParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivitypubPersonOK, error)

	ActivitypubPersonInbox(params *ActivitypubPersonInboxParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivitypubPersonInboxNoContent, error)

	ActivitypubRepository(params *ActivitypubRepositoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivitypubRepositoryOK, error)

	ActivitypubRepositoryInbox(params *ActivitypubRepositoryInboxParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivitypubRepositoryInboxNoContent, 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 activitypub API client.

func NewClientWithBasicAuth

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

New creates a new activitypub 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 activitypub 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
⌂ 换网址