nodes_info

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: 11 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 (*Client) GetNodesInfo

func (a *Client) GetNodesInfo(params *GetNodesInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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(params *TriggerNodeCommandParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TriggerNodeCommandAccepted, error)

TriggerNodeCommand triggers a node command

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetNodesInfo(params *GetNodesInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNodesInfoOK, error)

	TriggerNodeCommand(params *TriggerNodeCommandParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TriggerNodeCommandAccepted, 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 nodes info API client.

type GetNodesInfoOK

type GetNodesInfoOK struct {
	Payload []*kbmodel.PluginInfo
}
GetNodesInfoOK describes a response with status code 200, 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 {
	Context    context.Context
	HTTPClient *http.Client
	// 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 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 NewGetNodesInfoParamsWithContext

func NewGetNodesInfoParamsWithContext(ctx context.Context) *GetNodesInfoParams

NewGetNodesInfoParamsWithContext creates a new GetNodesInfoParams object with 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 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 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) SetDefaults

func (o *GetNodesInfoParams) SetDefaults()

SetDefaults hydrates default values in the get nodes info params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults

func (o *GetNodesInfoParams) WithDefaults() *GetNodesInfoParams

WithDefaults hydrates default values in the get nodes info params (not the query body).

All values with no default are reset to their zero value.

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 TriggerNodeCommandAccepted

type TriggerNodeCommandAccepted struct {
}
TriggerNodeCommandAccepted describes a response with status code 202, 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 {
}
TriggerNodeCommandBadRequest describes a response with status code 400, 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

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

func NewTriggerNodeCommandParamsWithContext(ctx context.Context) *TriggerNodeCommandParams

NewTriggerNodeCommandParamsWithContext creates a new TriggerNodeCommandParams object with 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 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 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) SetDefaults

func (o *TriggerNodeCommandParams) SetDefaults()

SetDefaults hydrates default values in the trigger node command params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults

WithDefaults hydrates default values in the trigger node command params (not the query body).

All values with no default are reset to their zero value.

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