Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetReceiversOK
- func (o *GetReceiversOK) Code() int
- func (o *GetReceiversOK) Error() string
- func (o *GetReceiversOK) GetPayload() []*models.Receiver
- func (o *GetReceiversOK) IsClientError() bool
- func (o *GetReceiversOK) IsCode(code int) bool
- func (o *GetReceiversOK) IsRedirect() bool
- func (o *GetReceiversOK) IsServerError() bool
- func (o *GetReceiversOK) IsSuccess() bool
- func (o *GetReceiversOK) String() string
- type GetReceiversParams
- func (o *GetReceiversParams) SetContext(ctx context.Context)
- func (o *GetReceiversParams) SetDefaults()
- func (o *GetReceiversParams) SetHTTPClient(client *http.Client)
- func (o *GetReceiversParams) SetTimeout(timeout time.Duration)
- func (o *GetReceiversParams) WithContext(ctx context.Context) *GetReceiversParams
- func (o *GetReceiversParams) WithDefaults() *GetReceiversParams
- func (o *GetReceiversParams) WithHTTPClient(client *http.Client) *GetReceiversParams
- func (o *GetReceiversParams) WithTimeout(timeout time.Duration) *GetReceiversParams
- func (o *GetReceiversParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetReceiversReader
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 receiver API
func (*Client) GetReceivers ¶
func (a *Client) GetReceivers(params *GetReceiversParams, opts ...ClientOption) (*GetReceiversOK, error)
GetReceivers Get list of all receivers (name of notification integrations)
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶ added in v0.25.0
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶ added in v0.22.0
type ClientService interface { GetReceivers(params *GetReceiversParams, opts ...ClientOption) (*GetReceiversOK, 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 receiver API client.
type GetReceiversOK ¶
GetReceiversOK describes a response with status code 200, with default header values.
Get receivers response
func NewGetReceiversOK ¶
func NewGetReceiversOK() *GetReceiversOK
NewGetReceiversOK creates a GetReceiversOK with default headers values
func (*GetReceiversOK) Code ¶ added in v0.27.0
func (o *GetReceiversOK) Code() int
Code gets the status code for the get receivers o k response
func (*GetReceiversOK) Error ¶
func (o *GetReceiversOK) Error() string
func (*GetReceiversOK) GetPayload ¶ added in v0.20.0
func (o *GetReceiversOK) GetPayload() []*models.Receiver
func (*GetReceiversOK) IsClientError ¶ added in v0.25.0
func (o *GetReceiversOK) IsClientError() bool
IsClientError returns true when this get receivers o k response has a 4xx status code
func (*GetReceiversOK) IsCode ¶ added in v0.25.0
func (o *GetReceiversOK) IsCode(code int) bool
IsCode returns true when this get receivers o k response a status code equal to that given
func (*GetReceiversOK) IsRedirect ¶ added in v0.25.0
func (o *GetReceiversOK) IsRedirect() bool
IsRedirect returns true when this get receivers o k response has a 3xx status code
func (*GetReceiversOK) IsServerError ¶ added in v0.25.0
func (o *GetReceiversOK) IsServerError() bool
IsServerError returns true when this get receivers o k response has a 5xx status code
func (*GetReceiversOK) IsSuccess ¶ added in v0.25.0
func (o *GetReceiversOK) IsSuccess() bool
IsSuccess returns true when this get receivers o k response has a 2xx status code
func (*GetReceiversOK) String ¶ added in v0.25.0
func (o *GetReceiversOK) String() string
type GetReceiversParams ¶
type GetReceiversParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetReceiversParams contains all the parameters to send to the API endpoint
for the get receivers operation. Typically these are written to a http.Request.
func NewGetReceiversParams ¶
func NewGetReceiversParams() *GetReceiversParams
NewGetReceiversParams creates a new GetReceiversParams 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 NewGetReceiversParamsWithContext ¶
func NewGetReceiversParamsWithContext(ctx context.Context) *GetReceiversParams
NewGetReceiversParamsWithContext creates a new GetReceiversParams object with the ability to set a context for a request.
func NewGetReceiversParamsWithHTTPClient ¶
func NewGetReceiversParamsWithHTTPClient(client *http.Client) *GetReceiversParams
NewGetReceiversParamsWithHTTPClient creates a new GetReceiversParams object with the ability to set a custom HTTPClient for a request.
func NewGetReceiversParamsWithTimeout ¶
func NewGetReceiversParamsWithTimeout(timeout time.Duration) *GetReceiversParams
NewGetReceiversParamsWithTimeout creates a new GetReceiversParams object with the ability to set a timeout on a request.
func (*GetReceiversParams) SetContext ¶
func (o *GetReceiversParams) SetContext(ctx context.Context)
SetContext adds the context to the get receivers params
func (*GetReceiversParams) SetDefaults ¶ added in v0.25.0
func (o *GetReceiversParams) SetDefaults()
SetDefaults hydrates default values in the get receivers params (not the query body).
All values with no default are reset to their zero value.
func (*GetReceiversParams) SetHTTPClient ¶
func (o *GetReceiversParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get receivers params
func (*GetReceiversParams) SetTimeout ¶
func (o *GetReceiversParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get receivers params
func (*GetReceiversParams) WithContext ¶
func (o *GetReceiversParams) WithContext(ctx context.Context) *GetReceiversParams
WithContext adds the context to the get receivers params
func (*GetReceiversParams) WithDefaults ¶ added in v0.25.0
func (o *GetReceiversParams) WithDefaults() *GetReceiversParams
WithDefaults hydrates default values in the get receivers params (not the query body).
All values with no default are reset to their zero value.
func (*GetReceiversParams) WithHTTPClient ¶
func (o *GetReceiversParams) WithHTTPClient(client *http.Client) *GetReceiversParams
WithHTTPClient adds the HTTPClient to the get receivers params
func (*GetReceiversParams) WithTimeout ¶
func (o *GetReceiversParams) WithTimeout(timeout time.Duration) *GetReceiversParams
WithTimeout adds the timeout to the get receivers params
func (*GetReceiversParams) WriteToRequest ¶
func (o *GetReceiversParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetReceiversReader ¶
type GetReceiversReader struct {
// contains filtered or unexported fields
}
GetReceiversReader is a Reader for the GetReceivers structure.
func (*GetReceiversReader) ReadResponse ¶
func (o *GetReceiversReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.