Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetPluginsInfoOK
- func (o *GetPluginsInfoOK) Code() int
- func (o *GetPluginsInfoOK) Error() string
- func (o *GetPluginsInfoOK) GetPayload() []*kbmodel.PluginInfo
- func (o *GetPluginsInfoOK) IsClientError() bool
- func (o *GetPluginsInfoOK) IsCode(code int) bool
- func (o *GetPluginsInfoOK) IsRedirect() bool
- func (o *GetPluginsInfoOK) IsServerError() bool
- func (o *GetPluginsInfoOK) IsSuccess() bool
- func (o *GetPluginsInfoOK) String() string
- type GetPluginsInfoParams
- func NewGetPluginsInfoParams() *GetPluginsInfoParams
- func NewGetPluginsInfoParamsWithContext(ctx context.Context) *GetPluginsInfoParams
- func NewGetPluginsInfoParamsWithHTTPClient(client *http.Client) *GetPluginsInfoParams
- func NewGetPluginsInfoParamsWithTimeout(timeout time.Duration) *GetPluginsInfoParams
- func (o *GetPluginsInfoParams) SetContext(ctx context.Context)
- func (o *GetPluginsInfoParams) SetDefaults()
- func (o *GetPluginsInfoParams) SetHTTPClient(client *http.Client)
- func (o *GetPluginsInfoParams) SetTimeout(timeout time.Duration)
- func (o *GetPluginsInfoParams) WithContext(ctx context.Context) *GetPluginsInfoParams
- func (o *GetPluginsInfoParams) WithDefaults() *GetPluginsInfoParams
- func (o *GetPluginsInfoParams) WithHTTPClient(client *http.Client) *GetPluginsInfoParams
- func (o *GetPluginsInfoParams) WithTimeout(timeout time.Duration) *GetPluginsInfoParams
- func (o *GetPluginsInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPluginsInfoReader
- type KillbillDefaults
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 plugin info API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter, defaults KillbillDefaults) *Client
New creates a new plugin info API client.
func (*Client) GetPluginsInfo ¶
func (a *Client) GetPluginsInfo(ctx context.Context, params *GetPluginsInfoParams) (*GetPluginsInfoOK, error)
GetPluginsInfo retrieves the list of registered plugins
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 is the option for Client methods
type ClientService ¶
type ClientService interface { GetPluginsInfo(ctx context.Context, params *GetPluginsInfoParams) (*GetPluginsInfoOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
type GetPluginsInfoOK ¶
type GetPluginsInfoOK struct { Payload []*kbmodel.PluginInfo HttpResponse runtime.ClientResponse }
GetPluginsInfoOK describes a response with status code 200, with default header values.
successful operation
func NewGetPluginsInfoOK ¶
func NewGetPluginsInfoOK() *GetPluginsInfoOK
NewGetPluginsInfoOK creates a GetPluginsInfoOK with default headers values
func (*GetPluginsInfoOK) Code ¶
func (o *GetPluginsInfoOK) Code() int
Code gets the status code for the get plugins info o k response
func (*GetPluginsInfoOK) Error ¶
func (o *GetPluginsInfoOK) Error() string
func (*GetPluginsInfoOK) GetPayload ¶
func (o *GetPluginsInfoOK) GetPayload() []*kbmodel.PluginInfo
func (*GetPluginsInfoOK) IsClientError ¶
func (o *GetPluginsInfoOK) IsClientError() bool
IsClientError returns true when this get plugins info o k response has a 4xx status code
func (*GetPluginsInfoOK) IsCode ¶
func (o *GetPluginsInfoOK) IsCode(code int) bool
IsCode returns true when this get plugins info o k response a status code equal to that given
func (*GetPluginsInfoOK) IsRedirect ¶
func (o *GetPluginsInfoOK) IsRedirect() bool
IsRedirect returns true when this get plugins info o k response has a 3xx status code
func (*GetPluginsInfoOK) IsServerError ¶
func (o *GetPluginsInfoOK) IsServerError() bool
IsServerError returns true when this get plugins info o k response has a 5xx status code
func (*GetPluginsInfoOK) IsSuccess ¶
func (o *GetPluginsInfoOK) IsSuccess() bool
IsSuccess returns true when this get plugins info o k response has a 2xx status code
func (*GetPluginsInfoOK) String ¶
func (o *GetPluginsInfoOK) String() string
type GetPluginsInfoParams ¶
type GetPluginsInfoParams struct { WithProfilingInfo *string // If set, return KB hprof headers WithStackTrace *bool // If set, returns full stack trace with error message Context context.Context HTTPClient *http.Client ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource. // contains filtered or unexported fields }
GetPluginsInfoParams contains all the parameters to send to the API endpoint
for the get plugins info operation. Typically these are written to a http.Request.
func NewGetPluginsInfoParams ¶
func NewGetPluginsInfoParams() *GetPluginsInfoParams
NewGetPluginsInfoParams creates a new GetPluginsInfoParams 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 NewGetPluginsInfoParamsWithContext ¶
func NewGetPluginsInfoParamsWithContext(ctx context.Context) *GetPluginsInfoParams
NewGetPluginsInfoParamsWithContext creates a new GetPluginsInfoParams object with the ability to set a context for a request.
func NewGetPluginsInfoParamsWithHTTPClient ¶
func NewGetPluginsInfoParamsWithHTTPClient(client *http.Client) *GetPluginsInfoParams
NewGetPluginsInfoParamsWithHTTPClient creates a new GetPluginsInfoParams object with the ability to set a custom HTTPClient for a request.
func NewGetPluginsInfoParamsWithTimeout ¶
func NewGetPluginsInfoParamsWithTimeout(timeout time.Duration) *GetPluginsInfoParams
NewGetPluginsInfoParamsWithTimeout creates a new GetPluginsInfoParams object with the ability to set a timeout on a request.
func (*GetPluginsInfoParams) SetContext ¶
func (o *GetPluginsInfoParams) SetContext(ctx context.Context)
SetContext adds the context to the get plugins info params
func (*GetPluginsInfoParams) SetDefaults ¶
func (o *GetPluginsInfoParams) SetDefaults()
SetDefaults hydrates default values in the get plugins info params (not the query body).
All values with no default are reset to their zero value.
func (*GetPluginsInfoParams) SetHTTPClient ¶
func (o *GetPluginsInfoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get plugins info params
func (*GetPluginsInfoParams) SetTimeout ¶
func (o *GetPluginsInfoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get plugins info params
func (*GetPluginsInfoParams) WithContext ¶
func (o *GetPluginsInfoParams) WithContext(ctx context.Context) *GetPluginsInfoParams
WithContext adds the context to the get plugins info params
func (*GetPluginsInfoParams) WithDefaults ¶
func (o *GetPluginsInfoParams) WithDefaults() *GetPluginsInfoParams
WithDefaults hydrates default values in the get plugins info params (not the query body).
All values with no default are reset to their zero value.
func (*GetPluginsInfoParams) WithHTTPClient ¶
func (o *GetPluginsInfoParams) WithHTTPClient(client *http.Client) *GetPluginsInfoParams
WithHTTPClient adds the HTTPClient to the get plugins info params
func (*GetPluginsInfoParams) WithTimeout ¶
func (o *GetPluginsInfoParams) WithTimeout(timeout time.Duration) *GetPluginsInfoParams
WithTimeout adds the timeout to the get plugins info params
func (*GetPluginsInfoParams) WriteToRequest ¶
func (o *GetPluginsInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPluginsInfoReader ¶
type GetPluginsInfoReader struct {
// contains filtered or unexported fields
}
GetPluginsInfoReader is a Reader for the GetPluginsInfo structure.
func (*GetPluginsInfoReader) ReadResponse ¶
func (o *GetPluginsInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type KillbillDefaults ¶
type KillbillDefaults interface { // Default CreatedBy. If not set explicitly in params, this will be used. XKillbillCreatedBy() *string // Default Comment. If not set explicitly in params, this will be used. XKillbillComment() *string // Default Reason. If not set explicitly in params, this will be used. XKillbillReason() *string // Default WithWithProfilingInfo. If not set explicitly in params, this will be used. KillbillWithProfilingInfo() *string // Default WithStackTrace. If not set explicitly in params, this will be used. KillbillWithStackTrace() *bool }
killbill default values. When a call is made to an operation, these values are used if params doesn't specify them.