Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetClockOK
- func (o *GetClockOK) Code() int
- func (o *GetClockOK) Error() string
- func (o *GetClockOK) GetPayload() *kbmodel.Clock
- func (o *GetClockOK) IsClientError() bool
- func (o *GetClockOK) IsCode(code int) bool
- func (o *GetClockOK) IsRedirect() bool
- func (o *GetClockOK) IsServerError() bool
- func (o *GetClockOK) IsSuccess() bool
- func (o *GetClockOK) String() string
- type GetClockParams
- func (o *GetClockParams) SetContext(ctx context.Context)
- func (o *GetClockParams) SetDefaults()
- func (o *GetClockParams) SetHTTPClient(client *http.Client)
- func (o *GetClockParams) SetTimeout(timeout time.Duration)
- func (o *GetClockParams) SetXKillbillAPIKey(xKillbillAPIKey string)
- func (o *GetClockParams) SetXKillbillAPISecret(xKillbillAPISecret string)
- func (o *GetClockParams) WithContext(ctx context.Context) *GetClockParams
- func (o *GetClockParams) WithDefaults() *GetClockParams
- func (o *GetClockParams) WithHTTPClient(client *http.Client) *GetClockParams
- func (o *GetClockParams) WithTimeout(timeout time.Duration) *GetClockParams
- func (o *GetClockParams) WithXKillbillAPIKey(xKillbillAPIKey string) *GetClockParams
- func (o *GetClockParams) WithXKillbillAPISecret(xKillbillAPISecret string) *GetClockParams
- func (o *GetClockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetClockReader
- type KillbillDefaults
- type SetClockOK
- func (o *SetClockOK) Code() int
- func (o *SetClockOK) Error() string
- func (o *SetClockOK) GetPayload() *kbmodel.Clock
- func (o *SetClockOK) IsClientError() bool
- func (o *SetClockOK) IsCode(code int) bool
- func (o *SetClockOK) IsRedirect() bool
- func (o *SetClockOK) IsServerError() bool
- func (o *SetClockOK) IsSuccess() bool
- func (o *SetClockOK) String() string
- type SetClockParams
- func (o *SetClockParams) SetContext(ctx context.Context)
- func (o *SetClockParams) SetDefaults()
- func (o *SetClockParams) SetHTTPClient(client *http.Client)
- func (o *SetClockParams) SetRequestedDate(requestedDate strfmt.DateTime)
- func (o *SetClockParams) SetTimeout(timeout time.Duration)
- func (o *SetClockParams) SetXKillbillAPIKey(xKillbillAPIKey string)
- func (o *SetClockParams) SetXKillbillAPISecret(xKillbillAPISecret string)
- func (o *SetClockParams) WithContext(ctx context.Context) *SetClockParams
- func (o *SetClockParams) WithDefaults() *SetClockParams
- func (o *SetClockParams) WithHTTPClient(client *http.Client) *SetClockParams
- func (o *SetClockParams) WithRequestedDate(requestedDate strfmt.DateTime) *SetClockParams
- func (o *SetClockParams) WithTimeout(timeout time.Duration) *SetClockParams
- func (o *SetClockParams) WithXKillbillAPIKey(xKillbillAPIKey string) *SetClockParams
- func (o *SetClockParams) WithXKillbillAPISecret(xKillbillAPISecret string) *SetClockParams
- func (o *SetClockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetClockReader
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 debug API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter, defaults KillbillDefaults) *Client
New creates a new debug API client.
func (*Client) GetClock ¶
func (a *Client) GetClock(ctx context.Context, params *GetClockParams) (*GetClockOK, error)
GetClock gets test clock
func (*Client) SetClock ¶
func (a *Client) SetClock(ctx context.Context, params *SetClockParams) (*SetClockOK, error)
SetClock sets test clock
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 { GetClock(ctx context.Context, params *GetClockParams) (*GetClockOK, error) SetClock(ctx context.Context, params *SetClockParams) (*SetClockOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
type GetClockOK ¶
type GetClockOK struct { Payload *kbmodel.Clock HttpResponse runtime.ClientResponse }
GetClockOK describes a response with status code 200, with default header values.
successful operation
func NewGetClockOK ¶
func NewGetClockOK() *GetClockOK
NewGetClockOK creates a GetClockOK with default headers values
func (*GetClockOK) Code ¶
func (o *GetClockOK) Code() int
Code gets the status code for the get clock o k response
func (*GetClockOK) Error ¶
func (o *GetClockOK) Error() string
func (*GetClockOK) GetPayload ¶
func (o *GetClockOK) GetPayload() *kbmodel.Clock
func (*GetClockOK) IsClientError ¶
func (o *GetClockOK) IsClientError() bool
IsClientError returns true when this get clock o k response has a 4xx status code
func (*GetClockOK) IsCode ¶
func (o *GetClockOK) IsCode(code int) bool
IsCode returns true when this get clock o k response a status code equal to that given
func (*GetClockOK) IsRedirect ¶
func (o *GetClockOK) IsRedirect() bool
IsRedirect returns true when this get clock o k response has a 3xx status code
func (*GetClockOK) IsServerError ¶
func (o *GetClockOK) IsServerError() bool
IsServerError returns true when this get clock o k response has a 5xx status code
func (*GetClockOK) IsSuccess ¶
func (o *GetClockOK) IsSuccess() bool
IsSuccess returns true when this get clock o k response has a 2xx status code
func (*GetClockOK) String ¶
func (o *GetClockOK) String() string
type GetClockParams ¶
type GetClockParams struct { // XKillbillAPIKey. XKillbillAPIKey string // XKillbillAPISecret. XKillbillAPISecret string 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 }
GetClockParams contains all the parameters to send to the API endpoint
for the get clock operation. Typically these are written to a http.Request.
func NewGetClockParams ¶
func NewGetClockParams() *GetClockParams
NewGetClockParams creates a new GetClockParams 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 NewGetClockParamsWithContext ¶
func NewGetClockParamsWithContext(ctx context.Context) *GetClockParams
NewGetClockParamsWithContext creates a new GetClockParams object with the ability to set a context for a request.
func NewGetClockParamsWithHTTPClient ¶
func NewGetClockParamsWithHTTPClient(client *http.Client) *GetClockParams
NewGetClockParamsWithHTTPClient creates a new GetClockParams object with the ability to set a custom HTTPClient for a request.
func NewGetClockParamsWithTimeout ¶
func NewGetClockParamsWithTimeout(timeout time.Duration) *GetClockParams
NewGetClockParamsWithTimeout creates a new GetClockParams object with the ability to set a timeout on a request.
func (*GetClockParams) SetContext ¶
func (o *GetClockParams) SetContext(ctx context.Context)
SetContext adds the context to the get clock params
func (*GetClockParams) SetDefaults ¶
func (o *GetClockParams) SetDefaults()
SetDefaults hydrates default values in the get clock params (not the query body).
All values with no default are reset to their zero value.
func (*GetClockParams) SetHTTPClient ¶
func (o *GetClockParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get clock params
func (*GetClockParams) SetTimeout ¶
func (o *GetClockParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get clock params
func (*GetClockParams) SetXKillbillAPIKey ¶
func (o *GetClockParams) SetXKillbillAPIKey(xKillbillAPIKey string)
SetXKillbillAPIKey adds the xKillbillApiKey to the get clock params
func (*GetClockParams) SetXKillbillAPISecret ¶
func (o *GetClockParams) SetXKillbillAPISecret(xKillbillAPISecret string)
SetXKillbillAPISecret adds the xKillbillApiSecret to the get clock params
func (*GetClockParams) WithContext ¶
func (o *GetClockParams) WithContext(ctx context.Context) *GetClockParams
WithContext adds the context to the get clock params
func (*GetClockParams) WithDefaults ¶
func (o *GetClockParams) WithDefaults() *GetClockParams
WithDefaults hydrates default values in the get clock params (not the query body).
All values with no default are reset to their zero value.
func (*GetClockParams) WithHTTPClient ¶
func (o *GetClockParams) WithHTTPClient(client *http.Client) *GetClockParams
WithHTTPClient adds the HTTPClient to the get clock params
func (*GetClockParams) WithTimeout ¶
func (o *GetClockParams) WithTimeout(timeout time.Duration) *GetClockParams
WithTimeout adds the timeout to the get clock params
func (*GetClockParams) WithXKillbillAPIKey ¶
func (o *GetClockParams) WithXKillbillAPIKey(xKillbillAPIKey string) *GetClockParams
WithXKillbillAPIKey adds the xKillbillAPIKey to the get clock params
func (*GetClockParams) WithXKillbillAPISecret ¶
func (o *GetClockParams) WithXKillbillAPISecret(xKillbillAPISecret string) *GetClockParams
WithXKillbillAPISecret adds the xKillbillAPISecret to the get clock params
func (*GetClockParams) WriteToRequest ¶
func (o *GetClockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetClockReader ¶
type GetClockReader struct {
// contains filtered or unexported fields
}
GetClockReader is a Reader for the GetClock structure.
func (*GetClockReader) ReadResponse ¶
func (o *GetClockReader) 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.
type SetClockOK ¶
type SetClockOK struct { Payload *kbmodel.Clock HttpResponse runtime.ClientResponse }
SetClockOK describes a response with status code 200, with default header values.
successful operation
func NewSetClockOK ¶
func NewSetClockOK() *SetClockOK
NewSetClockOK creates a SetClockOK with default headers values
func (*SetClockOK) Code ¶
func (o *SetClockOK) Code() int
Code gets the status code for the set clock o k response
func (*SetClockOK) Error ¶
func (o *SetClockOK) Error() string
func (*SetClockOK) GetPayload ¶
func (o *SetClockOK) GetPayload() *kbmodel.Clock
func (*SetClockOK) IsClientError ¶
func (o *SetClockOK) IsClientError() bool
IsClientError returns true when this set clock o k response has a 4xx status code
func (*SetClockOK) IsCode ¶
func (o *SetClockOK) IsCode(code int) bool
IsCode returns true when this set clock o k response a status code equal to that given
func (*SetClockOK) IsRedirect ¶
func (o *SetClockOK) IsRedirect() bool
IsRedirect returns true when this set clock o k response has a 3xx status code
func (*SetClockOK) IsServerError ¶
func (o *SetClockOK) IsServerError() bool
IsServerError returns true when this set clock o k response has a 5xx status code
func (*SetClockOK) IsSuccess ¶
func (o *SetClockOK) IsSuccess() bool
IsSuccess returns true when this set clock o k response has a 2xx status code
func (*SetClockOK) String ¶
func (o *SetClockOK) String() string
type SetClockParams ¶
type SetClockParams struct { // XKillbillAPIKey. XKillbillAPIKey string // XKillbillAPISecret. XKillbillAPISecret string // RequestedDate. // // Format: date-time RequestedDate strfmt.DateTime 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 }
SetClockParams contains all the parameters to send to the API endpoint
for the set clock operation. Typically these are written to a http.Request.
func NewSetClockParams ¶
func NewSetClockParams() *SetClockParams
NewSetClockParams creates a new SetClockParams 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 NewSetClockParamsWithContext ¶
func NewSetClockParamsWithContext(ctx context.Context) *SetClockParams
NewSetClockParamsWithContext creates a new SetClockParams object with the ability to set a context for a request.
func NewSetClockParamsWithHTTPClient ¶
func NewSetClockParamsWithHTTPClient(client *http.Client) *SetClockParams
NewSetClockParamsWithHTTPClient creates a new SetClockParams object with the ability to set a custom HTTPClient for a request.
func NewSetClockParamsWithTimeout ¶
func NewSetClockParamsWithTimeout(timeout time.Duration) *SetClockParams
NewSetClockParamsWithTimeout creates a new SetClockParams object with the ability to set a timeout on a request.
func (*SetClockParams) SetContext ¶
func (o *SetClockParams) SetContext(ctx context.Context)
SetContext adds the context to the set clock params
func (*SetClockParams) SetDefaults ¶
func (o *SetClockParams) SetDefaults()
SetDefaults hydrates default values in the set clock params (not the query body).
All values with no default are reset to their zero value.
func (*SetClockParams) SetHTTPClient ¶
func (o *SetClockParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set clock params
func (*SetClockParams) SetRequestedDate ¶
func (o *SetClockParams) SetRequestedDate(requestedDate strfmt.DateTime)
SetRequestedDate adds the requestedDate to the set clock params
func (*SetClockParams) SetTimeout ¶
func (o *SetClockParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set clock params
func (*SetClockParams) SetXKillbillAPIKey ¶
func (o *SetClockParams) SetXKillbillAPIKey(xKillbillAPIKey string)
SetXKillbillAPIKey adds the xKillbillApiKey to the set clock params
func (*SetClockParams) SetXKillbillAPISecret ¶
func (o *SetClockParams) SetXKillbillAPISecret(xKillbillAPISecret string)
SetXKillbillAPISecret adds the xKillbillApiSecret to the set clock params
func (*SetClockParams) WithContext ¶
func (o *SetClockParams) WithContext(ctx context.Context) *SetClockParams
WithContext adds the context to the set clock params
func (*SetClockParams) WithDefaults ¶
func (o *SetClockParams) WithDefaults() *SetClockParams
WithDefaults hydrates default values in the set clock params (not the query body).
All values with no default are reset to their zero value.
func (*SetClockParams) WithHTTPClient ¶
func (o *SetClockParams) WithHTTPClient(client *http.Client) *SetClockParams
WithHTTPClient adds the HTTPClient to the set clock params
func (*SetClockParams) WithRequestedDate ¶
func (o *SetClockParams) WithRequestedDate(requestedDate strfmt.DateTime) *SetClockParams
WithRequestedDate adds the requestedDate to the set clock params
func (*SetClockParams) WithTimeout ¶
func (o *SetClockParams) WithTimeout(timeout time.Duration) *SetClockParams
WithTimeout adds the timeout to the set clock params
func (*SetClockParams) WithXKillbillAPIKey ¶
func (o *SetClockParams) WithXKillbillAPIKey(xKillbillAPIKey string) *SetClockParams
WithXKillbillAPIKey adds the xKillbillAPIKey to the set clock params
func (*SetClockParams) WithXKillbillAPISecret ¶
func (o *SetClockParams) WithXKillbillAPISecret(xKillbillAPISecret string) *SetClockParams
WithXKillbillAPISecret adds the xKillbillAPISecret to the set clock params
func (*SetClockParams) WriteToRequest ¶
func (o *SetClockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetClockReader ¶
type SetClockReader struct {
// contains filtered or unexported fields
}
SetClockReader is a Reader for the SetClock structure.
func (*SetClockReader) ReadResponse ¶
func (o *SetClockReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.