discovered_host

package
v0.0.0-...-67cd95e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT 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 discovered host API

func (*Client) GetDiscoverHosts

func (a *Client) GetDiscoverHosts(params *GetDiscoverHostsParams, opts ...ClientOption) (*GetDiscoverHostsOK, error)

GetDiscoverHosts get discover hosts API

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 {
	GetDiscoverHosts(params *GetDiscoverHostsParams, opts ...ClientOption) (*GetDiscoverHostsOK, 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 discovered host API client.

type GetDiscoverHostsBadRequest

type GetDiscoverHostsBadRequest struct {
	Payload string
}
GetDiscoverHostsBadRequest describes a response with status code 400, with default header values.

GetDiscoverHostsBadRequest get discover hosts bad request

func NewGetDiscoverHostsBadRequest

func NewGetDiscoverHostsBadRequest() *GetDiscoverHostsBadRequest

NewGetDiscoverHostsBadRequest creates a GetDiscoverHostsBadRequest with default headers values

func (*GetDiscoverHostsBadRequest) Error

func (*GetDiscoverHostsBadRequest) GetPayload

func (o *GetDiscoverHostsBadRequest) GetPayload() string

type GetDiscoverHostsOK

type GetDiscoverHostsOK struct {
	Payload []*models.DiscoveredHost
}
GetDiscoverHostsOK describes a response with status code 200, with default header values.

Ok

func NewGetDiscoverHostsOK

func NewGetDiscoverHostsOK() *GetDiscoverHostsOK

NewGetDiscoverHostsOK creates a GetDiscoverHostsOK with default headers values

func (*GetDiscoverHostsOK) Error

func (o *GetDiscoverHostsOK) Error() string

func (*GetDiscoverHostsOK) GetPayload

func (o *GetDiscoverHostsOK) GetPayload() []*models.DiscoveredHost

type GetDiscoverHostsParams

type GetDiscoverHostsParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetDiscoverHostsRequestBody

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

GetDiscoverHostsParams contains all the parameters to send to the API endpoint

for the get discover hosts operation.

Typically these are written to a http.Request.

func NewGetDiscoverHostsParams

func NewGetDiscoverHostsParams() *GetDiscoverHostsParams

NewGetDiscoverHostsParams creates a new GetDiscoverHostsParams 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 NewGetDiscoverHostsParamsWithContext

func NewGetDiscoverHostsParamsWithContext(ctx context.Context) *GetDiscoverHostsParams

NewGetDiscoverHostsParamsWithContext creates a new GetDiscoverHostsParams object with the ability to set a context for a request.

func NewGetDiscoverHostsParamsWithHTTPClient

func NewGetDiscoverHostsParamsWithHTTPClient(client *http.Client) *GetDiscoverHostsParams

NewGetDiscoverHostsParamsWithHTTPClient creates a new GetDiscoverHostsParams object with the ability to set a custom HTTPClient for a request.

func NewGetDiscoverHostsParamsWithTimeout

func NewGetDiscoverHostsParamsWithTimeout(timeout time.Duration) *GetDiscoverHostsParams

NewGetDiscoverHostsParamsWithTimeout creates a new GetDiscoverHostsParams object with the ability to set a timeout on a request.

func (*GetDiscoverHostsParams) SetContentLanguage

func (o *GetDiscoverHostsParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get discover hosts params

func (*GetDiscoverHostsParams) SetContext

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

SetContext adds the context to the get discover hosts params

func (*GetDiscoverHostsParams) SetDefaults

func (o *GetDiscoverHostsParams) SetDefaults()

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

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

func (*GetDiscoverHostsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get discover hosts params

func (*GetDiscoverHostsParams) SetRequestBody

func (o *GetDiscoverHostsParams) SetRequestBody(requestBody *models.GetDiscoverHostsRequestBody)

SetRequestBody adds the requestBody to the get discover hosts params

func (*GetDiscoverHostsParams) SetTimeout

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

SetTimeout adds the timeout to the get discover hosts params

func (*GetDiscoverHostsParams) WithContentLanguage

func (o *GetDiscoverHostsParams) WithContentLanguage(contentLanguage *string) *GetDiscoverHostsParams

WithContentLanguage adds the contentLanguage to the get discover hosts params

func (*GetDiscoverHostsParams) WithContext

WithContext adds the context to the get discover hosts params

func (*GetDiscoverHostsParams) WithDefaults

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

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

func (*GetDiscoverHostsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get discover hosts params

func (*GetDiscoverHostsParams) WithRequestBody

WithRequestBody adds the requestBody to the get discover hosts params

func (*GetDiscoverHostsParams) WithTimeout

WithTimeout adds the timeout to the get discover hosts params

func (*GetDiscoverHostsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDiscoverHostsReader

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

GetDiscoverHostsReader is a Reader for the GetDiscoverHosts structure.

func (*GetDiscoverHostsReader) ReadResponse

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