import_export

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

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

func WithAcceptTextCsv

func WithAcceptTextCsv(r *runtime.ClientOperation)

WithAcceptTextCsv sets the Accept header to "text/csv".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

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

func WithContentTypeMultipartFormData

func WithContentTypeMultipartFormData(r *runtime.ClientOperation)

WithContentTypeMultipartFormData sets the Content-Type header to "multipart/form-data".

Types

type Client

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

Client for import export API

func (*Client) ExportBlocks

func (a *Client) ExportBlocks(params *ExportBlocksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExportBlocksOK, error)

ExportBlocks exports a c s v file of accounts that you block

func (*Client) ExportFollowers

func (a *Client) ExportFollowers(params *ExportFollowersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExportFollowersOK, error)

ExportFollowers exports a c s v file of accounts that follow you

func (*Client) ExportFollowing

func (a *Client) ExportFollowing(params *ExportFollowingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExportFollowingOK, error)

ExportFollowing exports a c s v file of accounts that you follow

func (*Client) ExportLists

func (a *Client) ExportLists(params *ExportListsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExportListsOK, error)

ExportLists exports a c s v file of lists created by you

func (*Client) ExportMutes

func (a *Client) ExportMutes(params *ExportMutesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExportMutesOK, error)

ExportMutes exports a c s v file of accounts that you mute

func (*Client) ExportStats

func (a *Client) ExportStats(params *ExportStatsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExportStatsOK, error)

ExportStats returns informational stats on the number of items that can be exported for requesting account

func (*Client) ImportData

func (a *Client) ImportData(params *ImportDataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ImportDataAccepted, error)
ImportData uploads some c s v formatted data to your account

This can be used to migrate data from a Mastodon-compatible CSV file to a GoToSocial account.

Uploaded data will be processed asynchronously, and not all entries may be processed depending on domain blocks, user-level blocks, network availability of referenced accounts and statuses, etc.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

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

func WithAccept

func WithAccept(mime string) ClientOption

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

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

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 {
	ExportBlocks(params *ExportBlocksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExportBlocksOK, error)

	ExportFollowers(params *ExportFollowersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExportFollowersOK, error)

	ExportFollowing(params *ExportFollowingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExportFollowingOK, error)

	ExportLists(params *ExportListsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExportListsOK, error)

	ExportMutes(params *ExportMutesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExportMutesOK, error)

	ExportStats(params *ExportStatsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ExportStatsOK, error)

	ImportData(params *ImportDataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ImportDataAccepted, 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 import export API client.

func NewClientWithBasicAuth

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

New creates a new import export 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 import export API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type ExportBlocksInternalServerError

type ExportBlocksInternalServerError struct {
}

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

internal server error

func NewExportBlocksInternalServerError

func NewExportBlocksInternalServerError() *ExportBlocksInternalServerError

NewExportBlocksInternalServerError creates a ExportBlocksInternalServerError with default headers values

func (*ExportBlocksInternalServerError) Code

Code gets the status code for the export blocks internal server error response

func (*ExportBlocksInternalServerError) Error

func (*ExportBlocksInternalServerError) IsClientError

func (o *ExportBlocksInternalServerError) IsClientError() bool

IsClientError returns true when this export blocks internal server error response has a 4xx status code

func (*ExportBlocksInternalServerError) IsCode

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

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

func (*ExportBlocksInternalServerError) IsRedirect

func (o *ExportBlocksInternalServerError) IsRedirect() bool

IsRedirect returns true when this export blocks internal server error response has a 3xx status code

func (*ExportBlocksInternalServerError) IsServerError

func (o *ExportBlocksInternalServerError) IsServerError() bool

IsServerError returns true when this export blocks internal server error response has a 5xx status code

func (*ExportBlocksInternalServerError) IsSuccess

func (o *ExportBlocksInternalServerError) IsSuccess() bool

IsSuccess returns true when this export blocks internal server error response has a 2xx status code

func (*ExportBlocksInternalServerError) String

type ExportBlocksNotAcceptable

type ExportBlocksNotAcceptable struct {
}

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

not acceptable

func NewExportBlocksNotAcceptable

func NewExportBlocksNotAcceptable() *ExportBlocksNotAcceptable

NewExportBlocksNotAcceptable creates a ExportBlocksNotAcceptable with default headers values

func (*ExportBlocksNotAcceptable) Code

func (o *ExportBlocksNotAcceptable) Code() int

Code gets the status code for the export blocks not acceptable response

func (*ExportBlocksNotAcceptable) Error

func (o *ExportBlocksNotAcceptable) Error() string

func (*ExportBlocksNotAcceptable) IsClientError

func (o *ExportBlocksNotAcceptable) IsClientError() bool

IsClientError returns true when this export blocks not acceptable response has a 4xx status code

func (*ExportBlocksNotAcceptable) IsCode

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

IsCode returns true when this export blocks not acceptable response a status code equal to that given

func (*ExportBlocksNotAcceptable) IsRedirect

func (o *ExportBlocksNotAcceptable) IsRedirect() bool

IsRedirect returns true when this export blocks not acceptable response has a 3xx status code

func (*ExportBlocksNotAcceptable) IsServerError

func (o *ExportBlocksNotAcceptable) IsServerError() bool

IsServerError returns true when this export blocks not acceptable response has a 5xx status code

func (*ExportBlocksNotAcceptable) IsSuccess

func (o *ExportBlocksNotAcceptable) IsSuccess() bool

IsSuccess returns true when this export blocks not acceptable response has a 2xx status code

func (*ExportBlocksNotAcceptable) String

func (o *ExportBlocksNotAcceptable) String() string

type ExportBlocksOK

type ExportBlocksOK struct {
}

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

CSV file of accounts that you block.

func NewExportBlocksOK

func NewExportBlocksOK() *ExportBlocksOK

NewExportBlocksOK creates a ExportBlocksOK with default headers values

func (*ExportBlocksOK) Code

func (o *ExportBlocksOK) Code() int

Code gets the status code for the export blocks o k response

func (*ExportBlocksOK) Error

func (o *ExportBlocksOK) Error() string

func (*ExportBlocksOK) IsClientError

func (o *ExportBlocksOK) IsClientError() bool

IsClientError returns true when this export blocks o k response has a 4xx status code

func (*ExportBlocksOK) IsCode

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

IsCode returns true when this export blocks o k response a status code equal to that given

func (*ExportBlocksOK) IsRedirect

func (o *ExportBlocksOK) IsRedirect() bool

IsRedirect returns true when this export blocks o k response has a 3xx status code

func (*ExportBlocksOK) IsServerError

func (o *ExportBlocksOK) IsServerError() bool

IsServerError returns true when this export blocks o k response has a 5xx status code

func (*ExportBlocksOK) IsSuccess

func (o *ExportBlocksOK) IsSuccess() bool

IsSuccess returns true when this export blocks o k response has a 2xx status code

func (*ExportBlocksOK) String

func (o *ExportBlocksOK) String() string

type ExportBlocksParams

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

ExportBlocksParams contains all the parameters to send to the API endpoint

for the export blocks operation.

Typically these are written to a http.Request.

func NewExportBlocksParams

func NewExportBlocksParams() *ExportBlocksParams

NewExportBlocksParams creates a new ExportBlocksParams 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 NewExportBlocksParamsWithContext

func NewExportBlocksParamsWithContext(ctx context.Context) *ExportBlocksParams

NewExportBlocksParamsWithContext creates a new ExportBlocksParams object with the ability to set a context for a request.

func NewExportBlocksParamsWithHTTPClient

func NewExportBlocksParamsWithHTTPClient(client *http.Client) *ExportBlocksParams

NewExportBlocksParamsWithHTTPClient creates a new ExportBlocksParams object with the ability to set a custom HTTPClient for a request.

func NewExportBlocksParamsWithTimeout

func NewExportBlocksParamsWithTimeout(timeout time.Duration) *ExportBlocksParams

NewExportBlocksParamsWithTimeout creates a new ExportBlocksParams object with the ability to set a timeout on a request.

func (*ExportBlocksParams) SetContext

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

SetContext adds the context to the export blocks params

func (*ExportBlocksParams) SetDefaults

func (o *ExportBlocksParams) SetDefaults()

SetDefaults hydrates default values in the export blocks params (not the query body).

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

func (*ExportBlocksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the export blocks params

func (*ExportBlocksParams) SetTimeout

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

SetTimeout adds the timeout to the export blocks params

func (*ExportBlocksParams) WithContext

WithContext adds the context to the export blocks params

func (*ExportBlocksParams) WithDefaults

func (o *ExportBlocksParams) WithDefaults() *ExportBlocksParams

WithDefaults hydrates default values in the export blocks params (not the query body).

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

func (*ExportBlocksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the export blocks params

func (*ExportBlocksParams) WithTimeout

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

WithTimeout adds the timeout to the export blocks params

func (*ExportBlocksParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ExportBlocksReader

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

ExportBlocksReader is a Reader for the ExportBlocks structure.

func (*ExportBlocksReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ExportBlocksUnauthorized

type ExportBlocksUnauthorized struct {
}

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

unauthorized

func NewExportBlocksUnauthorized

func NewExportBlocksUnauthorized() *ExportBlocksUnauthorized

NewExportBlocksUnauthorized creates a ExportBlocksUnauthorized with default headers values

func (*ExportBlocksUnauthorized) Code

func (o *ExportBlocksUnauthorized) Code() int

Code gets the status code for the export blocks unauthorized response

func (*ExportBlocksUnauthorized) Error

func (o *ExportBlocksUnauthorized) Error() string

func (*ExportBlocksUnauthorized) IsClientError

func (o *ExportBlocksUnauthorized) IsClientError() bool

IsClientError returns true when this export blocks unauthorized response has a 4xx status code

func (*ExportBlocksUnauthorized) IsCode

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

IsCode returns true when this export blocks unauthorized response a status code equal to that given

func (*ExportBlocksUnauthorized) IsRedirect

func (o *ExportBlocksUnauthorized) IsRedirect() bool

IsRedirect returns true when this export blocks unauthorized response has a 3xx status code

func (*ExportBlocksUnauthorized) IsServerError

func (o *ExportBlocksUnauthorized) IsServerError() bool

IsServerError returns true when this export blocks unauthorized response has a 5xx status code

func (*ExportBlocksUnauthorized) IsSuccess

func (o *ExportBlocksUnauthorized) IsSuccess() bool

IsSuccess returns true when this export blocks unauthorized response has a 2xx status code

func (*ExportBlocksUnauthorized) String

func (o *ExportBlocksUnauthorized) String() string

type ExportFollowersInternalServerError

type ExportFollowersInternalServerError struct {
}

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

internal server error

func NewExportFollowersInternalServerError

func NewExportFollowersInternalServerError() *ExportFollowersInternalServerError

NewExportFollowersInternalServerError creates a ExportFollowersInternalServerError with default headers values

func (*ExportFollowersInternalServerError) Code

Code gets the status code for the export followers internal server error response

func (*ExportFollowersInternalServerError) Error

func (*ExportFollowersInternalServerError) IsClientError

func (o *ExportFollowersInternalServerError) IsClientError() bool

IsClientError returns true when this export followers internal server error response has a 4xx status code

func (*ExportFollowersInternalServerError) IsCode

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

func (*ExportFollowersInternalServerError) IsRedirect

func (o *ExportFollowersInternalServerError) IsRedirect() bool

IsRedirect returns true when this export followers internal server error response has a 3xx status code

func (*ExportFollowersInternalServerError) IsServerError

func (o *ExportFollowersInternalServerError) IsServerError() bool

IsServerError returns true when this export followers internal server error response has a 5xx status code

func (*ExportFollowersInternalServerError) IsSuccess

IsSuccess returns true when this export followers internal server error response has a 2xx status code

func (*ExportFollowersInternalServerError) String

type ExportFollowersNotAcceptable

type ExportFollowersNotAcceptable struct {
}

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

not acceptable

func NewExportFollowersNotAcceptable

func NewExportFollowersNotAcceptable() *ExportFollowersNotAcceptable

NewExportFollowersNotAcceptable creates a ExportFollowersNotAcceptable with default headers values

func (*ExportFollowersNotAcceptable) Code

Code gets the status code for the export followers not acceptable response

func (*ExportFollowersNotAcceptable) Error

func (*ExportFollowersNotAcceptable) IsClientError

func (o *ExportFollowersNotAcceptable) IsClientError() bool

IsClientError returns true when this export followers not acceptable response has a 4xx status code

func (*ExportFollowersNotAcceptable) IsCode

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

IsCode returns true when this export followers not acceptable response a status code equal to that given

func (*ExportFollowersNotAcceptable) IsRedirect

func (o *ExportFollowersNotAcceptable) IsRedirect() bool

IsRedirect returns true when this export followers not acceptable response has a 3xx status code

func (*ExportFollowersNotAcceptable) IsServerError

func (o *ExportFollowersNotAcceptable) IsServerError() bool

IsServerError returns true when this export followers not acceptable response has a 5xx status code

func (*ExportFollowersNotAcceptable) IsSuccess

func (o *ExportFollowersNotAcceptable) IsSuccess() bool

IsSuccess returns true when this export followers not acceptable response has a 2xx status code

func (*ExportFollowersNotAcceptable) String

type ExportFollowersOK

type ExportFollowersOK struct {
}

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

CSV file of accounts that follow you.

func NewExportFollowersOK

func NewExportFollowersOK() *ExportFollowersOK

NewExportFollowersOK creates a ExportFollowersOK with default headers values

func (*ExportFollowersOK) Code

func (o *ExportFollowersOK) Code() int

Code gets the status code for the export followers o k response

func (*ExportFollowersOK) Error

func (o *ExportFollowersOK) Error() string

func (*ExportFollowersOK) IsClientError

func (o *ExportFollowersOK) IsClientError() bool

IsClientError returns true when this export followers o k response has a 4xx status code

func (*ExportFollowersOK) IsCode

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

IsCode returns true when this export followers o k response a status code equal to that given

func (*ExportFollowersOK) IsRedirect

func (o *ExportFollowersOK) IsRedirect() bool

IsRedirect returns true when this export followers o k response has a 3xx status code

func (*ExportFollowersOK) IsServerError

func (o *ExportFollowersOK) IsServerError() bool

IsServerError returns true when this export followers o k response has a 5xx status code

func (*ExportFollowersOK) IsSuccess

func (o *ExportFollowersOK) IsSuccess() bool

IsSuccess returns true when this export followers o k response has a 2xx status code

func (*ExportFollowersOK) String

func (o *ExportFollowersOK) String() string

type ExportFollowersParams

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

ExportFollowersParams contains all the parameters to send to the API endpoint

for the export followers operation.

Typically these are written to a http.Request.

func NewExportFollowersParams

func NewExportFollowersParams() *ExportFollowersParams

NewExportFollowersParams creates a new ExportFollowersParams 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 NewExportFollowersParamsWithContext

func NewExportFollowersParamsWithContext(ctx context.Context) *ExportFollowersParams

NewExportFollowersParamsWithContext creates a new ExportFollowersParams object with the ability to set a context for a request.

func NewExportFollowersParamsWithHTTPClient

func NewExportFollowersParamsWithHTTPClient(client *http.Client) *ExportFollowersParams

NewExportFollowersParamsWithHTTPClient creates a new ExportFollowersParams object with the ability to set a custom HTTPClient for a request.

func NewExportFollowersParamsWithTimeout

func NewExportFollowersParamsWithTimeout(timeout time.Duration) *ExportFollowersParams

NewExportFollowersParamsWithTimeout creates a new ExportFollowersParams object with the ability to set a timeout on a request.

func (*ExportFollowersParams) SetContext

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

SetContext adds the context to the export followers params

func (*ExportFollowersParams) SetDefaults

func (o *ExportFollowersParams) SetDefaults()

SetDefaults hydrates default values in the export followers params (not the query body).

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

func (*ExportFollowersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the export followers params

func (*ExportFollowersParams) SetTimeout

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

SetTimeout adds the timeout to the export followers params

func (*ExportFollowersParams) WithContext

WithContext adds the context to the export followers params

func (*ExportFollowersParams) WithDefaults

func (o *ExportFollowersParams) WithDefaults() *ExportFollowersParams

WithDefaults hydrates default values in the export followers params (not the query body).

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

func (*ExportFollowersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the export followers params

func (*ExportFollowersParams) WithTimeout

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

WithTimeout adds the timeout to the export followers params

func (*ExportFollowersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ExportFollowersReader

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

ExportFollowersReader is a Reader for the ExportFollowers structure.

func (*ExportFollowersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ExportFollowersUnauthorized

type ExportFollowersUnauthorized struct {
}

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

unauthorized

func NewExportFollowersUnauthorized

func NewExportFollowersUnauthorized() *ExportFollowersUnauthorized

NewExportFollowersUnauthorized creates a ExportFollowersUnauthorized with default headers values

func (*ExportFollowersUnauthorized) Code

func (o *ExportFollowersUnauthorized) Code() int

Code gets the status code for the export followers unauthorized response

func (*ExportFollowersUnauthorized) Error

func (*ExportFollowersUnauthorized) IsClientError

func (o *ExportFollowersUnauthorized) IsClientError() bool

IsClientError returns true when this export followers unauthorized response has a 4xx status code

func (*ExportFollowersUnauthorized) IsCode

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

IsCode returns true when this export followers unauthorized response a status code equal to that given

func (*ExportFollowersUnauthorized) IsRedirect

func (o *ExportFollowersUnauthorized) IsRedirect() bool

IsRedirect returns true when this export followers unauthorized response has a 3xx status code

func (*ExportFollowersUnauthorized) IsServerError

func (o *ExportFollowersUnauthorized) IsServerError() bool

IsServerError returns true when this export followers unauthorized response has a 5xx status code

func (*ExportFollowersUnauthorized) IsSuccess

func (o *ExportFollowersUnauthorized) IsSuccess() bool

IsSuccess returns true when this export followers unauthorized response has a 2xx status code

func (*ExportFollowersUnauthorized) String

func (o *ExportFollowersUnauthorized) String() string

type ExportFollowingInternalServerError

type ExportFollowingInternalServerError struct {
}

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

internal server error

func NewExportFollowingInternalServerError

func NewExportFollowingInternalServerError() *ExportFollowingInternalServerError

NewExportFollowingInternalServerError creates a ExportFollowingInternalServerError with default headers values

func (*ExportFollowingInternalServerError) Code

Code gets the status code for the export following internal server error response

func (*ExportFollowingInternalServerError) Error

func (*ExportFollowingInternalServerError) IsClientError

func (o *ExportFollowingInternalServerError) IsClientError() bool

IsClientError returns true when this export following internal server error response has a 4xx status code

func (*ExportFollowingInternalServerError) IsCode

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

func (*ExportFollowingInternalServerError) IsRedirect

func (o *ExportFollowingInternalServerError) IsRedirect() bool

IsRedirect returns true when this export following internal server error response has a 3xx status code

func (*ExportFollowingInternalServerError) IsServerError

func (o *ExportFollowingInternalServerError) IsServerError() bool

IsServerError returns true when this export following internal server error response has a 5xx status code

func (*ExportFollowingInternalServerError) IsSuccess

IsSuccess returns true when this export following internal server error response has a 2xx status code

func (*ExportFollowingInternalServerError) String

type ExportFollowingNotAcceptable

type ExportFollowingNotAcceptable struct {
}

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

not acceptable

func NewExportFollowingNotAcceptable

func NewExportFollowingNotAcceptable() *ExportFollowingNotAcceptable

NewExportFollowingNotAcceptable creates a ExportFollowingNotAcceptable with default headers values

func (*ExportFollowingNotAcceptable) Code

Code gets the status code for the export following not acceptable response

func (*ExportFollowingNotAcceptable) Error

func (*ExportFollowingNotAcceptable) IsClientError

func (o *ExportFollowingNotAcceptable) IsClientError() bool

IsClientError returns true when this export following not acceptable response has a 4xx status code

func (*ExportFollowingNotAcceptable) IsCode

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

IsCode returns true when this export following not acceptable response a status code equal to that given

func (*ExportFollowingNotAcceptable) IsRedirect

func (o *ExportFollowingNotAcceptable) IsRedirect() bool

IsRedirect returns true when this export following not acceptable response has a 3xx status code

func (*ExportFollowingNotAcceptable) IsServerError

func (o *ExportFollowingNotAcceptable) IsServerError() bool

IsServerError returns true when this export following not acceptable response has a 5xx status code

func (*ExportFollowingNotAcceptable) IsSuccess

func (o *ExportFollowingNotAcceptable) IsSuccess() bool

IsSuccess returns true when this export following not acceptable response has a 2xx status code

func (*ExportFollowingNotAcceptable) String

type ExportFollowingOK

type ExportFollowingOK struct {
}

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

CSV file of accounts that you follow.

func NewExportFollowingOK

func NewExportFollowingOK() *ExportFollowingOK

NewExportFollowingOK creates a ExportFollowingOK with default headers values

func (*ExportFollowingOK) Code

func (o *ExportFollowingOK) Code() int

Code gets the status code for the export following o k response

func (*ExportFollowingOK) Error

func (o *ExportFollowingOK) Error() string

func (*ExportFollowingOK) IsClientError

func (o *ExportFollowingOK) IsClientError() bool

IsClientError returns true when this export following o k response has a 4xx status code

func (*ExportFollowingOK) IsCode

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

IsCode returns true when this export following o k response a status code equal to that given

func (*ExportFollowingOK) IsRedirect

func (o *ExportFollowingOK) IsRedirect() bool

IsRedirect returns true when this export following o k response has a 3xx status code

func (*ExportFollowingOK) IsServerError

func (o *ExportFollowingOK) IsServerError() bool

IsServerError returns true when this export following o k response has a 5xx status code

func (*ExportFollowingOK) IsSuccess

func (o *ExportFollowingOK) IsSuccess() bool

IsSuccess returns true when this export following o k response has a 2xx status code

func (*ExportFollowingOK) String

func (o *ExportFollowingOK) String() string

type ExportFollowingParams

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

ExportFollowingParams contains all the parameters to send to the API endpoint

for the export following operation.

Typically these are written to a http.Request.

func NewExportFollowingParams

func NewExportFollowingParams() *ExportFollowingParams

NewExportFollowingParams creates a new ExportFollowingParams 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 NewExportFollowingParamsWithContext

func NewExportFollowingParamsWithContext(ctx context.Context) *ExportFollowingParams

NewExportFollowingParamsWithContext creates a new ExportFollowingParams object with the ability to set a context for a request.

func NewExportFollowingParamsWithHTTPClient

func NewExportFollowingParamsWithHTTPClient(client *http.Client) *ExportFollowingParams

NewExportFollowingParamsWithHTTPClient creates a new ExportFollowingParams object with the ability to set a custom HTTPClient for a request.

func NewExportFollowingParamsWithTimeout

func NewExportFollowingParamsWithTimeout(timeout time.Duration) *ExportFollowingParams

NewExportFollowingParamsWithTimeout creates a new ExportFollowingParams object with the ability to set a timeout on a request.

func (*ExportFollowingParams) SetContext

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

SetContext adds the context to the export following params

func (*ExportFollowingParams) SetDefaults

func (o *ExportFollowingParams) SetDefaults()

SetDefaults hydrates default values in the export following params (not the query body).

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

func (*ExportFollowingParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the export following params

func (*ExportFollowingParams) SetTimeout

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

SetTimeout adds the timeout to the export following params

func (*ExportFollowingParams) WithContext

WithContext adds the context to the export following params

func (*ExportFollowingParams) WithDefaults

func (o *ExportFollowingParams) WithDefaults() *ExportFollowingParams

WithDefaults hydrates default values in the export following params (not the query body).

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

func (*ExportFollowingParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the export following params

func (*ExportFollowingParams) WithTimeout

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

WithTimeout adds the timeout to the export following params

func (*ExportFollowingParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ExportFollowingReader

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

ExportFollowingReader is a Reader for the ExportFollowing structure.

func (*ExportFollowingReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ExportFollowingUnauthorized

type ExportFollowingUnauthorized struct {
}

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

unauthorized

func NewExportFollowingUnauthorized

func NewExportFollowingUnauthorized() *ExportFollowingUnauthorized

NewExportFollowingUnauthorized creates a ExportFollowingUnauthorized with default headers values

func (*ExportFollowingUnauthorized) Code

func (o *ExportFollowingUnauthorized) Code() int

Code gets the status code for the export following unauthorized response

func (*ExportFollowingUnauthorized) Error

func (*ExportFollowingUnauthorized) IsClientError

func (o *ExportFollowingUnauthorized) IsClientError() bool

IsClientError returns true when this export following unauthorized response has a 4xx status code

func (*ExportFollowingUnauthorized) IsCode

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

IsCode returns true when this export following unauthorized response a status code equal to that given

func (*ExportFollowingUnauthorized) IsRedirect

func (o *ExportFollowingUnauthorized) IsRedirect() bool

IsRedirect returns true when this export following unauthorized response has a 3xx status code

func (*ExportFollowingUnauthorized) IsServerError

func (o *ExportFollowingUnauthorized) IsServerError() bool

IsServerError returns true when this export following unauthorized response has a 5xx status code

func (*ExportFollowingUnauthorized) IsSuccess

func (o *ExportFollowingUnauthorized) IsSuccess() bool

IsSuccess returns true when this export following unauthorized response has a 2xx status code

func (*ExportFollowingUnauthorized) String

func (o *ExportFollowingUnauthorized) String() string

type ExportListsInternalServerError

type ExportListsInternalServerError struct {
}

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

internal server error

func NewExportListsInternalServerError

func NewExportListsInternalServerError() *ExportListsInternalServerError

NewExportListsInternalServerError creates a ExportListsInternalServerError with default headers values

func (*ExportListsInternalServerError) Code

Code gets the status code for the export lists internal server error response

func (*ExportListsInternalServerError) Error

func (*ExportListsInternalServerError) IsClientError

func (o *ExportListsInternalServerError) IsClientError() bool

IsClientError returns true when this export lists internal server error response has a 4xx status code

func (*ExportListsInternalServerError) IsCode

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

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

func (*ExportListsInternalServerError) IsRedirect

func (o *ExportListsInternalServerError) IsRedirect() bool

IsRedirect returns true when this export lists internal server error response has a 3xx status code

func (*ExportListsInternalServerError) IsServerError

func (o *ExportListsInternalServerError) IsServerError() bool

IsServerError returns true when this export lists internal server error response has a 5xx status code

func (*ExportListsInternalServerError) IsSuccess

func (o *ExportListsInternalServerError) IsSuccess() bool

IsSuccess returns true when this export lists internal server error response has a 2xx status code

func (*ExportListsInternalServerError) String

type ExportListsNotAcceptable

type ExportListsNotAcceptable struct {
}

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

not acceptable

func NewExportListsNotAcceptable

func NewExportListsNotAcceptable() *ExportListsNotAcceptable

NewExportListsNotAcceptable creates a ExportListsNotAcceptable with default headers values

func (*ExportListsNotAcceptable) Code

func (o *ExportListsNotAcceptable) Code() int

Code gets the status code for the export lists not acceptable response

func (*ExportListsNotAcceptable) Error

func (o *ExportListsNotAcceptable) Error() string

func (*ExportListsNotAcceptable) IsClientError

func (o *ExportListsNotAcceptable) IsClientError() bool

IsClientError returns true when this export lists not acceptable response has a 4xx status code

func (*ExportListsNotAcceptable) IsCode

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

IsCode returns true when this export lists not acceptable response a status code equal to that given

func (*ExportListsNotAcceptable) IsRedirect

func (o *ExportListsNotAcceptable) IsRedirect() bool

IsRedirect returns true when this export lists not acceptable response has a 3xx status code

func (*ExportListsNotAcceptable) IsServerError

func (o *ExportListsNotAcceptable) IsServerError() bool

IsServerError returns true when this export lists not acceptable response has a 5xx status code

func (*ExportListsNotAcceptable) IsSuccess

func (o *ExportListsNotAcceptable) IsSuccess() bool

IsSuccess returns true when this export lists not acceptable response has a 2xx status code

func (*ExportListsNotAcceptable) String

func (o *ExportListsNotAcceptable) String() string

type ExportListsOK

type ExportListsOK struct {
}

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

CSV file of lists.

func NewExportListsOK

func NewExportListsOK() *ExportListsOK

NewExportListsOK creates a ExportListsOK with default headers values

func (*ExportListsOK) Code

func (o *ExportListsOK) Code() int

Code gets the status code for the export lists o k response

func (*ExportListsOK) Error

func (o *ExportListsOK) Error() string

func (*ExportListsOK) IsClientError

func (o *ExportListsOK) IsClientError() bool

IsClientError returns true when this export lists o k response has a 4xx status code

func (*ExportListsOK) IsCode

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

IsCode returns true when this export lists o k response a status code equal to that given

func (*ExportListsOK) IsRedirect

func (o *ExportListsOK) IsRedirect() bool

IsRedirect returns true when this export lists o k response has a 3xx status code

func (*ExportListsOK) IsServerError

func (o *ExportListsOK) IsServerError() bool

IsServerError returns true when this export lists o k response has a 5xx status code

func (*ExportListsOK) IsSuccess

func (o *ExportListsOK) IsSuccess() bool

IsSuccess returns true when this export lists o k response has a 2xx status code

func (*ExportListsOK) String

func (o *ExportListsOK) String() string

type ExportListsParams

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

ExportListsParams contains all the parameters to send to the API endpoint

for the export lists operation.

Typically these are written to a http.Request.

func NewExportListsParams

func NewExportListsParams() *ExportListsParams

NewExportListsParams creates a new ExportListsParams 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 NewExportListsParamsWithContext

func NewExportListsParamsWithContext(ctx context.Context) *ExportListsParams

NewExportListsParamsWithContext creates a new ExportListsParams object with the ability to set a context for a request.

func NewExportListsParamsWithHTTPClient

func NewExportListsParamsWithHTTPClient(client *http.Client) *ExportListsParams

NewExportListsParamsWithHTTPClient creates a new ExportListsParams object with the ability to set a custom HTTPClient for a request.

func NewExportListsParamsWithTimeout

func NewExportListsParamsWithTimeout(timeout time.Duration) *ExportListsParams

NewExportListsParamsWithTimeout creates a new ExportListsParams object with the ability to set a timeout on a request.

func (*ExportListsParams) SetContext

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

SetContext adds the context to the export lists params

func (*ExportListsParams) SetDefaults

func (o *ExportListsParams) SetDefaults()

SetDefaults hydrates default values in the export lists params (not the query body).

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

func (*ExportListsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the export lists params

func (*ExportListsParams) SetTimeout

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

SetTimeout adds the timeout to the export lists params

func (*ExportListsParams) WithContext

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

WithContext adds the context to the export lists params

func (*ExportListsParams) WithDefaults

func (o *ExportListsParams) WithDefaults() *ExportListsParams

WithDefaults hydrates default values in the export lists params (not the query body).

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

func (*ExportListsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the export lists params

func (*ExportListsParams) WithTimeout

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

WithTimeout adds the timeout to the export lists params

func (*ExportListsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ExportListsReader

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

ExportListsReader is a Reader for the ExportLists structure.

func (*ExportListsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ExportListsUnauthorized

type ExportListsUnauthorized struct {
}

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

unauthorized

func NewExportListsUnauthorized

func NewExportListsUnauthorized() *ExportListsUnauthorized

NewExportListsUnauthorized creates a ExportListsUnauthorized with default headers values

func (*ExportListsUnauthorized) Code

func (o *ExportListsUnauthorized) Code() int

Code gets the status code for the export lists unauthorized response

func (*ExportListsUnauthorized) Error

func (o *ExportListsUnauthorized) Error() string

func (*ExportListsUnauthorized) IsClientError

func (o *ExportListsUnauthorized) IsClientError() bool

IsClientError returns true when this export lists unauthorized response has a 4xx status code

func (*ExportListsUnauthorized) IsCode

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

IsCode returns true when this export lists unauthorized response a status code equal to that given

func (*ExportListsUnauthorized) IsRedirect

func (o *ExportListsUnauthorized) IsRedirect() bool

IsRedirect returns true when this export lists unauthorized response has a 3xx status code

func (*ExportListsUnauthorized) IsServerError

func (o *ExportListsUnauthorized) IsServerError() bool

IsServerError returns true when this export lists unauthorized response has a 5xx status code

func (*ExportListsUnauthorized) IsSuccess

func (o *ExportListsUnauthorized) IsSuccess() bool

IsSuccess returns true when this export lists unauthorized response has a 2xx status code

func (*ExportListsUnauthorized) String

func (o *ExportListsUnauthorized) String() string

type ExportMutesInternalServerError

type ExportMutesInternalServerError struct {
}

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

internal server error

func NewExportMutesInternalServerError

func NewExportMutesInternalServerError() *ExportMutesInternalServerError

NewExportMutesInternalServerError creates a ExportMutesInternalServerError with default headers values

func (*ExportMutesInternalServerError) Code

Code gets the status code for the export mutes internal server error response

func (*ExportMutesInternalServerError) Error

func (*ExportMutesInternalServerError) IsClientError

func (o *ExportMutesInternalServerError) IsClientError() bool

IsClientError returns true when this export mutes internal server error response has a 4xx status code

func (*ExportMutesInternalServerError) IsCode

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

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

func (*ExportMutesInternalServerError) IsRedirect

func (o *ExportMutesInternalServerError) IsRedirect() bool

IsRedirect returns true when this export mutes internal server error response has a 3xx status code

func (*ExportMutesInternalServerError) IsServerError

func (o *ExportMutesInternalServerError) IsServerError() bool

IsServerError returns true when this export mutes internal server error response has a 5xx status code

func (*ExportMutesInternalServerError) IsSuccess

func (o *ExportMutesInternalServerError) IsSuccess() bool

IsSuccess returns true when this export mutes internal server error response has a 2xx status code

func (*ExportMutesInternalServerError) String

type ExportMutesNotAcceptable

type ExportMutesNotAcceptable struct {
}

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

not acceptable

func NewExportMutesNotAcceptable

func NewExportMutesNotAcceptable() *ExportMutesNotAcceptable

NewExportMutesNotAcceptable creates a ExportMutesNotAcceptable with default headers values

func (*ExportMutesNotAcceptable) Code

func (o *ExportMutesNotAcceptable) Code() int

Code gets the status code for the export mutes not acceptable response

func (*ExportMutesNotAcceptable) Error

func (o *ExportMutesNotAcceptable) Error() string

func (*ExportMutesNotAcceptable) IsClientError

func (o *ExportMutesNotAcceptable) IsClientError() bool

IsClientError returns true when this export mutes not acceptable response has a 4xx status code

func (*ExportMutesNotAcceptable) IsCode

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

IsCode returns true when this export mutes not acceptable response a status code equal to that given

func (*ExportMutesNotAcceptable) IsRedirect

func (o *ExportMutesNotAcceptable) IsRedirect() bool

IsRedirect returns true when this export mutes not acceptable response has a 3xx status code

func (*ExportMutesNotAcceptable) IsServerError

func (o *ExportMutesNotAcceptable) IsServerError() bool

IsServerError returns true when this export mutes not acceptable response has a 5xx status code

func (*ExportMutesNotAcceptable) IsSuccess

func (o *ExportMutesNotAcceptable) IsSuccess() bool

IsSuccess returns true when this export mutes not acceptable response has a 2xx status code

func (*ExportMutesNotAcceptable) String

func (o *ExportMutesNotAcceptable) String() string

type ExportMutesOK

type ExportMutesOK struct {
}

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

CSV file of accounts that you mute.

func NewExportMutesOK

func NewExportMutesOK() *ExportMutesOK

NewExportMutesOK creates a ExportMutesOK with default headers values

func (*ExportMutesOK) Code

func (o *ExportMutesOK) Code() int

Code gets the status code for the export mutes o k response

func (*ExportMutesOK) Error

func (o *ExportMutesOK) Error() string

func (*ExportMutesOK) IsClientError

func (o *ExportMutesOK) IsClientError() bool

IsClientError returns true when this export mutes o k response has a 4xx status code

func (*ExportMutesOK) IsCode

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

IsCode returns true when this export mutes o k response a status code equal to that given

func (*ExportMutesOK) IsRedirect

func (o *ExportMutesOK) IsRedirect() bool

IsRedirect returns true when this export mutes o k response has a 3xx status code

func (*ExportMutesOK) IsServerError

func (o *ExportMutesOK) IsServerError() bool

IsServerError returns true when this export mutes o k response has a 5xx status code

func (*ExportMutesOK) IsSuccess

func (o *ExportMutesOK) IsSuccess() bool

IsSuccess returns true when this export mutes o k response has a 2xx status code

func (*ExportMutesOK) String

func (o *ExportMutesOK) String() string

type ExportMutesParams

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

ExportMutesParams contains all the parameters to send to the API endpoint

for the export mutes operation.

Typically these are written to a http.Request.

func NewExportMutesParams

func NewExportMutesParams() *ExportMutesParams

NewExportMutesParams creates a new ExportMutesParams 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 NewExportMutesParamsWithContext

func NewExportMutesParamsWithContext(ctx context.Context) *ExportMutesParams

NewExportMutesParamsWithContext creates a new ExportMutesParams object with the ability to set a context for a request.

func NewExportMutesParamsWithHTTPClient

func NewExportMutesParamsWithHTTPClient(client *http.Client) *ExportMutesParams

NewExportMutesParamsWithHTTPClient creates a new ExportMutesParams object with the ability to set a custom HTTPClient for a request.

func NewExportMutesParamsWithTimeout

func NewExportMutesParamsWithTimeout(timeout time.Duration) *ExportMutesParams

NewExportMutesParamsWithTimeout creates a new ExportMutesParams object with the ability to set a timeout on a request.

func (*ExportMutesParams) SetContext

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

SetContext adds the context to the export mutes params

func (*ExportMutesParams) SetDefaults

func (o *ExportMutesParams) SetDefaults()

SetDefaults hydrates default values in the export mutes params (not the query body).

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

func (*ExportMutesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the export mutes params

func (*ExportMutesParams) SetTimeout

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

SetTimeout adds the timeout to the export mutes params

func (*ExportMutesParams) WithContext

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

WithContext adds the context to the export mutes params

func (*ExportMutesParams) WithDefaults

func (o *ExportMutesParams) WithDefaults() *ExportMutesParams

WithDefaults hydrates default values in the export mutes params (not the query body).

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

func (*ExportMutesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the export mutes params

func (*ExportMutesParams) WithTimeout

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

WithTimeout adds the timeout to the export mutes params

func (*ExportMutesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ExportMutesReader

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

ExportMutesReader is a Reader for the ExportMutes structure.

func (*ExportMutesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ExportMutesUnauthorized

type ExportMutesUnauthorized struct {
}

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

unauthorized

func NewExportMutesUnauthorized

func NewExportMutesUnauthorized() *ExportMutesUnauthorized

NewExportMutesUnauthorized creates a ExportMutesUnauthorized with default headers values

func (*ExportMutesUnauthorized) Code

func (o *ExportMutesUnauthorized) Code() int

Code gets the status code for the export mutes unauthorized response

func (*ExportMutesUnauthorized) Error

func (o *ExportMutesUnauthorized) Error() string

func (*ExportMutesUnauthorized) IsClientError

func (o *ExportMutesUnauthorized) IsClientError() bool

IsClientError returns true when this export mutes unauthorized response has a 4xx status code

func (*ExportMutesUnauthorized) IsCode

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

IsCode returns true when this export mutes unauthorized response a status code equal to that given

func (*ExportMutesUnauthorized) IsRedirect

func (o *ExportMutesUnauthorized) IsRedirect() bool

IsRedirect returns true when this export mutes unauthorized response has a 3xx status code

func (*ExportMutesUnauthorized) IsServerError

func (o *ExportMutesUnauthorized) IsServerError() bool

IsServerError returns true when this export mutes unauthorized response has a 5xx status code

func (*ExportMutesUnauthorized) IsSuccess

func (o *ExportMutesUnauthorized) IsSuccess() bool

IsSuccess returns true when this export mutes unauthorized response has a 2xx status code

func (*ExportMutesUnauthorized) String

func (o *ExportMutesUnauthorized) String() string

type ExportStatsInternalServerError

type ExportStatsInternalServerError struct {
}

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

internal server error

func NewExportStatsInternalServerError

func NewExportStatsInternalServerError() *ExportStatsInternalServerError

NewExportStatsInternalServerError creates a ExportStatsInternalServerError with default headers values

func (*ExportStatsInternalServerError) Code

Code gets the status code for the export stats internal server error response

func (*ExportStatsInternalServerError) Error

func (*ExportStatsInternalServerError) IsClientError

func (o *ExportStatsInternalServerError) IsClientError() bool

IsClientError returns true when this export stats internal server error response has a 4xx status code

func (*ExportStatsInternalServerError) IsCode

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

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

func (*ExportStatsInternalServerError) IsRedirect

func (o *ExportStatsInternalServerError) IsRedirect() bool

IsRedirect returns true when this export stats internal server error response has a 3xx status code

func (*ExportStatsInternalServerError) IsServerError

func (o *ExportStatsInternalServerError) IsServerError() bool

IsServerError returns true when this export stats internal server error response has a 5xx status code

func (*ExportStatsInternalServerError) IsSuccess

func (o *ExportStatsInternalServerError) IsSuccess() bool

IsSuccess returns true when this export stats internal server error response has a 2xx status code

func (*ExportStatsInternalServerError) String

type ExportStatsNotAcceptable

type ExportStatsNotAcceptable struct {
}

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

not acceptable

func NewExportStatsNotAcceptable

func NewExportStatsNotAcceptable() *ExportStatsNotAcceptable

NewExportStatsNotAcceptable creates a ExportStatsNotAcceptable with default headers values

func (*ExportStatsNotAcceptable) Code

func (o *ExportStatsNotAcceptable) Code() int

Code gets the status code for the export stats not acceptable response

func (*ExportStatsNotAcceptable) Error

func (o *ExportStatsNotAcceptable) Error() string

func (*ExportStatsNotAcceptable) IsClientError

func (o *ExportStatsNotAcceptable) IsClientError() bool

IsClientError returns true when this export stats not acceptable response has a 4xx status code

func (*ExportStatsNotAcceptable) IsCode

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

IsCode returns true when this export stats not acceptable response a status code equal to that given

func (*ExportStatsNotAcceptable) IsRedirect

func (o *ExportStatsNotAcceptable) IsRedirect() bool

IsRedirect returns true when this export stats not acceptable response has a 3xx status code

func (*ExportStatsNotAcceptable) IsServerError

func (o *ExportStatsNotAcceptable) IsServerError() bool

IsServerError returns true when this export stats not acceptable response has a 5xx status code

func (*ExportStatsNotAcceptable) IsSuccess

func (o *ExportStatsNotAcceptable) IsSuccess() bool

IsSuccess returns true when this export stats not acceptable response has a 2xx status code

func (*ExportStatsNotAcceptable) String

func (o *ExportStatsNotAcceptable) String() string

type ExportStatsOK

type ExportStatsOK struct {
	Payload *models.AccountExportStats
}

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

Export stats for the requesting account.

func NewExportStatsOK

func NewExportStatsOK() *ExportStatsOK

NewExportStatsOK creates a ExportStatsOK with default headers values

func (*ExportStatsOK) Code

func (o *ExportStatsOK) Code() int

Code gets the status code for the export stats o k response

func (*ExportStatsOK) Error

func (o *ExportStatsOK) Error() string

func (*ExportStatsOK) GetPayload

func (o *ExportStatsOK) GetPayload() *models.AccountExportStats

func (*ExportStatsOK) IsClientError

func (o *ExportStatsOK) IsClientError() bool

IsClientError returns true when this export stats o k response has a 4xx status code

func (*ExportStatsOK) IsCode

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

IsCode returns true when this export stats o k response a status code equal to that given

func (*ExportStatsOK) IsRedirect

func (o *ExportStatsOK) IsRedirect() bool

IsRedirect returns true when this export stats o k response has a 3xx status code

func (*ExportStatsOK) IsServerError

func (o *ExportStatsOK) IsServerError() bool

IsServerError returns true when this export stats o k response has a 5xx status code

func (*ExportStatsOK) IsSuccess

func (o *ExportStatsOK) IsSuccess() bool

IsSuccess returns true when this export stats o k response has a 2xx status code

func (*ExportStatsOK) String

func (o *ExportStatsOK) String() string

type ExportStatsParams

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

ExportStatsParams contains all the parameters to send to the API endpoint

for the export stats operation.

Typically these are written to a http.Request.

func NewExportStatsParams

func NewExportStatsParams() *ExportStatsParams

NewExportStatsParams creates a new ExportStatsParams 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 NewExportStatsParamsWithContext

func NewExportStatsParamsWithContext(ctx context.Context) *ExportStatsParams

NewExportStatsParamsWithContext creates a new ExportStatsParams object with the ability to set a context for a request.

func NewExportStatsParamsWithHTTPClient

func NewExportStatsParamsWithHTTPClient(client *http.Client) *ExportStatsParams

NewExportStatsParamsWithHTTPClient creates a new ExportStatsParams object with the ability to set a custom HTTPClient for a request.

func NewExportStatsParamsWithTimeout

func NewExportStatsParamsWithTimeout(timeout time.Duration) *ExportStatsParams

NewExportStatsParamsWithTimeout creates a new ExportStatsParams object with the ability to set a timeout on a request.

func (*ExportStatsParams) SetContext

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

SetContext adds the context to the export stats params

func (*ExportStatsParams) SetDefaults

func (o *ExportStatsParams) SetDefaults()

SetDefaults hydrates default values in the export stats params (not the query body).

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

func (*ExportStatsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the export stats params

func (*ExportStatsParams) SetTimeout

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

SetTimeout adds the timeout to the export stats params

func (*ExportStatsParams) WithContext

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

WithContext adds the context to the export stats params

func (*ExportStatsParams) WithDefaults

func (o *ExportStatsParams) WithDefaults() *ExportStatsParams

WithDefaults hydrates default values in the export stats params (not the query body).

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

func (*ExportStatsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the export stats params

func (*ExportStatsParams) WithTimeout

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

WithTimeout adds the timeout to the export stats params

func (*ExportStatsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ExportStatsReader

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

ExportStatsReader is a Reader for the ExportStats structure.

func (*ExportStatsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ExportStatsUnauthorized

type ExportStatsUnauthorized struct {
}

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

unauthorized

func NewExportStatsUnauthorized

func NewExportStatsUnauthorized() *ExportStatsUnauthorized

NewExportStatsUnauthorized creates a ExportStatsUnauthorized with default headers values

func (*ExportStatsUnauthorized) Code

func (o *ExportStatsUnauthorized) Code() int

Code gets the status code for the export stats unauthorized response

func (*ExportStatsUnauthorized) Error

func (o *ExportStatsUnauthorized) Error() string

func (*ExportStatsUnauthorized) IsClientError

func (o *ExportStatsUnauthorized) IsClientError() bool

IsClientError returns true when this export stats unauthorized response has a 4xx status code

func (*ExportStatsUnauthorized) IsCode

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

IsCode returns true when this export stats unauthorized response a status code equal to that given

func (*ExportStatsUnauthorized) IsRedirect

func (o *ExportStatsUnauthorized) IsRedirect() bool

IsRedirect returns true when this export stats unauthorized response has a 3xx status code

func (*ExportStatsUnauthorized) IsServerError

func (o *ExportStatsUnauthorized) IsServerError() bool

IsServerError returns true when this export stats unauthorized response has a 5xx status code

func (*ExportStatsUnauthorized) IsSuccess

func (o *ExportStatsUnauthorized) IsSuccess() bool

IsSuccess returns true when this export stats unauthorized response has a 2xx status code

func (*ExportStatsUnauthorized) String

func (o *ExportStatsUnauthorized) String() string

type ImportDataAccepted

type ImportDataAccepted struct {
}

ImportDataAccepted describes a response with status code 202, with default header values.

Upload accepted.

func NewImportDataAccepted

func NewImportDataAccepted() *ImportDataAccepted

NewImportDataAccepted creates a ImportDataAccepted with default headers values

func (*ImportDataAccepted) Code

func (o *ImportDataAccepted) Code() int

Code gets the status code for the import data accepted response

func (*ImportDataAccepted) Error

func (o *ImportDataAccepted) Error() string

func (*ImportDataAccepted) IsClientError

func (o *ImportDataAccepted) IsClientError() bool

IsClientError returns true when this import data accepted response has a 4xx status code

func (*ImportDataAccepted) IsCode

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

IsCode returns true when this import data accepted response a status code equal to that given

func (*ImportDataAccepted) IsRedirect

func (o *ImportDataAccepted) IsRedirect() bool

IsRedirect returns true when this import data accepted response has a 3xx status code

func (*ImportDataAccepted) IsServerError

func (o *ImportDataAccepted) IsServerError() bool

IsServerError returns true when this import data accepted response has a 5xx status code

func (*ImportDataAccepted) IsSuccess

func (o *ImportDataAccepted) IsSuccess() bool

IsSuccess returns true when this import data accepted response has a 2xx status code

func (*ImportDataAccepted) String

func (o *ImportDataAccepted) String() string

type ImportDataBadRequest

type ImportDataBadRequest struct {
}

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

bad request

func NewImportDataBadRequest

func NewImportDataBadRequest() *ImportDataBadRequest

NewImportDataBadRequest creates a ImportDataBadRequest with default headers values

func (*ImportDataBadRequest) Code

func (o *ImportDataBadRequest) Code() int

Code gets the status code for the import data bad request response

func (*ImportDataBadRequest) Error

func (o *ImportDataBadRequest) Error() string

func (*ImportDataBadRequest) IsClientError

func (o *ImportDataBadRequest) IsClientError() bool

IsClientError returns true when this import data bad request response has a 4xx status code

func (*ImportDataBadRequest) IsCode

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

IsCode returns true when this import data bad request response a status code equal to that given

func (*ImportDataBadRequest) IsRedirect

func (o *ImportDataBadRequest) IsRedirect() bool

IsRedirect returns true when this import data bad request response has a 3xx status code

func (*ImportDataBadRequest) IsServerError

func (o *ImportDataBadRequest) IsServerError() bool

IsServerError returns true when this import data bad request response has a 5xx status code

func (*ImportDataBadRequest) IsSuccess

func (o *ImportDataBadRequest) IsSuccess() bool

IsSuccess returns true when this import data bad request response has a 2xx status code

func (*ImportDataBadRequest) String

func (o *ImportDataBadRequest) String() string

type ImportDataInternalServerError

type ImportDataInternalServerError struct {
}

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

internal server error

func NewImportDataInternalServerError

func NewImportDataInternalServerError() *ImportDataInternalServerError

NewImportDataInternalServerError creates a ImportDataInternalServerError with default headers values

func (*ImportDataInternalServerError) Code

Code gets the status code for the import data internal server error response

func (*ImportDataInternalServerError) Error

func (*ImportDataInternalServerError) IsClientError

func (o *ImportDataInternalServerError) IsClientError() bool

IsClientError returns true when this import data internal server error response has a 4xx status code

func (*ImportDataInternalServerError) IsCode

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

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

func (*ImportDataInternalServerError) IsRedirect

func (o *ImportDataInternalServerError) IsRedirect() bool

IsRedirect returns true when this import data internal server error response has a 3xx status code

func (*ImportDataInternalServerError) IsServerError

func (o *ImportDataInternalServerError) IsServerError() bool

IsServerError returns true when this import data internal server error response has a 5xx status code

func (*ImportDataInternalServerError) IsSuccess

func (o *ImportDataInternalServerError) IsSuccess() bool

IsSuccess returns true when this import data internal server error response has a 2xx status code

func (*ImportDataInternalServerError) String

type ImportDataNotAcceptable

type ImportDataNotAcceptable struct {
}

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

not acceptable

func NewImportDataNotAcceptable

func NewImportDataNotAcceptable() *ImportDataNotAcceptable

NewImportDataNotAcceptable creates a ImportDataNotAcceptable with default headers values

func (*ImportDataNotAcceptable) Code

func (o *ImportDataNotAcceptable) Code() int

Code gets the status code for the import data not acceptable response

func (*ImportDataNotAcceptable) Error

func (o *ImportDataNotAcceptable) Error() string

func (*ImportDataNotAcceptable) IsClientError

func (o *ImportDataNotAcceptable) IsClientError() bool

IsClientError returns true when this import data not acceptable response has a 4xx status code

func (*ImportDataNotAcceptable) IsCode

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

IsCode returns true when this import data not acceptable response a status code equal to that given

func (*ImportDataNotAcceptable) IsRedirect

func (o *ImportDataNotAcceptable) IsRedirect() bool

IsRedirect returns true when this import data not acceptable response has a 3xx status code

func (*ImportDataNotAcceptable) IsServerError

func (o *ImportDataNotAcceptable) IsServerError() bool

IsServerError returns true when this import data not acceptable response has a 5xx status code

func (*ImportDataNotAcceptable) IsSuccess

func (o *ImportDataNotAcceptable) IsSuccess() bool

IsSuccess returns true when this import data not acceptable response has a 2xx status code

func (*ImportDataNotAcceptable) String

func (o *ImportDataNotAcceptable) String() string

type ImportDataParams

type ImportDataParams struct {

	/* Data.

	   The CSV data file to upload.
	*/
	Data runtime.NamedReadCloser

	/* Mode.

	     Mode to use when creating entries from the data file:
	- `merge` to merge entries in file with existing entries. - `overwrite` to replace existing entries with entries in file.

	     Default: "merge"
	*/
	Mode *string

	/* Type.

	     Type of entries contained in the data file:
	- `following` - accounts to follow. - `blocks` - accounts to block. - `mutes` - accounts to mute.
	*/
	Type string

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

ImportDataParams contains all the parameters to send to the API endpoint

for the import data operation.

Typically these are written to a http.Request.

func NewImportDataParams

func NewImportDataParams() *ImportDataParams

NewImportDataParams creates a new ImportDataParams 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 NewImportDataParamsWithContext

func NewImportDataParamsWithContext(ctx context.Context) *ImportDataParams

NewImportDataParamsWithContext creates a new ImportDataParams object with the ability to set a context for a request.

func NewImportDataParamsWithHTTPClient

func NewImportDataParamsWithHTTPClient(client *http.Client) *ImportDataParams

NewImportDataParamsWithHTTPClient creates a new ImportDataParams object with the ability to set a custom HTTPClient for a request.

func NewImportDataParamsWithTimeout

func NewImportDataParamsWithTimeout(timeout time.Duration) *ImportDataParams

NewImportDataParamsWithTimeout creates a new ImportDataParams object with the ability to set a timeout on a request.

func (*ImportDataParams) SetContext

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

SetContext adds the context to the import data params

func (*ImportDataParams) SetData

func (o *ImportDataParams) SetData(data runtime.NamedReadCloser)

SetData adds the data to the import data params

func (*ImportDataParams) SetDefaults

func (o *ImportDataParams) SetDefaults()

SetDefaults hydrates default values in the import data params (not the query body).

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

func (*ImportDataParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the import data params

func (*ImportDataParams) SetMode

func (o *ImportDataParams) SetMode(mode *string)

SetMode adds the mode to the import data params

func (*ImportDataParams) SetTimeout

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

SetTimeout adds the timeout to the import data params

func (*ImportDataParams) SetType

func (o *ImportDataParams) SetType(typeVar string)

SetType adds the type to the import data params

func (*ImportDataParams) WithContext

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

WithContext adds the context to the import data params

func (*ImportDataParams) WithData

WithData adds the data to the import data params

func (*ImportDataParams) WithDefaults

func (o *ImportDataParams) WithDefaults() *ImportDataParams

WithDefaults hydrates default values in the import data params (not the query body).

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

func (*ImportDataParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the import data params

func (*ImportDataParams) WithMode

func (o *ImportDataParams) WithMode(mode *string) *ImportDataParams

WithMode adds the mode to the import data params

func (*ImportDataParams) WithTimeout

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

WithTimeout adds the timeout to the import data params

func (*ImportDataParams) WithType

func (o *ImportDataParams) WithType(typeVar string) *ImportDataParams

WithType adds the typeVar to the import data params

func (*ImportDataParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ImportDataReader

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

ImportDataReader is a Reader for the ImportData structure.

func (*ImportDataReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ImportDataUnauthorized

type ImportDataUnauthorized struct {
}

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

unauthorized

func NewImportDataUnauthorized

func NewImportDataUnauthorized() *ImportDataUnauthorized

NewImportDataUnauthorized creates a ImportDataUnauthorized with default headers values

func (*ImportDataUnauthorized) Code

func (o *ImportDataUnauthorized) Code() int

Code gets the status code for the import data unauthorized response

func (*ImportDataUnauthorized) Error

func (o *ImportDataUnauthorized) Error() string

func (*ImportDataUnauthorized) IsClientError

func (o *ImportDataUnauthorized) IsClientError() bool

IsClientError returns true when this import data unauthorized response has a 4xx status code

func (*ImportDataUnauthorized) IsCode

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

IsCode returns true when this import data unauthorized response a status code equal to that given

func (*ImportDataUnauthorized) IsRedirect

func (o *ImportDataUnauthorized) IsRedirect() bool

IsRedirect returns true when this import data unauthorized response has a 3xx status code

func (*ImportDataUnauthorized) IsServerError

func (o *ImportDataUnauthorized) IsServerError() bool

IsServerError returns true when this import data unauthorized response has a 5xx status code

func (*ImportDataUnauthorized) IsSuccess

func (o *ImportDataUnauthorized) IsSuccess() bool

IsSuccess returns true when this import data unauthorized response has a 2xx status code

func (*ImportDataUnauthorized) String

func (o *ImportDataUnauthorized) String() string

Jump to

Keyboard shortcuts

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