nodes_info

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 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

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 ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetNodesInfo(ctx context.Context, params *GetNodesInfoParams) (*GetNodesInfoOK, error)

	TriggerNodeCommand(ctx context.Context, params *TriggerNodeCommandParams) (*TriggerNodeCommandAccepted, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

type GetNodesInfoOK

type GetNodesInfoOK struct {
	Payload      []*kbmodel.NodeInfo
	HttpResponse runtime.ClientResponse
}

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

func (o *GetNodesInfoOK) Code() int

Code gets the status code for the get nodes info o k response

func (*GetNodesInfoOK) Error

func (o *GetNodesInfoOK) Error() string

func (*GetNodesInfoOK) GetPayload

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

func (*GetNodesInfoOK) IsClientError

func (o *GetNodesInfoOK) IsClientError() bool

IsClientError returns true when this get nodes info o k response has a 4xx status code

func (*GetNodesInfoOK) IsCode

func (o *GetNodesInfoOK) IsCode(code int) bool

IsCode returns true when this get nodes info o k response a status code equal to that given

func (*GetNodesInfoOK) IsRedirect

func (o *GetNodesInfoOK) IsRedirect() bool

IsRedirect returns true when this get nodes info o k response has a 3xx status code

func (*GetNodesInfoOK) IsServerError

func (o *GetNodesInfoOK) IsServerError() bool

IsServerError returns true when this get nodes info o k response has a 5xx status code

func (*GetNodesInfoOK) IsSuccess

func (o *GetNodesInfoOK) IsSuccess() bool

IsSuccess returns true when this get nodes info o k response has a 2xx status code

func (*GetNodesInfoOK) String

func (o *GetNodesInfoOK) String() string

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

func (o *TriggerNodeCommandAccepted) Code() int

Code gets the status code for the trigger node command accepted response

func (*TriggerNodeCommandAccepted) Error

func (*TriggerNodeCommandAccepted) IsClientError

func (o *TriggerNodeCommandAccepted) IsClientError() bool

IsClientError returns true when this trigger node command accepted response has a 4xx status code

func (*TriggerNodeCommandAccepted) IsCode

func (o *TriggerNodeCommandAccepted) IsCode(code int) bool

IsCode returns true when this trigger node command accepted response a status code equal to that given

func (*TriggerNodeCommandAccepted) IsRedirect

func (o *TriggerNodeCommandAccepted) IsRedirect() bool

IsRedirect returns true when this trigger node command accepted response has a 3xx status code

func (*TriggerNodeCommandAccepted) IsServerError

func (o *TriggerNodeCommandAccepted) IsServerError() bool

IsServerError returns true when this trigger node command accepted response has a 5xx status code

func (*TriggerNodeCommandAccepted) IsSuccess

func (o *TriggerNodeCommandAccepted) IsSuccess() bool

IsSuccess returns true when this trigger node command accepted response has a 2xx status code

func (*TriggerNodeCommandAccepted) String

func (o *TriggerNodeCommandAccepted) String() string

type TriggerNodeCommandBadRequest

type TriggerNodeCommandBadRequest struct {
	HttpResponse runtime.ClientResponse
}

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

Code gets the status code for the trigger node command bad request response

func (*TriggerNodeCommandBadRequest) Error

func (*TriggerNodeCommandBadRequest) IsClientError

func (o *TriggerNodeCommandBadRequest) IsClientError() bool

IsClientError returns true when this trigger node command bad request response has a 4xx status code

func (*TriggerNodeCommandBadRequest) IsCode

func (o *TriggerNodeCommandBadRequest) IsCode(code int) bool

IsCode returns true when this trigger node command bad request response a status code equal to that given

func (*TriggerNodeCommandBadRequest) IsRedirect

func (o *TriggerNodeCommandBadRequest) IsRedirect() bool

IsRedirect returns true when this trigger node command bad request response has a 3xx status code

func (*TriggerNodeCommandBadRequest) IsServerError

func (o *TriggerNodeCommandBadRequest) IsServerError() bool

IsServerError returns true when this trigger node command bad request response has a 5xx status code

func (*TriggerNodeCommandBadRequest) IsSuccess

func (o *TriggerNodeCommandBadRequest) IsSuccess() bool

IsSuccess returns true when this trigger node command bad request response has a 2xx status code

func (*TriggerNodeCommandBadRequest) String

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