Documentation
¶
Index ¶
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeTextPlain(r *runtime.ClientOperation)
- type ActivitypubInstanceActorInboxNoContent
- func (o *ActivitypubInstanceActorInboxNoContent) Code() int
- func (o *ActivitypubInstanceActorInboxNoContent) Error() string
- func (o *ActivitypubInstanceActorInboxNoContent) IsClientError() bool
- func (o *ActivitypubInstanceActorInboxNoContent) IsCode(code int) bool
- func (o *ActivitypubInstanceActorInboxNoContent) IsRedirect() bool
- func (o *ActivitypubInstanceActorInboxNoContent) IsServerError() bool
- func (o *ActivitypubInstanceActorInboxNoContent) IsSuccess() bool
- func (o *ActivitypubInstanceActorInboxNoContent) String() string
- type ActivitypubInstanceActorInboxParams
- func NewActivitypubInstanceActorInboxParams() *ActivitypubInstanceActorInboxParams
- func NewActivitypubInstanceActorInboxParamsWithContext(ctx context.Context) *ActivitypubInstanceActorInboxParams
- func NewActivitypubInstanceActorInboxParamsWithHTTPClient(client *http.Client) *ActivitypubInstanceActorInboxParams
- func NewActivitypubInstanceActorInboxParamsWithTimeout(timeout time.Duration) *ActivitypubInstanceActorInboxParams
- func (o *ActivitypubInstanceActorInboxParams) SetContext(ctx context.Context)
- func (o *ActivitypubInstanceActorInboxParams) SetDefaults()
- func (o *ActivitypubInstanceActorInboxParams) SetHTTPClient(client *http.Client)
- func (o *ActivitypubInstanceActorInboxParams) SetTimeout(timeout time.Duration)
- func (o *ActivitypubInstanceActorInboxParams) WithContext(ctx context.Context) *ActivitypubInstanceActorInboxParams
- func (o *ActivitypubInstanceActorInboxParams) WithDefaults() *ActivitypubInstanceActorInboxParams
- func (o *ActivitypubInstanceActorInboxParams) WithHTTPClient(client *http.Client) *ActivitypubInstanceActorInboxParams
- func (o *ActivitypubInstanceActorInboxParams) WithTimeout(timeout time.Duration) *ActivitypubInstanceActorInboxParams
- func (o *ActivitypubInstanceActorInboxParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ActivitypubInstanceActorInboxReader
- type ActivitypubInstanceActorOK
- func (o *ActivitypubInstanceActorOK) Code() int
- func (o *ActivitypubInstanceActorOK) Error() string
- func (o *ActivitypubInstanceActorOK) GetPayload() *models.ActivityPub
- func (o *ActivitypubInstanceActorOK) IsClientError() bool
- func (o *ActivitypubInstanceActorOK) IsCode(code int) bool
- func (o *ActivitypubInstanceActorOK) IsRedirect() bool
- func (o *ActivitypubInstanceActorOK) IsServerError() bool
- func (o *ActivitypubInstanceActorOK) IsSuccess() bool
- func (o *ActivitypubInstanceActorOK) String() string
- type ActivitypubInstanceActorParams
- func NewActivitypubInstanceActorParams() *ActivitypubInstanceActorParams
- func NewActivitypubInstanceActorParamsWithContext(ctx context.Context) *ActivitypubInstanceActorParams
- func NewActivitypubInstanceActorParamsWithHTTPClient(client *http.Client) *ActivitypubInstanceActorParams
- func NewActivitypubInstanceActorParamsWithTimeout(timeout time.Duration) *ActivitypubInstanceActorParams
- func (o *ActivitypubInstanceActorParams) SetContext(ctx context.Context)
- func (o *ActivitypubInstanceActorParams) SetDefaults()
- func (o *ActivitypubInstanceActorParams) SetHTTPClient(client *http.Client)
- func (o *ActivitypubInstanceActorParams) SetTimeout(timeout time.Duration)
- func (o *ActivitypubInstanceActorParams) WithContext(ctx context.Context) *ActivitypubInstanceActorParams
- func (o *ActivitypubInstanceActorParams) WithDefaults() *ActivitypubInstanceActorParams
- func (o *ActivitypubInstanceActorParams) WithHTTPClient(client *http.Client) *ActivitypubInstanceActorParams
- func (o *ActivitypubInstanceActorParams) WithTimeout(timeout time.Duration) *ActivitypubInstanceActorParams
- func (o *ActivitypubInstanceActorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ActivitypubInstanceActorReader
- type ActivitypubPersonInboxNoContent
- func (o *ActivitypubPersonInboxNoContent) Code() int
- func (o *ActivitypubPersonInboxNoContent) Error() string
- func (o *ActivitypubPersonInboxNoContent) IsClientError() bool
- func (o *ActivitypubPersonInboxNoContent) IsCode(code int) bool
- func (o *ActivitypubPersonInboxNoContent) IsRedirect() bool
- func (o *ActivitypubPersonInboxNoContent) IsServerError() bool
- func (o *ActivitypubPersonInboxNoContent) IsSuccess() bool
- func (o *ActivitypubPersonInboxNoContent) String() string
- type ActivitypubPersonInboxParams
- func NewActivitypubPersonInboxParams() *ActivitypubPersonInboxParams
- func NewActivitypubPersonInboxParamsWithContext(ctx context.Context) *ActivitypubPersonInboxParams
- func NewActivitypubPersonInboxParamsWithHTTPClient(client *http.Client) *ActivitypubPersonInboxParams
- func NewActivitypubPersonInboxParamsWithTimeout(timeout time.Duration) *ActivitypubPersonInboxParams
- func (o *ActivitypubPersonInboxParams) SetContext(ctx context.Context)
- func (o *ActivitypubPersonInboxParams) SetDefaults()
- func (o *ActivitypubPersonInboxParams) SetHTTPClient(client *http.Client)
- func (o *ActivitypubPersonInboxParams) SetTimeout(timeout time.Duration)
- func (o *ActivitypubPersonInboxParams) SetUserID(userID int64)
- func (o *ActivitypubPersonInboxParams) WithContext(ctx context.Context) *ActivitypubPersonInboxParams
- func (o *ActivitypubPersonInboxParams) WithDefaults() *ActivitypubPersonInboxParams
- func (o *ActivitypubPersonInboxParams) WithHTTPClient(client *http.Client) *ActivitypubPersonInboxParams
- func (o *ActivitypubPersonInboxParams) WithTimeout(timeout time.Duration) *ActivitypubPersonInboxParams
- func (o *ActivitypubPersonInboxParams) WithUserID(userID int64) *ActivitypubPersonInboxParams
- func (o *ActivitypubPersonInboxParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ActivitypubPersonInboxReader
- type ActivitypubPersonOK
- func (o *ActivitypubPersonOK) Code() int
- func (o *ActivitypubPersonOK) Error() string
- func (o *ActivitypubPersonOK) GetPayload() *models.ActivityPub
- func (o *ActivitypubPersonOK) IsClientError() bool
- func (o *ActivitypubPersonOK) IsCode(code int) bool
- func (o *ActivitypubPersonOK) IsRedirect() bool
- func (o *ActivitypubPersonOK) IsServerError() bool
- func (o *ActivitypubPersonOK) IsSuccess() bool
- func (o *ActivitypubPersonOK) String() string
- type ActivitypubPersonParams
- func NewActivitypubPersonParams() *ActivitypubPersonParams
- func NewActivitypubPersonParamsWithContext(ctx context.Context) *ActivitypubPersonParams
- func NewActivitypubPersonParamsWithHTTPClient(client *http.Client) *ActivitypubPersonParams
- func NewActivitypubPersonParamsWithTimeout(timeout time.Duration) *ActivitypubPersonParams
- func (o *ActivitypubPersonParams) SetContext(ctx context.Context)
- func (o *ActivitypubPersonParams) SetDefaults()
- func (o *ActivitypubPersonParams) SetHTTPClient(client *http.Client)
- func (o *ActivitypubPersonParams) SetTimeout(timeout time.Duration)
- func (o *ActivitypubPersonParams) SetUserID(userID int64)
- func (o *ActivitypubPersonParams) WithContext(ctx context.Context) *ActivitypubPersonParams
- func (o *ActivitypubPersonParams) WithDefaults() *ActivitypubPersonParams
- func (o *ActivitypubPersonParams) WithHTTPClient(client *http.Client) *ActivitypubPersonParams
- func (o *ActivitypubPersonParams) WithTimeout(timeout time.Duration) *ActivitypubPersonParams
- func (o *ActivitypubPersonParams) WithUserID(userID int64) *ActivitypubPersonParams
- func (o *ActivitypubPersonParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ActivitypubPersonReader
- type ActivitypubRepositoryInboxNoContent
- func (o *ActivitypubRepositoryInboxNoContent) Code() int
- func (o *ActivitypubRepositoryInboxNoContent) Error() string
- func (o *ActivitypubRepositoryInboxNoContent) IsClientError() bool
- func (o *ActivitypubRepositoryInboxNoContent) IsCode(code int) bool
- func (o *ActivitypubRepositoryInboxNoContent) IsRedirect() bool
- func (o *ActivitypubRepositoryInboxNoContent) IsServerError() bool
- func (o *ActivitypubRepositoryInboxNoContent) IsSuccess() bool
- func (o *ActivitypubRepositoryInboxNoContent) String() string
- type ActivitypubRepositoryInboxParams
- func NewActivitypubRepositoryInboxParams() *ActivitypubRepositoryInboxParams
- func NewActivitypubRepositoryInboxParamsWithContext(ctx context.Context) *ActivitypubRepositoryInboxParams
- func NewActivitypubRepositoryInboxParamsWithHTTPClient(client *http.Client) *ActivitypubRepositoryInboxParams
- func NewActivitypubRepositoryInboxParamsWithTimeout(timeout time.Duration) *ActivitypubRepositoryInboxParams
- func (o *ActivitypubRepositoryInboxParams) SetBody(body models.ForgeLike)
- func (o *ActivitypubRepositoryInboxParams) SetContext(ctx context.Context)
- func (o *ActivitypubRepositoryInboxParams) SetDefaults()
- func (o *ActivitypubRepositoryInboxParams) SetHTTPClient(client *http.Client)
- func (o *ActivitypubRepositoryInboxParams) SetRepositoryID(repositoryID int64)
- func (o *ActivitypubRepositoryInboxParams) SetTimeout(timeout time.Duration)
- func (o *ActivitypubRepositoryInboxParams) WithBody(body models.ForgeLike) *ActivitypubRepositoryInboxParams
- func (o *ActivitypubRepositoryInboxParams) WithContext(ctx context.Context) *ActivitypubRepositoryInboxParams
- func (o *ActivitypubRepositoryInboxParams) WithDefaults() *ActivitypubRepositoryInboxParams
- func (o *ActivitypubRepositoryInboxParams) WithHTTPClient(client *http.Client) *ActivitypubRepositoryInboxParams
- func (o *ActivitypubRepositoryInboxParams) WithRepositoryID(repositoryID int64) *ActivitypubRepositoryInboxParams
- func (o *ActivitypubRepositoryInboxParams) WithTimeout(timeout time.Duration) *ActivitypubRepositoryInboxParams
- func (o *ActivitypubRepositoryInboxParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ActivitypubRepositoryInboxReader
- type ActivitypubRepositoryOK
- func (o *ActivitypubRepositoryOK) Code() int
- func (o *ActivitypubRepositoryOK) Error() string
- func (o *ActivitypubRepositoryOK) GetPayload() *models.ActivityPub
- func (o *ActivitypubRepositoryOK) IsClientError() bool
- func (o *ActivitypubRepositoryOK) IsCode(code int) bool
- func (o *ActivitypubRepositoryOK) IsRedirect() bool
- func (o *ActivitypubRepositoryOK) IsServerError() bool
- func (o *ActivitypubRepositoryOK) IsSuccess() bool
- func (o *ActivitypubRepositoryOK) String() string
- type ActivitypubRepositoryParams
- func NewActivitypubRepositoryParams() *ActivitypubRepositoryParams
- func NewActivitypubRepositoryParamsWithContext(ctx context.Context) *ActivitypubRepositoryParams
- func NewActivitypubRepositoryParamsWithHTTPClient(client *http.Client) *ActivitypubRepositoryParams
- func NewActivitypubRepositoryParamsWithTimeout(timeout time.Duration) *ActivitypubRepositoryParams
- func (o *ActivitypubRepositoryParams) SetContext(ctx context.Context)
- func (o *ActivitypubRepositoryParams) SetDefaults()
- func (o *ActivitypubRepositoryParams) SetHTTPClient(client *http.Client)
- func (o *ActivitypubRepositoryParams) SetRepositoryID(repositoryID int64)
- func (o *ActivitypubRepositoryParams) SetTimeout(timeout time.Duration)
- func (o *ActivitypubRepositoryParams) WithContext(ctx context.Context) *ActivitypubRepositoryParams
- func (o *ActivitypubRepositoryParams) WithDefaults() *ActivitypubRepositoryParams
- func (o *ActivitypubRepositoryParams) WithHTTPClient(client *http.Client) *ActivitypubRepositoryParams
- func (o *ActivitypubRepositoryParams) WithRepositoryID(repositoryID int64) *ActivitypubRepositoryParams
- func (o *ActivitypubRepositoryParams) WithTimeout(timeout time.Duration) *ActivitypubRepositoryParams
- func (o *ActivitypubRepositoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ActivitypubRepositoryReader
- type Client
- func (a *Client) ActivitypubInstanceActor(params *ActivitypubInstanceActorParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ActivitypubInstanceActorOK, error)
- func (a *Client) ActivitypubInstanceActorInbox(params *ActivitypubInstanceActorInboxParams, ...) (*ActivitypubInstanceActorInboxNoContent, error)
- func (a *Client) ActivitypubPerson(params *ActivitypubPersonParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ActivitypubPersonOK, error)
- func (a *Client) ActivitypubPersonInbox(params *ActivitypubPersonInboxParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ActivitypubPersonInboxNoContent, error)
- func (a *Client) ActivitypubRepository(params *ActivitypubRepositoryParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ActivitypubRepositoryOK, error)
- func (a *Client) ActivitypubRepositoryInbox(params *ActivitypubRepositoryInboxParams, ...) (*ActivitypubRepositoryInboxNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
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 ¶
func (o *ActivitypubInstanceActorInboxNoContent) Code() int
Code gets the status code for the activitypub instance actor inbox no content response
func (*ActivitypubInstanceActorInboxNoContent) Error ¶
func (o *ActivitypubInstanceActorInboxNoContent) Error() string
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 ¶
func (o *ActivitypubInstanceActorInboxNoContent) IsCode(code int) bool
IsCode returns true when this activitypub instance actor inbox no content response a status code equal to that given
func (*ActivitypubInstanceActorInboxNoContent) IsRedirect ¶
func (o *ActivitypubInstanceActorInboxNoContent) IsRedirect() bool
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 ¶
func (o *ActivitypubInstanceActorInboxNoContent) IsSuccess() bool
IsSuccess returns true when this activitypub instance actor inbox no content response has a 2xx status code
func (*ActivitypubInstanceActorInboxNoContent) String ¶
func (o *ActivitypubInstanceActorInboxNoContent) String() 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 ¶
func (o *ActivitypubInstanceActorInboxParams) SetContext(ctx context.Context)
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 ¶
func (o *ActivitypubInstanceActorInboxParams) WithContext(ctx context.Context) *ActivitypubInstanceActorInboxParams
WithContext adds the context to the activitypub instance actor inbox params
func (*ActivitypubInstanceActorInboxParams) WithDefaults ¶
func (o *ActivitypubInstanceActorInboxParams) WithDefaults() *ActivitypubInstanceActorInboxParams
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 ¶
func (o *ActivitypubInstanceActorInboxParams) WithHTTPClient(client *http.Client) *ActivitypubInstanceActorInboxParams
WithHTTPClient adds the HTTPClient to the activitypub instance actor inbox params
func (*ActivitypubInstanceActorInboxParams) WithTimeout ¶
func (o *ActivitypubInstanceActorInboxParams) WithTimeout(timeout time.Duration) *ActivitypubInstanceActorInboxParams
WithTimeout adds the timeout to the activitypub instance actor inbox params
func (*ActivitypubInstanceActorInboxParams) WriteToRequest ¶
func (o *ActivitypubInstanceActorInboxParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *ActivitypubInstanceActorOK) Error() string
func (*ActivitypubInstanceActorOK) GetPayload ¶
func (o *ActivitypubInstanceActorOK) GetPayload() *models.ActivityPub
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 ¶
func (o *ActivitypubInstanceActorParams) WithContext(ctx context.Context) *ActivitypubInstanceActorParams
WithContext adds the context to the activitypub instance actor params
func (*ActivitypubInstanceActorParams) WithDefaults ¶
func (o *ActivitypubInstanceActorParams) WithDefaults() *ActivitypubInstanceActorParams
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 ¶
func (o *ActivitypubInstanceActorParams) WithHTTPClient(client *http.Client) *ActivitypubInstanceActorParams
WithHTTPClient adds the HTTPClient to the activitypub instance actor params
func (*ActivitypubInstanceActorParams) WithTimeout ¶
func (o *ActivitypubInstanceActorParams) WithTimeout(timeout time.Duration) *ActivitypubInstanceActorParams
WithTimeout adds the timeout to the activitypub instance actor params
func (*ActivitypubInstanceActorParams) WriteToRequest ¶
func (o *ActivitypubInstanceActorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ActivitypubPersonInboxNoContent) Code() int
Code gets the status code for the activitypub person inbox no content response
func (*ActivitypubPersonInboxNoContent) Error ¶
func (o *ActivitypubPersonInboxNoContent) Error() string
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 ¶
func (o *ActivitypubPersonInboxNoContent) String() 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 ¶
func (o *ActivitypubPersonInboxParams) WithContext(ctx context.Context) *ActivitypubPersonInboxParams
WithContext adds the context to the activitypub person inbox params
func (*ActivitypubPersonInboxParams) WithDefaults ¶
func (o *ActivitypubPersonInboxParams) WithDefaults() *ActivitypubPersonInboxParams
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 ¶
func (o *ActivitypubPersonInboxParams) WithHTTPClient(client *http.Client) *ActivitypubPersonInboxParams
WithHTTPClient adds the HTTPClient to the activitypub person inbox params
func (*ActivitypubPersonInboxParams) WithTimeout ¶
func (o *ActivitypubPersonInboxParams) WithTimeout(timeout time.Duration) *ActivitypubPersonInboxParams
WithTimeout adds the timeout to the activitypub person inbox params
func (*ActivitypubPersonInboxParams) WithUserID ¶
func (o *ActivitypubPersonInboxParams) WithUserID(userID int64) *ActivitypubPersonInboxParams
WithUserID adds the userID to the activitypub person inbox params
func (*ActivitypubPersonInboxParams) WriteToRequest ¶
func (o *ActivitypubPersonInboxParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ActivitypubPersonParams) WithContext(ctx context.Context) *ActivitypubPersonParams
WithContext adds the context to the activitypub person params
func (*ActivitypubPersonParams) WithDefaults ¶
func (o *ActivitypubPersonParams) WithDefaults() *ActivitypubPersonParams
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 ¶
func (o *ActivitypubPersonParams) WithTimeout(timeout time.Duration) *ActivitypubPersonParams
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 ¶
func (o *ActivitypubPersonParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ActivitypubRepositoryInboxNoContent) Code() int
Code gets the status code for the activitypub repository inbox no content response
func (*ActivitypubRepositoryInboxNoContent) Error ¶
func (o *ActivitypubRepositoryInboxNoContent) Error() string
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 ¶
func (o *ActivitypubRepositoryInboxNoContent) IsCode(code int) bool
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 ¶
func (o *ActivitypubRepositoryInboxNoContent) IsSuccess() bool
IsSuccess returns true when this activitypub repository inbox no content response has a 2xx status code
func (*ActivitypubRepositoryInboxNoContent) String ¶
func (o *ActivitypubRepositoryInboxNoContent) String() 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 ¶
func (o *ActivitypubRepositoryInboxParams) SetBody(body models.ForgeLike)
SetBody adds the body to the activitypub repository inbox params
func (*ActivitypubRepositoryInboxParams) SetContext ¶
func (o *ActivitypubRepositoryInboxParams) SetContext(ctx context.Context)
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 ¶
func (o *ActivitypubRepositoryInboxParams) WithBody(body models.ForgeLike) *ActivitypubRepositoryInboxParams
WithBody adds the body to the activitypub repository inbox params
func (*ActivitypubRepositoryInboxParams) WithContext ¶
func (o *ActivitypubRepositoryInboxParams) WithContext(ctx context.Context) *ActivitypubRepositoryInboxParams
WithContext adds the context to the activitypub repository inbox params
func (*ActivitypubRepositoryInboxParams) WithDefaults ¶
func (o *ActivitypubRepositoryInboxParams) WithDefaults() *ActivitypubRepositoryInboxParams
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 ¶
func (o *ActivitypubRepositoryInboxParams) WithHTTPClient(client *http.Client) *ActivitypubRepositoryInboxParams
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 ¶
func (o *ActivitypubRepositoryInboxParams) WithTimeout(timeout time.Duration) *ActivitypubRepositoryInboxParams
WithTimeout adds the timeout to the activitypub repository inbox params
func (*ActivitypubRepositoryInboxParams) WriteToRequest ¶
func (o *ActivitypubRepositoryInboxParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ActivitypubRepositoryParams) WithContext(ctx context.Context) *ActivitypubRepositoryParams
WithContext adds the context to the activitypub repository params
func (*ActivitypubRepositoryParams) WithDefaults ¶
func (o *ActivitypubRepositoryParams) WithDefaults() *ActivitypubRepositoryParams
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 ¶
func (o *ActivitypubRepositoryParams) WithHTTPClient(client *http.Client) *ActivitypubRepositoryParams
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 ¶
func (o *ActivitypubRepositoryParams) WithTimeout(timeout time.Duration) *ActivitypubRepositoryParams
WithTimeout adds the timeout to the activitypub repository params
func (*ActivitypubRepositoryParams) WriteToRequest ¶
func (o *ActivitypubRepositoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (a *Client) ActivitypubInstanceActorInbox(params *ActivitypubInstanceActorInboxParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivitypubInstanceActorInboxNoContent, error)
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 ¶
func (a *Client) ActivitypubRepositoryInbox(params *ActivitypubRepositoryInboxParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivitypubRepositoryInboxNoContent, error)
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.
Source Files
¶
- activitypub_client.go
- activitypub_instance_actor_inbox_parameters.go
- activitypub_instance_actor_inbox_responses.go
- activitypub_instance_actor_parameters.go
- activitypub_instance_actor_responses.go
- activitypub_person_inbox_parameters.go
- activitypub_person_inbox_responses.go
- activitypub_person_parameters.go
- activitypub_person_responses.go
- activitypub_repository_inbox_parameters.go
- activitypub_repository_inbox_responses.go
- activitypub_repository_parameters.go
- activitypub_repository_responses.go