debug

package
v3.0.3-draft Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 (*Client) GetClock

func (a *Client) GetClock(params *GetClockParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClockOK, error)

GetClock gets test clock

func (*Client) SetClock

func (a *Client) SetClock(params *SetClockParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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(params *GetClockParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClockOK, error)

	SetClock(params *SetClockParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetClockOK, 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 debug API client.

type GetClockOK

type GetClockOK struct {
	Payload *kbmodel.Clock
}
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) Error

func (o *GetClockOK) Error() string

func (*GetClockOK) GetPayload

func (o *GetClockOK) GetPayload() *kbmodel.Clock

type GetClockParams

type GetClockParams struct {

	// XKillbillAPIKey.
	XKillbillAPIKey string

	// XKillbillAPISecret.
	XKillbillAPISecret string

	Context    context.Context
	HTTPClient *http.Client
	// 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 SetClockOK

type SetClockOK struct {
	Payload *kbmodel.Clock
}
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) Error

func (o *SetClockOK) Error() string

func (*SetClockOK) GetPayload

func (o *SetClockOK) GetPayload() *kbmodel.Clock

type SetClockParams

type SetClockParams struct {

	// XKillbillAPIKey.
	XKillbillAPIKey string

	// XKillbillAPISecret.
	XKillbillAPISecret string

	// RequestedDate.
	//
	// Format: date-time
	RequestedDate strfmt.DateTime

	Context    context.Context
	HTTPClient *http.Client
	// 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.

Jump to

Keyboard shortcuts

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