Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateInstance(params *CreateInstanceParams, authInfo runtime.ClientAuthInfoWriter) (*CreateInstanceOK, error)
- func (a *Client) CreateInstances(params *CreateInstancesParams, authInfo runtime.ClientAuthInfoWriter) (*CreateInstancesOK, error)
- func (a *Client) DeleteInstance(params *DeleteInstanceParams, authInfo runtime.ClientAuthInfoWriter) error
- func (a *Client) GetMutes(params *GetMutesParams, authInfo runtime.ClientAuthInfoWriter) (*GetMutesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type CreateInstanceOK
- type CreateInstanceParams
- func NewCreateInstanceParams() *CreateInstanceParams
- func NewCreateInstanceParamsWithContext(ctx context.Context) *CreateInstanceParams
- func NewCreateInstanceParamsWithHTTPClient(client *http.Client) *CreateInstanceParams
- func NewCreateInstanceParamsWithTimeout(timeout time.Duration) *CreateInstanceParams
- func (o *CreateInstanceParams) SetBody(body *models.Mute)
- func (o *CreateInstanceParams) SetContext(ctx context.Context)
- func (o *CreateInstanceParams) SetFields(fields *string)
- func (o *CreateInstanceParams) SetHTTPClient(client *http.Client)
- func (o *CreateInstanceParams) SetTimeout(timeout time.Duration)
- func (o *CreateInstanceParams) WithBody(body *models.Mute) *CreateInstanceParams
- func (o *CreateInstanceParams) WithContext(ctx context.Context) *CreateInstanceParams
- func (o *CreateInstanceParams) WithFields(fields *string) *CreateInstanceParams
- func (o *CreateInstanceParams) WithHTTPClient(client *http.Client) *CreateInstanceParams
- func (o *CreateInstanceParams) WithTimeout(timeout time.Duration) *CreateInstanceParams
- func (o *CreateInstanceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateInstanceReader
- type CreateInstancesOK
- type CreateInstancesParams
- func NewCreateInstancesParams() *CreateInstancesParams
- func NewCreateInstancesParamsWithContext(ctx context.Context) *CreateInstancesParams
- func NewCreateInstancesParamsWithHTTPClient(client *http.Client) *CreateInstancesParams
- func NewCreateInstancesParamsWithTimeout(timeout time.Duration) *CreateInstancesParams
- func (o *CreateInstancesParams) SetBody(body *models.Mutes)
- func (o *CreateInstancesParams) SetContext(ctx context.Context)
- func (o *CreateInstancesParams) SetFields(fields *string)
- func (o *CreateInstancesParams) SetHTTPClient(client *http.Client)
- func (o *CreateInstancesParams) SetTimeout(timeout time.Duration)
- func (o *CreateInstancesParams) WithBody(body *models.Mutes) *CreateInstancesParams
- func (o *CreateInstancesParams) WithContext(ctx context.Context) *CreateInstancesParams
- func (o *CreateInstancesParams) WithFields(fields *string) *CreateInstancesParams
- func (o *CreateInstancesParams) WithHTTPClient(client *http.Client) *CreateInstancesParams
- func (o *CreateInstancesParams) WithTimeout(timeout time.Duration) *CreateInstancesParams
- func (o *CreateInstancesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateInstancesReader
- type DeleteInstanceDefault
- type DeleteInstanceParams
- func NewDeleteInstanceParams() *DeleteInstanceParams
- func NewDeleteInstanceParamsWithContext(ctx context.Context) *DeleteInstanceParams
- func NewDeleteInstanceParamsWithHTTPClient(client *http.Client) *DeleteInstanceParams
- func NewDeleteInstanceParamsWithTimeout(timeout time.Duration) *DeleteInstanceParams
- func (o *DeleteInstanceParams) SetBody(body string)
- func (o *DeleteInstanceParams) SetContext(ctx context.Context)
- func (o *DeleteInstanceParams) SetHTTPClient(client *http.Client)
- func (o *DeleteInstanceParams) SetMuteLocator(muteLocator string)
- func (o *DeleteInstanceParams) SetTimeout(timeout time.Duration)
- func (o *DeleteInstanceParams) WithBody(body string) *DeleteInstanceParams
- func (o *DeleteInstanceParams) WithContext(ctx context.Context) *DeleteInstanceParams
- func (o *DeleteInstanceParams) WithHTTPClient(client *http.Client) *DeleteInstanceParams
- func (o *DeleteInstanceParams) WithMuteLocator(muteLocator string) *DeleteInstanceParams
- func (o *DeleteInstanceParams) WithTimeout(timeout time.Duration) *DeleteInstanceParams
- func (o *DeleteInstanceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteInstanceReader
- type GetMutesOK
- type GetMutesParams
- func (o *GetMutesParams) SetContext(ctx context.Context)
- func (o *GetMutesParams) SetFields(fields *string)
- func (o *GetMutesParams) SetHTTPClient(client *http.Client)
- func (o *GetMutesParams) SetLocator(locator *string)
- func (o *GetMutesParams) SetTimeout(timeout time.Duration)
- func (o *GetMutesParams) WithContext(ctx context.Context) *GetMutesParams
- func (o *GetMutesParams) WithFields(fields *string) *GetMutesParams
- func (o *GetMutesParams) WithHTTPClient(client *http.Client) *GetMutesParams
- func (o *GetMutesParams) WithLocator(locator *string) *GetMutesParams
- func (o *GetMutesParams) WithTimeout(timeout time.Duration) *GetMutesParams
- func (o *GetMutesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMutesReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for mute API
func (*Client) CreateInstance ¶
func (a *Client) CreateInstance(params *CreateInstanceParams, authInfo runtime.ClientAuthInfoWriter) (*CreateInstanceOK, error)
CreateInstance create instance API
func (*Client) CreateInstances ¶
func (a *Client) CreateInstances(params *CreateInstancesParams, authInfo runtime.ClientAuthInfoWriter) (*CreateInstancesOK, error)
CreateInstances create instances API
func (*Client) DeleteInstance ¶
func (a *Client) DeleteInstance(params *DeleteInstanceParams, authInfo runtime.ClientAuthInfoWriter) error
DeleteInstance delete instance API
func (*Client) GetMutes ¶
func (a *Client) GetMutes(params *GetMutesParams, authInfo runtime.ClientAuthInfoWriter) (*GetMutesOK, error)
GetMutes get mutes API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { CreateInstance(params *CreateInstanceParams, authInfo runtime.ClientAuthInfoWriter) (*CreateInstanceOK, error) CreateInstances(params *CreateInstancesParams, authInfo runtime.ClientAuthInfoWriter) (*CreateInstancesOK, error) DeleteInstance(params *DeleteInstanceParams, authInfo runtime.ClientAuthInfoWriter) error GetMutes(params *GetMutesParams, authInfo runtime.ClientAuthInfoWriter) (*GetMutesOK, 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 mute API client.
type CreateInstanceOK ¶
CreateInstanceOK handles this case with default header values.
successful operation
func NewCreateInstanceOK ¶
func NewCreateInstanceOK() *CreateInstanceOK
NewCreateInstanceOK creates a CreateInstanceOK with default headers values
func (*CreateInstanceOK) Error ¶
func (o *CreateInstanceOK) Error() string
func (*CreateInstanceOK) GetPayload ¶
func (o *CreateInstanceOK) GetPayload() *models.Mute
type CreateInstanceParams ¶
type CreateInstanceParams struct { /*Body*/ Body *models.Mute /*Fields*/ Fields *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateInstanceParams contains all the parameters to send to the API endpoint for the create instance operation typically these are written to a http.Request
func NewCreateInstanceParams ¶
func NewCreateInstanceParams() *CreateInstanceParams
NewCreateInstanceParams creates a new CreateInstanceParams object with the default values initialized.
func NewCreateInstanceParamsWithContext ¶
func NewCreateInstanceParamsWithContext(ctx context.Context) *CreateInstanceParams
NewCreateInstanceParamsWithContext creates a new CreateInstanceParams object with the default values initialized, and the ability to set a context for a request
func NewCreateInstanceParamsWithHTTPClient ¶
func NewCreateInstanceParamsWithHTTPClient(client *http.Client) *CreateInstanceParams
NewCreateInstanceParamsWithHTTPClient creates a new CreateInstanceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateInstanceParamsWithTimeout ¶
func NewCreateInstanceParamsWithTimeout(timeout time.Duration) *CreateInstanceParams
NewCreateInstanceParamsWithTimeout creates a new CreateInstanceParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateInstanceParams) SetBody ¶
func (o *CreateInstanceParams) SetBody(body *models.Mute)
SetBody adds the body to the create instance params
func (*CreateInstanceParams) SetContext ¶
func (o *CreateInstanceParams) SetContext(ctx context.Context)
SetContext adds the context to the create instance params
func (*CreateInstanceParams) SetFields ¶
func (o *CreateInstanceParams) SetFields(fields *string)
SetFields adds the fields to the create instance params
func (*CreateInstanceParams) SetHTTPClient ¶
func (o *CreateInstanceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create instance params
func (*CreateInstanceParams) SetTimeout ¶
func (o *CreateInstanceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create instance params
func (*CreateInstanceParams) WithBody ¶
func (o *CreateInstanceParams) WithBody(body *models.Mute) *CreateInstanceParams
WithBody adds the body to the create instance params
func (*CreateInstanceParams) WithContext ¶
func (o *CreateInstanceParams) WithContext(ctx context.Context) *CreateInstanceParams
WithContext adds the context to the create instance params
func (*CreateInstanceParams) WithFields ¶
func (o *CreateInstanceParams) WithFields(fields *string) *CreateInstanceParams
WithFields adds the fields to the create instance params
func (*CreateInstanceParams) WithHTTPClient ¶
func (o *CreateInstanceParams) WithHTTPClient(client *http.Client) *CreateInstanceParams
WithHTTPClient adds the HTTPClient to the create instance params
func (*CreateInstanceParams) WithTimeout ¶
func (o *CreateInstanceParams) WithTimeout(timeout time.Duration) *CreateInstanceParams
WithTimeout adds the timeout to the create instance params
func (*CreateInstanceParams) WriteToRequest ¶
func (o *CreateInstanceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateInstanceReader ¶
type CreateInstanceReader struct {
// contains filtered or unexported fields
}
CreateInstanceReader is a Reader for the CreateInstance structure.
func (*CreateInstanceReader) ReadResponse ¶
func (o *CreateInstanceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateInstancesOK ¶
CreateInstancesOK handles this case with default header values.
successful operation
func NewCreateInstancesOK ¶
func NewCreateInstancesOK() *CreateInstancesOK
NewCreateInstancesOK creates a CreateInstancesOK with default headers values
func (*CreateInstancesOK) Error ¶
func (o *CreateInstancesOK) Error() string
func (*CreateInstancesOK) GetPayload ¶
func (o *CreateInstancesOK) GetPayload() *models.Mutes
type CreateInstancesParams ¶
type CreateInstancesParams struct { /*Body*/ Body *models.Mutes /*Fields*/ Fields *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateInstancesParams contains all the parameters to send to the API endpoint for the create instances operation typically these are written to a http.Request
func NewCreateInstancesParams ¶
func NewCreateInstancesParams() *CreateInstancesParams
NewCreateInstancesParams creates a new CreateInstancesParams object with the default values initialized.
func NewCreateInstancesParamsWithContext ¶
func NewCreateInstancesParamsWithContext(ctx context.Context) *CreateInstancesParams
NewCreateInstancesParamsWithContext creates a new CreateInstancesParams object with the default values initialized, and the ability to set a context for a request
func NewCreateInstancesParamsWithHTTPClient ¶
func NewCreateInstancesParamsWithHTTPClient(client *http.Client) *CreateInstancesParams
NewCreateInstancesParamsWithHTTPClient creates a new CreateInstancesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateInstancesParamsWithTimeout ¶
func NewCreateInstancesParamsWithTimeout(timeout time.Duration) *CreateInstancesParams
NewCreateInstancesParamsWithTimeout creates a new CreateInstancesParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateInstancesParams) SetBody ¶
func (o *CreateInstancesParams) SetBody(body *models.Mutes)
SetBody adds the body to the create instances params
func (*CreateInstancesParams) SetContext ¶
func (o *CreateInstancesParams) SetContext(ctx context.Context)
SetContext adds the context to the create instances params
func (*CreateInstancesParams) SetFields ¶
func (o *CreateInstancesParams) SetFields(fields *string)
SetFields adds the fields to the create instances params
func (*CreateInstancesParams) SetHTTPClient ¶
func (o *CreateInstancesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create instances params
func (*CreateInstancesParams) SetTimeout ¶
func (o *CreateInstancesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create instances params
func (*CreateInstancesParams) WithBody ¶
func (o *CreateInstancesParams) WithBody(body *models.Mutes) *CreateInstancesParams
WithBody adds the body to the create instances params
func (*CreateInstancesParams) WithContext ¶
func (o *CreateInstancesParams) WithContext(ctx context.Context) *CreateInstancesParams
WithContext adds the context to the create instances params
func (*CreateInstancesParams) WithFields ¶
func (o *CreateInstancesParams) WithFields(fields *string) *CreateInstancesParams
WithFields adds the fields to the create instances params
func (*CreateInstancesParams) WithHTTPClient ¶
func (o *CreateInstancesParams) WithHTTPClient(client *http.Client) *CreateInstancesParams
WithHTTPClient adds the HTTPClient to the create instances params
func (*CreateInstancesParams) WithTimeout ¶
func (o *CreateInstancesParams) WithTimeout(timeout time.Duration) *CreateInstancesParams
WithTimeout adds the timeout to the create instances params
func (*CreateInstancesParams) WriteToRequest ¶
func (o *CreateInstancesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateInstancesReader ¶
type CreateInstancesReader struct {
// contains filtered or unexported fields
}
CreateInstancesReader is a Reader for the CreateInstances structure.
func (*CreateInstancesReader) ReadResponse ¶
func (o *CreateInstancesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteInstanceDefault ¶
type DeleteInstanceDefault struct {
// contains filtered or unexported fields
}
DeleteInstanceDefault handles this case with default header values.
successful operation
func NewDeleteInstanceDefault ¶
func NewDeleteInstanceDefault(code int) *DeleteInstanceDefault
NewDeleteInstanceDefault creates a DeleteInstanceDefault with default headers values
func (*DeleteInstanceDefault) Code ¶
func (o *DeleteInstanceDefault) Code() int
Code gets the status code for the delete instance default response
func (*DeleteInstanceDefault) Error ¶
func (o *DeleteInstanceDefault) Error() string
type DeleteInstanceParams ¶
type DeleteInstanceParams struct { /*Body*/ Body string /*MuteLocator*/ MuteLocator string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteInstanceParams contains all the parameters to send to the API endpoint for the delete instance operation typically these are written to a http.Request
func NewDeleteInstanceParams ¶
func NewDeleteInstanceParams() *DeleteInstanceParams
NewDeleteInstanceParams creates a new DeleteInstanceParams object with the default values initialized.
func NewDeleteInstanceParamsWithContext ¶
func NewDeleteInstanceParamsWithContext(ctx context.Context) *DeleteInstanceParams
NewDeleteInstanceParamsWithContext creates a new DeleteInstanceParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteInstanceParamsWithHTTPClient ¶
func NewDeleteInstanceParamsWithHTTPClient(client *http.Client) *DeleteInstanceParams
NewDeleteInstanceParamsWithHTTPClient creates a new DeleteInstanceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteInstanceParamsWithTimeout ¶
func NewDeleteInstanceParamsWithTimeout(timeout time.Duration) *DeleteInstanceParams
NewDeleteInstanceParamsWithTimeout creates a new DeleteInstanceParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteInstanceParams) SetBody ¶
func (o *DeleteInstanceParams) SetBody(body string)
SetBody adds the body to the delete instance params
func (*DeleteInstanceParams) SetContext ¶
func (o *DeleteInstanceParams) SetContext(ctx context.Context)
SetContext adds the context to the delete instance params
func (*DeleteInstanceParams) SetHTTPClient ¶
func (o *DeleteInstanceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete instance params
func (*DeleteInstanceParams) SetMuteLocator ¶
func (o *DeleteInstanceParams) SetMuteLocator(muteLocator string)
SetMuteLocator adds the muteLocator to the delete instance params
func (*DeleteInstanceParams) SetTimeout ¶
func (o *DeleteInstanceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete instance params
func (*DeleteInstanceParams) WithBody ¶
func (o *DeleteInstanceParams) WithBody(body string) *DeleteInstanceParams
WithBody adds the body to the delete instance params
func (*DeleteInstanceParams) WithContext ¶
func (o *DeleteInstanceParams) WithContext(ctx context.Context) *DeleteInstanceParams
WithContext adds the context to the delete instance params
func (*DeleteInstanceParams) WithHTTPClient ¶
func (o *DeleteInstanceParams) WithHTTPClient(client *http.Client) *DeleteInstanceParams
WithHTTPClient adds the HTTPClient to the delete instance params
func (*DeleteInstanceParams) WithMuteLocator ¶
func (o *DeleteInstanceParams) WithMuteLocator(muteLocator string) *DeleteInstanceParams
WithMuteLocator adds the muteLocator to the delete instance params
func (*DeleteInstanceParams) WithTimeout ¶
func (o *DeleteInstanceParams) WithTimeout(timeout time.Duration) *DeleteInstanceParams
WithTimeout adds the timeout to the delete instance params
func (*DeleteInstanceParams) WriteToRequest ¶
func (o *DeleteInstanceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteInstanceReader ¶
type DeleteInstanceReader struct {
// contains filtered or unexported fields
}
DeleteInstanceReader is a Reader for the DeleteInstance structure.
func (*DeleteInstanceReader) ReadResponse ¶
func (o *DeleteInstanceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetMutesOK ¶
GetMutesOK handles this case with default header values.
successful operation
func NewGetMutesOK ¶
func NewGetMutesOK() *GetMutesOK
NewGetMutesOK creates a GetMutesOK with default headers values
func (*GetMutesOK) Error ¶
func (o *GetMutesOK) Error() string
func (*GetMutesOK) GetPayload ¶
func (o *GetMutesOK) GetPayload() *models.Mutes
type GetMutesParams ¶
type GetMutesParams struct { /*Fields*/ Fields *string /*Locator*/ Locator *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetMutesParams contains all the parameters to send to the API endpoint for the get mutes operation typically these are written to a http.Request
func NewGetMutesParams ¶
func NewGetMutesParams() *GetMutesParams
NewGetMutesParams creates a new GetMutesParams object with the default values initialized.
func NewGetMutesParamsWithContext ¶
func NewGetMutesParamsWithContext(ctx context.Context) *GetMutesParams
NewGetMutesParamsWithContext creates a new GetMutesParams object with the default values initialized, and the ability to set a context for a request
func NewGetMutesParamsWithHTTPClient ¶
func NewGetMutesParamsWithHTTPClient(client *http.Client) *GetMutesParams
NewGetMutesParamsWithHTTPClient creates a new GetMutesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetMutesParamsWithTimeout ¶
func NewGetMutesParamsWithTimeout(timeout time.Duration) *GetMutesParams
NewGetMutesParamsWithTimeout creates a new GetMutesParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetMutesParams) SetContext ¶
func (o *GetMutesParams) SetContext(ctx context.Context)
SetContext adds the context to the get mutes params
func (*GetMutesParams) SetFields ¶
func (o *GetMutesParams) SetFields(fields *string)
SetFields adds the fields to the get mutes params
func (*GetMutesParams) SetHTTPClient ¶
func (o *GetMutesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get mutes params
func (*GetMutesParams) SetLocator ¶
func (o *GetMutesParams) SetLocator(locator *string)
SetLocator adds the locator to the get mutes params
func (*GetMutesParams) SetTimeout ¶
func (o *GetMutesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get mutes params
func (*GetMutesParams) WithContext ¶
func (o *GetMutesParams) WithContext(ctx context.Context) *GetMutesParams
WithContext adds the context to the get mutes params
func (*GetMutesParams) WithFields ¶
func (o *GetMutesParams) WithFields(fields *string) *GetMutesParams
WithFields adds the fields to the get mutes params
func (*GetMutesParams) WithHTTPClient ¶
func (o *GetMutesParams) WithHTTPClient(client *http.Client) *GetMutesParams
WithHTTPClient adds the HTTPClient to the get mutes params
func (*GetMutesParams) WithLocator ¶
func (o *GetMutesParams) WithLocator(locator *string) *GetMutesParams
WithLocator adds the locator to the get mutes params
func (*GetMutesParams) WithTimeout ¶
func (o *GetMutesParams) WithTimeout(timeout time.Duration) *GetMutesParams
WithTimeout adds the timeout to the get mutes params
func (*GetMutesParams) WriteToRequest ¶
func (o *GetMutesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetMutesReader ¶
type GetMutesReader struct {
// contains filtered or unexported fields
}
GetMutesReader is a Reader for the GetMutes structure.
func (*GetMutesReader) ReadResponse ¶
func (o *GetMutesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.