Documentation ¶
Index ¶
- type Client
- type GetNodesInfoOK
- type GetNodesInfoParams
- func (o *GetNodesInfoParams) SetContext(ctx context.Context)
- func (o *GetNodesInfoParams) SetHTTPClient(client *http.Client)
- func (o *GetNodesInfoParams) SetTimeout(timeout time.Duration)
- func (o *GetNodesInfoParams) WithContext(ctx context.Context) *GetNodesInfoParams
- func (o *GetNodesInfoParams) WithHTTPClient(client *http.Client) *GetNodesInfoParams
- func (o *GetNodesInfoParams) WithTimeout(timeout time.Duration) *GetNodesInfoParams
- func (o *GetNodesInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetNodesInfoReader
- type INodesInfo
- type KillbillDefaults
- type TriggerNodeCommandAccepted
- type TriggerNodeCommandBadRequest
- type TriggerNodeCommandParams
- func NewTriggerNodeCommandParams() *TriggerNodeCommandParams
- func NewTriggerNodeCommandParamsWithContext(ctx context.Context) *TriggerNodeCommandParams
- func NewTriggerNodeCommandParamsWithHTTPClient(client *http.Client) *TriggerNodeCommandParams
- func NewTriggerNodeCommandParamsWithTimeout(timeout time.Duration) *TriggerNodeCommandParams
- func (o *TriggerNodeCommandParams) SetBody(body *kbmodel.NodeCommand)
- func (o *TriggerNodeCommandParams) SetContext(ctx context.Context)
- func (o *TriggerNodeCommandParams) SetHTTPClient(client *http.Client)
- func (o *TriggerNodeCommandParams) SetLocalNodeOnly(localNodeOnly *bool)
- func (o *TriggerNodeCommandParams) SetTimeout(timeout time.Duration)
- func (o *TriggerNodeCommandParams) SetXKillbillComment(xKillbillComment *string)
- func (o *TriggerNodeCommandParams) SetXKillbillCreatedBy(xKillbillCreatedBy string)
- func (o *TriggerNodeCommandParams) SetXKillbillReason(xKillbillReason *string)
- func (o *TriggerNodeCommandParams) WithBody(body *kbmodel.NodeCommand) *TriggerNodeCommandParams
- func (o *TriggerNodeCommandParams) WithContext(ctx context.Context) *TriggerNodeCommandParams
- func (o *TriggerNodeCommandParams) WithHTTPClient(client *http.Client) *TriggerNodeCommandParams
- func (o *TriggerNodeCommandParams) WithLocalNodeOnly(localNodeOnly *bool) *TriggerNodeCommandParams
- func (o *TriggerNodeCommandParams) WithTimeout(timeout time.Duration) *TriggerNodeCommandParams
- func (o *TriggerNodeCommandParams) WithXKillbillComment(xKillbillComment *string) *TriggerNodeCommandParams
- func (o *TriggerNodeCommandParams) WithXKillbillCreatedBy(xKillbillCreatedBy string) *TriggerNodeCommandParams
- func (o *TriggerNodeCommandParams) WithXKillbillReason(xKillbillReason *string) *TriggerNodeCommandParams
- func (o *TriggerNodeCommandParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TriggerNodeCommandReader
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 nodes info API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter, defaults KillbillDefaults) *Client
New creates a new nodes info API client.
func (*Client) GetNodesInfo ¶
func (a *Client) GetNodesInfo(ctx context.Context, params *GetNodesInfoParams) (*GetNodesInfoOK, error)
GetNodesInfo retrieves all the nodes infos
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) TriggerNodeCommand ¶
func (a *Client) TriggerNodeCommand(ctx context.Context, params *TriggerNodeCommandParams) (*TriggerNodeCommandAccepted, error)
TriggerNodeCommand triggers a node command
type GetNodesInfoOK ¶
type GetNodesInfoOK struct { Payload []*kbmodel.PluginInfo HttpResponse runtime.ClientResponse }
GetNodesInfoOK handles this case with default header values.
successful operation
func NewGetNodesInfoOK ¶
func NewGetNodesInfoOK() *GetNodesInfoOK
NewGetNodesInfoOK creates a GetNodesInfoOK with default headers values
func (*GetNodesInfoOK) Error ¶
func (o *GetNodesInfoOK) Error() string
type GetNodesInfoParams ¶
type GetNodesInfoParams struct { 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 }
GetNodesInfoParams contains all the parameters to send to the API endpoint for the get nodes info operation typically these are written to a http.Request
func NewGetNodesInfoParams ¶
func NewGetNodesInfoParams() *GetNodesInfoParams
NewGetNodesInfoParams creates a new GetNodesInfoParams object with the default values initialized.
func NewGetNodesInfoParamsWithContext ¶
func NewGetNodesInfoParamsWithContext(ctx context.Context) *GetNodesInfoParams
NewGetNodesInfoParamsWithContext creates a new GetNodesInfoParams object with the default values initialized, and the ability to set a context for a request
func NewGetNodesInfoParamsWithHTTPClient ¶
func NewGetNodesInfoParamsWithHTTPClient(client *http.Client) *GetNodesInfoParams
NewGetNodesInfoParamsWithHTTPClient creates a new GetNodesInfoParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetNodesInfoParamsWithTimeout ¶
func NewGetNodesInfoParamsWithTimeout(timeout time.Duration) *GetNodesInfoParams
NewGetNodesInfoParamsWithTimeout creates a new GetNodesInfoParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetNodesInfoParams) SetContext ¶
func (o *GetNodesInfoParams) SetContext(ctx context.Context)
SetContext adds the context to the get nodes info params
func (*GetNodesInfoParams) SetHTTPClient ¶
func (o *GetNodesInfoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get nodes info params
func (*GetNodesInfoParams) SetTimeout ¶
func (o *GetNodesInfoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get nodes info params
func (*GetNodesInfoParams) WithContext ¶
func (o *GetNodesInfoParams) WithContext(ctx context.Context) *GetNodesInfoParams
WithContext adds the context to the get nodes info params
func (*GetNodesInfoParams) WithHTTPClient ¶
func (o *GetNodesInfoParams) WithHTTPClient(client *http.Client) *GetNodesInfoParams
WithHTTPClient adds the HTTPClient to the get nodes info params
func (*GetNodesInfoParams) WithTimeout ¶
func (o *GetNodesInfoParams) WithTimeout(timeout time.Duration) *GetNodesInfoParams
WithTimeout adds the timeout to the get nodes info params
func (*GetNodesInfoParams) WriteToRequest ¶
func (o *GetNodesInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetNodesInfoReader ¶
type GetNodesInfoReader struct {
// contains filtered or unexported fields
}
GetNodesInfoReader is a Reader for the GetNodesInfo structure.
func (*GetNodesInfoReader) ReadResponse ¶
func (o *GetNodesInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type INodesInfo ¶
type INodesInfo interface { /* GetNodesInfo retrieves all the nodes infos */ GetNodesInfo(ctx context.Context, params *GetNodesInfoParams) (*GetNodesInfoOK, error) /* TriggerNodeCommand triggers a node command */ TriggerNodeCommand(ctx context.Context, params *TriggerNodeCommandParams) (*TriggerNodeCommandAccepted, error) }
INodesInfo - interface for NodesInfo client.
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 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 TriggerNodeCommandAccepted ¶
type TriggerNodeCommandAccepted struct {
HttpResponse runtime.ClientResponse
}
TriggerNodeCommandAccepted handles this case with default header values.
Successful operation
func NewTriggerNodeCommandAccepted ¶
func NewTriggerNodeCommandAccepted() *TriggerNodeCommandAccepted
NewTriggerNodeCommandAccepted creates a TriggerNodeCommandAccepted with default headers values
func (*TriggerNodeCommandAccepted) Error ¶
func (o *TriggerNodeCommandAccepted) Error() string
type TriggerNodeCommandBadRequest ¶
type TriggerNodeCommandBadRequest struct {
HttpResponse runtime.ClientResponse
}
TriggerNodeCommandBadRequest handles this case with default header values.
Invalid node command supplied
func NewTriggerNodeCommandBadRequest ¶
func NewTriggerNodeCommandBadRequest() *TriggerNodeCommandBadRequest
NewTriggerNodeCommandBadRequest creates a TriggerNodeCommandBadRequest with default headers values
func (*TriggerNodeCommandBadRequest) Error ¶
func (o *TriggerNodeCommandBadRequest) Error() string
type TriggerNodeCommandParams ¶
type TriggerNodeCommandParams struct { /*XKillbillComment*/ XKillbillComment *string /*XKillbillCreatedBy*/ XKillbillCreatedBy string /*XKillbillReason*/ XKillbillReason *string /*Body*/ Body *kbmodel.NodeCommand /*LocalNodeOnly*/ LocalNodeOnly *bool 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 }
TriggerNodeCommandParams contains all the parameters to send to the API endpoint for the trigger node command operation typically these are written to a http.Request
func NewTriggerNodeCommandParams ¶
func NewTriggerNodeCommandParams() *TriggerNodeCommandParams
NewTriggerNodeCommandParams creates a new TriggerNodeCommandParams object with the default values initialized.
func NewTriggerNodeCommandParamsWithContext ¶
func NewTriggerNodeCommandParamsWithContext(ctx context.Context) *TriggerNodeCommandParams
NewTriggerNodeCommandParamsWithContext creates a new TriggerNodeCommandParams object with the default values initialized, and the ability to set a context for a request
func NewTriggerNodeCommandParamsWithHTTPClient ¶
func NewTriggerNodeCommandParamsWithHTTPClient(client *http.Client) *TriggerNodeCommandParams
NewTriggerNodeCommandParamsWithHTTPClient creates a new TriggerNodeCommandParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewTriggerNodeCommandParamsWithTimeout ¶
func NewTriggerNodeCommandParamsWithTimeout(timeout time.Duration) *TriggerNodeCommandParams
NewTriggerNodeCommandParamsWithTimeout creates a new TriggerNodeCommandParams object with the default values initialized, and the ability to set a timeout on a request
func (*TriggerNodeCommandParams) SetBody ¶
func (o *TriggerNodeCommandParams) SetBody(body *kbmodel.NodeCommand)
SetBody adds the body to the trigger node command params
func (*TriggerNodeCommandParams) SetContext ¶
func (o *TriggerNodeCommandParams) SetContext(ctx context.Context)
SetContext adds the context to the trigger node command params
func (*TriggerNodeCommandParams) SetHTTPClient ¶
func (o *TriggerNodeCommandParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the trigger node command params
func (*TriggerNodeCommandParams) SetLocalNodeOnly ¶
func (o *TriggerNodeCommandParams) SetLocalNodeOnly(localNodeOnly *bool)
SetLocalNodeOnly adds the localNodeOnly to the trigger node command params
func (*TriggerNodeCommandParams) SetTimeout ¶
func (o *TriggerNodeCommandParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the trigger node command params
func (*TriggerNodeCommandParams) SetXKillbillComment ¶
func (o *TriggerNodeCommandParams) SetXKillbillComment(xKillbillComment *string)
SetXKillbillComment adds the xKillbillComment to the trigger node command params
func (*TriggerNodeCommandParams) SetXKillbillCreatedBy ¶
func (o *TriggerNodeCommandParams) SetXKillbillCreatedBy(xKillbillCreatedBy string)
SetXKillbillCreatedBy adds the xKillbillCreatedBy to the trigger node command params
func (*TriggerNodeCommandParams) SetXKillbillReason ¶
func (o *TriggerNodeCommandParams) SetXKillbillReason(xKillbillReason *string)
SetXKillbillReason adds the xKillbillReason to the trigger node command params
func (*TriggerNodeCommandParams) WithBody ¶
func (o *TriggerNodeCommandParams) WithBody(body *kbmodel.NodeCommand) *TriggerNodeCommandParams
WithBody adds the body to the trigger node command params
func (*TriggerNodeCommandParams) WithContext ¶
func (o *TriggerNodeCommandParams) WithContext(ctx context.Context) *TriggerNodeCommandParams
WithContext adds the context to the trigger node command params
func (*TriggerNodeCommandParams) WithHTTPClient ¶
func (o *TriggerNodeCommandParams) WithHTTPClient(client *http.Client) *TriggerNodeCommandParams
WithHTTPClient adds the HTTPClient to the trigger node command params
func (*TriggerNodeCommandParams) WithLocalNodeOnly ¶
func (o *TriggerNodeCommandParams) WithLocalNodeOnly(localNodeOnly *bool) *TriggerNodeCommandParams
WithLocalNodeOnly adds the localNodeOnly to the trigger node command params
func (*TriggerNodeCommandParams) WithTimeout ¶
func (o *TriggerNodeCommandParams) WithTimeout(timeout time.Duration) *TriggerNodeCommandParams
WithTimeout adds the timeout to the trigger node command params
func (*TriggerNodeCommandParams) WithXKillbillComment ¶
func (o *TriggerNodeCommandParams) WithXKillbillComment(xKillbillComment *string) *TriggerNodeCommandParams
WithXKillbillComment adds the xKillbillComment to the trigger node command params
func (*TriggerNodeCommandParams) WithXKillbillCreatedBy ¶
func (o *TriggerNodeCommandParams) WithXKillbillCreatedBy(xKillbillCreatedBy string) *TriggerNodeCommandParams
WithXKillbillCreatedBy adds the xKillbillCreatedBy to the trigger node command params
func (*TriggerNodeCommandParams) WithXKillbillReason ¶
func (o *TriggerNodeCommandParams) WithXKillbillReason(xKillbillReason *string) *TriggerNodeCommandParams
WithXKillbillReason adds the xKillbillReason to the trigger node command params
func (*TriggerNodeCommandParams) WriteToRequest ¶
func (o *TriggerNodeCommandParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TriggerNodeCommandReader ¶
type TriggerNodeCommandReader struct {
// contains filtered or unexported fields
}
TriggerNodeCommandReader is a Reader for the TriggerNodeCommand structure.
func (*TriggerNodeCommandReader) ReadResponse ¶
func (o *TriggerNodeCommandReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.