Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type NodesForbidden
- func (o *NodesForbidden) Code() int
- func (o *NodesForbidden) Error() string
- func (o *NodesForbidden) GetPayload() *models.RestError
- func (o *NodesForbidden) IsClientError() bool
- func (o *NodesForbidden) IsCode(code int) bool
- func (o *NodesForbidden) IsRedirect() bool
- func (o *NodesForbidden) IsServerError() bool
- func (o *NodesForbidden) IsSuccess() bool
- func (o *NodesForbidden) String() string
- type NodesInternalServerError
- func (o *NodesInternalServerError) Code() int
- func (o *NodesInternalServerError) Error() string
- func (o *NodesInternalServerError) GetPayload() *models.RestError
- func (o *NodesInternalServerError) IsClientError() bool
- func (o *NodesInternalServerError) IsCode(code int) bool
- func (o *NodesInternalServerError) IsRedirect() bool
- func (o *NodesInternalServerError) IsServerError() bool
- func (o *NodesInternalServerError) IsSuccess() bool
- func (o *NodesInternalServerError) String() string
- type NodesNotFound
- func (o *NodesNotFound) Code() int
- func (o *NodesNotFound) Error() string
- func (o *NodesNotFound) GetPayload() *models.RestError
- func (o *NodesNotFound) IsClientError() bool
- func (o *NodesNotFound) IsCode(code int) bool
- func (o *NodesNotFound) IsRedirect() bool
- func (o *NodesNotFound) IsServerError() bool
- func (o *NodesNotFound) IsSuccess() bool
- func (o *NodesNotFound) String() string
- type NodesOK
- func (o *NodesOK) Code() int
- func (o *NodesOK) Error() string
- func (o *NodesOK) GetPayload() *models.RestSearchResults
- func (o *NodesOK) IsClientError() bool
- func (o *NodesOK) IsCode(code int) bool
- func (o *NodesOK) IsRedirect() bool
- func (o *NodesOK) IsServerError() bool
- func (o *NodesOK) IsSuccess() bool
- func (o *NodesOK) String() string
- type NodesParams
- func (o *NodesParams) SetBody(body *models.TreeSearchRequest)
- func (o *NodesParams) SetContext(ctx context.Context)
- func (o *NodesParams) SetDefaults()
- func (o *NodesParams) SetHTTPClient(client *http.Client)
- func (o *NodesParams) SetTimeout(timeout time.Duration)
- func (o *NodesParams) WithBody(body *models.TreeSearchRequest) *NodesParams
- func (o *NodesParams) WithContext(ctx context.Context) *NodesParams
- func (o *NodesParams) WithDefaults() *NodesParams
- func (o *NodesParams) WithHTTPClient(client *http.Client) *NodesParams
- func (o *NodesParams) WithTimeout(timeout time.Duration) *NodesParams
- func (o *NodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NodesReader
- type NodesUnauthorized
- func (o *NodesUnauthorized) Code() int
- func (o *NodesUnauthorized) Error() string
- func (o *NodesUnauthorized) IsClientError() bool
- func (o *NodesUnauthorized) IsCode(code int) bool
- func (o *NodesUnauthorized) IsRedirect() bool
- func (o *NodesUnauthorized) IsServerError() bool
- func (o *NodesUnauthorized) IsSuccess() bool
- func (o *NodesUnauthorized) String() string
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 search service API
func (*Client) Nodes ¶
func (a *Client) Nodes(params *NodesParams, opts ...ClientOption) (*NodesOK, error)
Nodes searches indexed nodes files folders on various aspects
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 { Nodes(params *NodesParams, opts ...ClientOption) (*NodesOK, 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 search service API client.
type NodesForbidden ¶
NodesForbidden describes a response with status code 403, with default header values.
User has no permission to access this resource
func NewNodesForbidden ¶
func NewNodesForbidden() *NodesForbidden
NewNodesForbidden creates a NodesForbidden with default headers values
func (*NodesForbidden) Code ¶
func (o *NodesForbidden) Code() int
Code gets the status code for the nodes forbidden response
func (*NodesForbidden) Error ¶
func (o *NodesForbidden) Error() string
func (*NodesForbidden) GetPayload ¶
func (o *NodesForbidden) GetPayload() *models.RestError
func (*NodesForbidden) IsClientError ¶
func (o *NodesForbidden) IsClientError() bool
IsClientError returns true when this nodes forbidden response has a 4xx status code
func (*NodesForbidden) IsCode ¶
func (o *NodesForbidden) IsCode(code int) bool
IsCode returns true when this nodes forbidden response a status code equal to that given
func (*NodesForbidden) IsRedirect ¶
func (o *NodesForbidden) IsRedirect() bool
IsRedirect returns true when this nodes forbidden response has a 3xx status code
func (*NodesForbidden) IsServerError ¶
func (o *NodesForbidden) IsServerError() bool
IsServerError returns true when this nodes forbidden response has a 5xx status code
func (*NodesForbidden) IsSuccess ¶
func (o *NodesForbidden) IsSuccess() bool
IsSuccess returns true when this nodes forbidden response has a 2xx status code
func (*NodesForbidden) String ¶
func (o *NodesForbidden) String() string
type NodesInternalServerError ¶
NodesInternalServerError describes a response with status code 500, with default header values.
An internal error occurred in the backend
func NewNodesInternalServerError ¶
func NewNodesInternalServerError() *NodesInternalServerError
NewNodesInternalServerError creates a NodesInternalServerError with default headers values
func (*NodesInternalServerError) Code ¶
func (o *NodesInternalServerError) Code() int
Code gets the status code for the nodes internal server error response
func (*NodesInternalServerError) Error ¶
func (o *NodesInternalServerError) Error() string
func (*NodesInternalServerError) GetPayload ¶
func (o *NodesInternalServerError) GetPayload() *models.RestError
func (*NodesInternalServerError) IsClientError ¶
func (o *NodesInternalServerError) IsClientError() bool
IsClientError returns true when this nodes internal server error response has a 4xx status code
func (*NodesInternalServerError) IsCode ¶
func (o *NodesInternalServerError) IsCode(code int) bool
IsCode returns true when this nodes internal server error response a status code equal to that given
func (*NodesInternalServerError) IsRedirect ¶
func (o *NodesInternalServerError) IsRedirect() bool
IsRedirect returns true when this nodes internal server error response has a 3xx status code
func (*NodesInternalServerError) IsServerError ¶
func (o *NodesInternalServerError) IsServerError() bool
IsServerError returns true when this nodes internal server error response has a 5xx status code
func (*NodesInternalServerError) IsSuccess ¶
func (o *NodesInternalServerError) IsSuccess() bool
IsSuccess returns true when this nodes internal server error response has a 2xx status code
func (*NodesInternalServerError) String ¶
func (o *NodesInternalServerError) String() string
type NodesNotFound ¶
NodesNotFound describes a response with status code 404, with default header values.
Resource does not exist in the system
func NewNodesNotFound ¶
func NewNodesNotFound() *NodesNotFound
NewNodesNotFound creates a NodesNotFound with default headers values
func (*NodesNotFound) Code ¶
func (o *NodesNotFound) Code() int
Code gets the status code for the nodes not found response
func (*NodesNotFound) Error ¶
func (o *NodesNotFound) Error() string
func (*NodesNotFound) GetPayload ¶
func (o *NodesNotFound) GetPayload() *models.RestError
func (*NodesNotFound) IsClientError ¶
func (o *NodesNotFound) IsClientError() bool
IsClientError returns true when this nodes not found response has a 4xx status code
func (*NodesNotFound) IsCode ¶
func (o *NodesNotFound) IsCode(code int) bool
IsCode returns true when this nodes not found response a status code equal to that given
func (*NodesNotFound) IsRedirect ¶
func (o *NodesNotFound) IsRedirect() bool
IsRedirect returns true when this nodes not found response has a 3xx status code
func (*NodesNotFound) IsServerError ¶
func (o *NodesNotFound) IsServerError() bool
IsServerError returns true when this nodes not found response has a 5xx status code
func (*NodesNotFound) IsSuccess ¶
func (o *NodesNotFound) IsSuccess() bool
IsSuccess returns true when this nodes not found response has a 2xx status code
func (*NodesNotFound) String ¶
func (o *NodesNotFound) String() string
type NodesOK ¶
type NodesOK struct {
Payload *models.RestSearchResults
}
NodesOK describes a response with status code 200, with default header values.
A successful response.
func NewNodesOK ¶
func NewNodesOK() *NodesOK
NewNodesOK creates a NodesOK with default headers values
func (*NodesOK) GetPayload ¶
func (o *NodesOK) GetPayload() *models.RestSearchResults
func (*NodesOK) IsClientError ¶
IsClientError returns true when this nodes o k response has a 4xx status code
func (*NodesOK) IsCode ¶
IsCode returns true when this nodes o k response a status code equal to that given
func (*NodesOK) IsRedirect ¶
IsRedirect returns true when this nodes o k response has a 3xx status code
func (*NodesOK) IsServerError ¶
IsServerError returns true when this nodes o k response has a 5xx status code
type NodesParams ¶
type NodesParams struct { // Body. Body *models.TreeSearchRequest 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 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 NewNodesParamsWithContext ¶
func NewNodesParamsWithContext(ctx context.Context) *NodesParams
NewNodesParamsWithContext creates a new NodesParams object with 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 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 ability to set a timeout on a request.
func (*NodesParams) SetBody ¶
func (o *NodesParams) SetBody(body *models.TreeSearchRequest)
SetBody adds the body to the nodes params
func (*NodesParams) SetContext ¶
func (o *NodesParams) SetContext(ctx context.Context)
SetContext adds the context to the nodes params
func (*NodesParams) SetDefaults ¶
func (o *NodesParams) SetDefaults()
SetDefaults hydrates default values in the nodes params (not the query body).
All values with no default are reset to their zero value.
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) WithBody ¶
func (o *NodesParams) WithBody(body *models.TreeSearchRequest) *NodesParams
WithBody adds the body 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) WithDefaults ¶
func (o *NodesParams) WithDefaults() *NodesParams
WithDefaults hydrates default values in the nodes params (not the query body).
All values with no default are reset to their zero value.
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.
type NodesUnauthorized ¶
type NodesUnauthorized struct { }
NodesUnauthorized describes a response with status code 401, with default header values.
User is not authenticated
func NewNodesUnauthorized ¶
func NewNodesUnauthorized() *NodesUnauthorized
NewNodesUnauthorized creates a NodesUnauthorized with default headers values
func (*NodesUnauthorized) Code ¶
func (o *NodesUnauthorized) Code() int
Code gets the status code for the nodes unauthorized response
func (*NodesUnauthorized) Error ¶
func (o *NodesUnauthorized) Error() string
func (*NodesUnauthorized) IsClientError ¶
func (o *NodesUnauthorized) IsClientError() bool
IsClientError returns true when this nodes unauthorized response has a 4xx status code
func (*NodesUnauthorized) IsCode ¶
func (o *NodesUnauthorized) IsCode(code int) bool
IsCode returns true when this nodes unauthorized response a status code equal to that given
func (*NodesUnauthorized) IsRedirect ¶
func (o *NodesUnauthorized) IsRedirect() bool
IsRedirect returns true when this nodes unauthorized response has a 3xx status code
func (*NodesUnauthorized) IsServerError ¶
func (o *NodesUnauthorized) IsServerError() bool
IsServerError returns true when this nodes unauthorized response has a 5xx status code
func (*NodesUnauthorized) IsSuccess ¶
func (o *NodesUnauthorized) IsSuccess() bool
IsSuccess returns true when this nodes unauthorized response has a 2xx status code
func (*NodesUnauthorized) String ¶
func (o *NodesUnauthorized) String() string