system_cluster_config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: BSD-3-Clause 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 system cluster config API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new system cluster config API client.

func (*Client) Node

func (a *Client) Node(params *NodeParams, authInfo runtime.ClientAuthInfoWriter) (*NodeOK, error)

Node information about a node

This is returning information of a node in context to its state in the cluster. Use the system API of the node itself to get system information.

func (*Client) Nodes

func (a *Client) Nodes(params *NodesParams, authInfo runtime.ClientAuthInfoWriter) (*NodesOK, error)

Nodes lists all active nodes in this cluster

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type NodeNotFound

type NodeNotFound struct {
}

NodeNotFound handles this case with default header values.

Node not found.

func NewNodeNotFound

func NewNodeNotFound() *NodeNotFound

NewNodeNotFound creates a NodeNotFound with default headers values

func (*NodeNotFound) Error

func (o *NodeNotFound) Error() string

type NodeOK

type NodeOK struct {
	Payload *models.NodeSummary
}

NodeOK handles this case with default header values.

No response was specified

func NewNodeOK

func NewNodeOK() *NodeOK

NewNodeOK creates a NodeOK with default headers values

func (*NodeOK) Error

func (o *NodeOK) Error() string

type NodeParams

type NodeParams struct {

	/*NodeID*/
	NodeID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

NodeParams contains all the parameters to send to the API endpoint for the node operation typically these are written to a http.Request

func NewNodeParams

func NewNodeParams() *NodeParams

NewNodeParams creates a new NodeParams object with the default values initialized.

func NewNodeParamsWithContext

func NewNodeParamsWithContext(ctx context.Context) *NodeParams

NewNodeParamsWithContext creates a new NodeParams object with the default values initialized, and the ability to set a context for a request

func NewNodeParamsWithHTTPClient

func NewNodeParamsWithHTTPClient(client *http.Client) *NodeParams

NewNodeParamsWithHTTPClient creates a new NodeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewNodeParamsWithTimeout

func NewNodeParamsWithTimeout(timeout time.Duration) *NodeParams

NewNodeParamsWithTimeout creates a new NodeParams object with the default values initialized, and the ability to set a timeout on a request

func (*NodeParams) SetContext

func (o *NodeParams) SetContext(ctx context.Context)

SetContext adds the context to the node params

func (*NodeParams) SetHTTPClient

func (o *NodeParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the node params

func (*NodeParams) SetNodeID

func (o *NodeParams) SetNodeID(nodeID string)

SetNodeID adds the nodeId to the node params

func (*NodeParams) SetTimeout

func (o *NodeParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the node params

func (*NodeParams) WithContext

func (o *NodeParams) WithContext(ctx context.Context) *NodeParams

WithContext adds the context to the node params

func (*NodeParams) WithHTTPClient

func (o *NodeParams) WithHTTPClient(client *http.Client) *NodeParams

WithHTTPClient adds the HTTPClient to the node params

func (*NodeParams) WithNodeID

func (o *NodeParams) WithNodeID(nodeID string) *NodeParams

WithNodeID adds the nodeID to the node params

func (*NodeParams) WithTimeout

func (o *NodeParams) WithTimeout(timeout time.Duration) *NodeParams

WithTimeout adds the timeout to the node params

func (*NodeParams) WriteToRequest

func (o *NodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type NodeReader

type NodeReader struct {
	// contains filtered or unexported fields
}

NodeReader is a Reader for the Node structure.

func (*NodeReader) ReadResponse

func (o *NodeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type NodesOK

type NodesOK struct {
	Payload *models.NodeSummaryList
}

NodesOK handles this case with default header values.

No response was specified

func NewNodesOK

func NewNodesOK() *NodesOK

NewNodesOK creates a NodesOK with default headers values

func (*NodesOK) Error

func (o *NodesOK) Error() string

type NodesParams

type NodesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

NodesParams contains all the parameters to send to the API endpoint for the nodes operation typically these are written to a http.Request

func NewNodesParams

func NewNodesParams() *NodesParams

NewNodesParams creates a new NodesParams object with the default values initialized.

func NewNodesParamsWithContext

func NewNodesParamsWithContext(ctx context.Context) *NodesParams

NewNodesParamsWithContext creates a new NodesParams object with the default values initialized, and the ability to set a context for a request

func NewNodesParamsWithHTTPClient

func NewNodesParamsWithHTTPClient(client *http.Client) *NodesParams

NewNodesParamsWithHTTPClient creates a new NodesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewNodesParamsWithTimeout

func NewNodesParamsWithTimeout(timeout time.Duration) *NodesParams

NewNodesParamsWithTimeout creates a new NodesParams object with the default values initialized, and the ability to set a timeout on a request

func (*NodesParams) SetContext

func (o *NodesParams) SetContext(ctx context.Context)

SetContext adds the context to the nodes params

func (*NodesParams) SetHTTPClient

func (o *NodesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the nodes params

func (*NodesParams) SetTimeout

func (o *NodesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the nodes params

func (*NodesParams) WithContext

func (o *NodesParams) WithContext(ctx context.Context) *NodesParams

WithContext adds the context to the nodes params

func (*NodesParams) WithHTTPClient

func (o *NodesParams) WithHTTPClient(client *http.Client) *NodesParams

WithHTTPClient adds the HTTPClient to the nodes params

func (*NodesParams) WithTimeout

func (o *NodesParams) WithTimeout(timeout time.Duration) *NodesParams

WithTimeout adds the timeout to the nodes params

func (*NodesParams) WriteToRequest

func (o *NodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type NodesReader

type NodesReader struct {
	// contains filtered or unexported fields
}

NodesReader is a Reader for the Nodes structure.

func (*NodesReader) ReadResponse

func (o *NodesReader) 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