nodes_info

package
v3.0.8-draft Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 12 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 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

resource description

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

resource description

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

func (*GetNodesInfoOK) GetPayload

func (o *GetNodesInfoOK) GetPayload() []*kbmodel.PluginInfo

type GetNodesInfoParams

type GetNodesInfoParams 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
}

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

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

		resource description
	*/
	GetNodesInfo(ctx context.Context, params *GetNodesInfoParams) (*GetNodesInfoOK, error)

	/*
		TriggerNodeCommand triggers a node command

		resource description
	*/
	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 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 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

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

type TriggerNodeCommandParams

type TriggerNodeCommandParams struct {

	/*XKillbillComment*/
	XKillbillComment *string
	/*XKillbillCreatedBy*/
	XKillbillCreatedBy string
	/*XKillbillReason*/
	XKillbillReason *string
	/*Body*/
	Body *kbmodel.NodeCommand
	/*LocalNodeOnly*/
	LocalNodeOnly *bool

	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
}

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

WithBody adds the body to the trigger node command params

func (*TriggerNodeCommandParams) WithContext

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

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

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.

Jump to

Keyboard shortcuts

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