node

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 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 node API

func (*Client) DeleteNode

func (a *Client) DeleteNode(params *DeleteNodeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteNodeOK, error)

DeleteNode deletes a node

Creates a directory at the target path.

func (*Client) GetNodes

func (a *Client) GetNodes(params *GetNodesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNodesOK, error)

GetNodes gets list of namespace nodes

Gets Workflow and Directory Nodes at nodePath.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteNode(params *DeleteNodeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteNodeOK, error)

	GetNodes(params *GetNodesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNodesOK, 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 node API client.

type DeleteNodeDefault

type DeleteNodeDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
DeleteNodeDefault describes a response with status code -1, with default header values.

an error has occurred

func NewDeleteNodeDefault

func NewDeleteNodeDefault(code int) *DeleteNodeDefault

NewDeleteNodeDefault creates a DeleteNodeDefault with default headers values

func (*DeleteNodeDefault) Code

func (o *DeleteNodeDefault) Code() int

Code gets the status code for the delete node default response

func (*DeleteNodeDefault) Error

func (o *DeleteNodeDefault) Error() string

func (*DeleteNodeDefault) GetPayload

func (o *DeleteNodeDefault) GetPayload() *models.ErrorResponse

type DeleteNodeOK

type DeleteNodeOK struct {
	Payload models.OkBody
}
DeleteNodeOK describes a response with status code 200, with default header values.

node has been deleted

func NewDeleteNodeOK

func NewDeleteNodeOK() *DeleteNodeOK

NewDeleteNodeOK creates a DeleteNodeOK with default headers values

func (*DeleteNodeOK) Error

func (o *DeleteNodeOK) Error() string

func (*DeleteNodeOK) GetPayload

func (o *DeleteNodeOK) GetPayload() models.OkBody

type DeleteNodeParams

type DeleteNodeParams struct {

	/* Namespace.

	   target namespace
	*/
	Namespace string

	/* Node.

	   path to target node
	*/
	Node string

	/* Op.

	   the operation for the api

	   Default: "delete-node"
	*/
	Op string

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

DeleteNodeParams contains all the parameters to send to the API endpoint

for the delete node operation.

Typically these are written to a http.Request.

func NewDeleteNodeParams

func NewDeleteNodeParams() *DeleteNodeParams

NewDeleteNodeParams creates a new DeleteNodeParams 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 NewDeleteNodeParamsWithContext

func NewDeleteNodeParamsWithContext(ctx context.Context) *DeleteNodeParams

NewDeleteNodeParamsWithContext creates a new DeleteNodeParams object with the ability to set a context for a request.

func NewDeleteNodeParamsWithHTTPClient

func NewDeleteNodeParamsWithHTTPClient(client *http.Client) *DeleteNodeParams

NewDeleteNodeParamsWithHTTPClient creates a new DeleteNodeParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteNodeParamsWithTimeout

func NewDeleteNodeParamsWithTimeout(timeout time.Duration) *DeleteNodeParams

NewDeleteNodeParamsWithTimeout creates a new DeleteNodeParams object with the ability to set a timeout on a request.

func (*DeleteNodeParams) SetContext

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

SetContext adds the context to the delete node params

func (*DeleteNodeParams) SetDefaults

func (o *DeleteNodeParams) SetDefaults()

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

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

func (*DeleteNodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete node params

func (*DeleteNodeParams) SetNamespace

func (o *DeleteNodeParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete node params

func (*DeleteNodeParams) SetNode

func (o *DeleteNodeParams) SetNode(node string)

SetNode adds the node to the delete node params

func (*DeleteNodeParams) SetOp

func (o *DeleteNodeParams) SetOp(op string)

SetOp adds the op to the delete node params

func (*DeleteNodeParams) SetTimeout

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

SetTimeout adds the timeout to the delete node params

func (*DeleteNodeParams) WithContext

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

WithContext adds the context to the delete node params

func (*DeleteNodeParams) WithDefaults

func (o *DeleteNodeParams) WithDefaults() *DeleteNodeParams

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

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

func (*DeleteNodeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete node params

func (*DeleteNodeParams) WithNamespace

func (o *DeleteNodeParams) WithNamespace(namespace string) *DeleteNodeParams

WithNamespace adds the namespace to the delete node params

func (*DeleteNodeParams) WithNode

func (o *DeleteNodeParams) WithNode(node string) *DeleteNodeParams

WithNode adds the node to the delete node params

func (*DeleteNodeParams) WithOp

func (o *DeleteNodeParams) WithOp(op string) *DeleteNodeParams

WithOp adds the op to the delete node params

func (*DeleteNodeParams) WithTimeout

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

WithTimeout adds the timeout to the delete node params

func (*DeleteNodeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteNodeReader

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

DeleteNodeReader is a Reader for the DeleteNode structure.

func (*DeleteNodeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNodesDefault

type GetNodesDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
GetNodesDefault describes a response with status code -1, with default header values.

an error has occurred

func NewGetNodesDefault

func NewGetNodesDefault(code int) *GetNodesDefault

NewGetNodesDefault creates a GetNodesDefault with default headers values

func (*GetNodesDefault) Code

func (o *GetNodesDefault) Code() int

Code gets the status code for the get nodes default response

func (*GetNodesDefault) Error

func (o *GetNodesDefault) Error() string

func (*GetNodesDefault) GetPayload

func (o *GetNodesDefault) GetPayload() *models.ErrorResponse

type GetNodesOK

type GetNodesOK struct {
	Payload models.OkBody
}
GetNodesOK describes a response with status code 200, with default header values.

successfully got namespace nodes

func NewGetNodesOK

func NewGetNodesOK() *GetNodesOK

NewGetNodesOK creates a GetNodesOK with default headers values

func (*GetNodesOK) Error

func (o *GetNodesOK) Error() string

func (*GetNodesOK) GetPayload

func (o *GetNodesOK) GetPayload() models.OkBody

type GetNodesParams

type GetNodesParams struct {

	/* Namespace.

	   target namespace
	*/
	Namespace string

	/* NodePath.

	   target path in tree
	*/
	NodePath string

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

GetNodesParams contains all the parameters to send to the API endpoint

for the get nodes operation.

Typically these are written to a http.Request.

func NewGetNodesParams

func NewGetNodesParams() *GetNodesParams

NewGetNodesParams creates a new GetNodesParams 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 NewGetNodesParamsWithContext

func NewGetNodesParamsWithContext(ctx context.Context) *GetNodesParams

NewGetNodesParamsWithContext creates a new GetNodesParams object with the ability to set a context for a request.

func NewGetNodesParamsWithHTTPClient

func NewGetNodesParamsWithHTTPClient(client *http.Client) *GetNodesParams

NewGetNodesParamsWithHTTPClient creates a new GetNodesParams object with the ability to set a custom HTTPClient for a request.

func NewGetNodesParamsWithTimeout

func NewGetNodesParamsWithTimeout(timeout time.Duration) *GetNodesParams

NewGetNodesParamsWithTimeout creates a new GetNodesParams object with the ability to set a timeout on a request.

func (*GetNodesParams) SetContext

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

SetContext adds the context to the get nodes params

func (*GetNodesParams) SetDefaults

func (o *GetNodesParams) SetDefaults()

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

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

func (*GetNodesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get nodes params

func (*GetNodesParams) SetNamespace

func (o *GetNodesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get nodes params

func (*GetNodesParams) SetNodePath

func (o *GetNodesParams) SetNodePath(nodePath string)

SetNodePath adds the nodePath to the get nodes params

func (*GetNodesParams) SetTimeout

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

SetTimeout adds the timeout to the get nodes params

func (*GetNodesParams) WithContext

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

WithContext adds the context to the get nodes params

func (*GetNodesParams) WithDefaults

func (o *GetNodesParams) WithDefaults() *GetNodesParams

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

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

func (*GetNodesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get nodes params

func (*GetNodesParams) WithNamespace

func (o *GetNodesParams) WithNamespace(namespace string) *GetNodesParams

WithNamespace adds the namespace to the get nodes params

func (*GetNodesParams) WithNodePath

func (o *GetNodesParams) WithNodePath(nodePath string) *GetNodesParams

WithNodePath adds the nodePath to the get nodes params

func (*GetNodesParams) WithTimeout

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

WithTimeout adds the timeout to the get nodes params

func (*GetNodesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetNodesReader

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

GetNodesReader is a Reader for the GetNodes structure.

func (*GetNodesReader) ReadResponse

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