host

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: ISC 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 host API

func (*Client) GetHosts

func (a *Client) GetHosts(params *GetHostsParams, opts ...ClientOption) (*GetHostsOK, error)

GetHosts get hosts API

func (*Client) GetHostsConnection

func (a *Client) GetHostsConnection(params *GetHostsConnectionParams, opts ...ClientOption) (*GetHostsConnectionOK, error)

GetHostsConnection get hosts connection 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 {
	GetHosts(params *GetHostsParams, opts ...ClientOption) (*GetHostsOK, error)

	GetHostsConnection(params *GetHostsConnectionParams, opts ...ClientOption) (*GetHostsConnectionOK, 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 host API client.

type GetHostsBadRequest

type GetHostsBadRequest struct {
	XAocRequestID string

	Payload *models.ErrorBody
}

GetHostsBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetHostsBadRequest

func NewGetHostsBadRequest() *GetHostsBadRequest

NewGetHostsBadRequest creates a GetHostsBadRequest with default headers values

func (*GetHostsBadRequest) Error

func (o *GetHostsBadRequest) Error() string

func (*GetHostsBadRequest) GetPayload

func (o *GetHostsBadRequest) GetPayload() *models.ErrorBody

type GetHostsConnectionBadRequest

type GetHostsConnectionBadRequest struct {
	XAocRequestID string

	Payload *models.ErrorBody
}

GetHostsConnectionBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetHostsConnectionBadRequest

func NewGetHostsConnectionBadRequest() *GetHostsConnectionBadRequest

NewGetHostsConnectionBadRequest creates a GetHostsConnectionBadRequest with default headers values

func (*GetHostsConnectionBadRequest) Error

func (*GetHostsConnectionBadRequest) GetPayload

type GetHostsConnectionInternalServerError

type GetHostsConnectionInternalServerError struct {
	XAocRequestID string

	Payload *models.ErrorBody
}

GetHostsConnectionInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetHostsConnectionInternalServerError

func NewGetHostsConnectionInternalServerError() *GetHostsConnectionInternalServerError

NewGetHostsConnectionInternalServerError creates a GetHostsConnectionInternalServerError with default headers values

func (*GetHostsConnectionInternalServerError) Error

func (*GetHostsConnectionInternalServerError) GetPayload

type GetHostsConnectionNotFound

type GetHostsConnectionNotFound struct {
	XAocRequestID string

	Payload *models.ErrorBody
}

GetHostsConnectionNotFound describes a response with status code 404, with default header values.

Not found

func NewGetHostsConnectionNotFound

func NewGetHostsConnectionNotFound() *GetHostsConnectionNotFound

NewGetHostsConnectionNotFound creates a GetHostsConnectionNotFound with default headers values

func (*GetHostsConnectionNotFound) Error

func (*GetHostsConnectionNotFound) GetPayload

func (o *GetHostsConnectionNotFound) GetPayload() *models.ErrorBody

type GetHostsConnectionOK

type GetHostsConnectionOK struct {
	XAocRequestID string

	Payload *models.HostConnection
}

GetHostsConnectionOK describes a response with status code 200, with default header values.

GetHostsConnectionOK get hosts connection o k

func NewGetHostsConnectionOK

func NewGetHostsConnectionOK() *GetHostsConnectionOK

NewGetHostsConnectionOK creates a GetHostsConnectionOK with default headers values

func (*GetHostsConnectionOK) Error

func (o *GetHostsConnectionOK) Error() string

func (*GetHostsConnectionOK) GetPayload

func (o *GetHostsConnectionOK) GetPayload() *models.HostConnection

type GetHostsConnectionParams

type GetHostsConnectionParams struct {

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

	// RequestBody.
	RequestBody *models.GetHostsConnectionRequestBody

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

GetHostsConnectionParams contains all the parameters to send to the API endpoint

for the get hosts connection operation.

Typically these are written to a http.Request.

func NewGetHostsConnectionParams

func NewGetHostsConnectionParams() *GetHostsConnectionParams

NewGetHostsConnectionParams creates a new GetHostsConnectionParams 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 NewGetHostsConnectionParamsWithContext

func NewGetHostsConnectionParamsWithContext(ctx context.Context) *GetHostsConnectionParams

NewGetHostsConnectionParamsWithContext creates a new GetHostsConnectionParams object with the ability to set a context for a request.

func NewGetHostsConnectionParamsWithHTTPClient

func NewGetHostsConnectionParamsWithHTTPClient(client *http.Client) *GetHostsConnectionParams

NewGetHostsConnectionParamsWithHTTPClient creates a new GetHostsConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetHostsConnectionParamsWithTimeout

func NewGetHostsConnectionParamsWithTimeout(timeout time.Duration) *GetHostsConnectionParams

NewGetHostsConnectionParamsWithTimeout creates a new GetHostsConnectionParams object with the ability to set a timeout on a request.

func (*GetHostsConnectionParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the get hosts connection params

func (*GetHostsConnectionParams) SetContext

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

SetContext adds the context to the get hosts connection params

func (*GetHostsConnectionParams) SetDefaults

func (o *GetHostsConnectionParams) SetDefaults()

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

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

func (*GetHostsConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get hosts connection params

func (*GetHostsConnectionParams) SetRequestBody

func (o *GetHostsConnectionParams) SetRequestBody(requestBody *models.GetHostsConnectionRequestBody)

SetRequestBody adds the requestBody to the get hosts connection params

func (*GetHostsConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get hosts connection params

func (*GetHostsConnectionParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the get hosts connection params

func (*GetHostsConnectionParams) WithContext

WithContext adds the context to the get hosts connection params

func (*GetHostsConnectionParams) WithDefaults

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

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

func (*GetHostsConnectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get hosts connection params

func (*GetHostsConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get hosts connection params

func (*GetHostsConnectionParams) WithTimeout

WithTimeout adds the timeout to the get hosts connection params

func (*GetHostsConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetHostsConnectionReader

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

GetHostsConnectionReader is a Reader for the GetHostsConnection structure.

func (*GetHostsConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetHostsInternalServerError

type GetHostsInternalServerError struct {
	XAocRequestID string

	Payload *models.ErrorBody
}

GetHostsInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetHostsInternalServerError

func NewGetHostsInternalServerError() *GetHostsInternalServerError

NewGetHostsInternalServerError creates a GetHostsInternalServerError with default headers values

func (*GetHostsInternalServerError) Error

func (*GetHostsInternalServerError) GetPayload

func (o *GetHostsInternalServerError) GetPayload() *models.ErrorBody

type GetHostsNotFound

type GetHostsNotFound struct {
	XAocRequestID string

	Payload *models.ErrorBody
}

GetHostsNotFound describes a response with status code 404, with default header values.

Not found

func NewGetHostsNotFound

func NewGetHostsNotFound() *GetHostsNotFound

NewGetHostsNotFound creates a GetHostsNotFound with default headers values

func (*GetHostsNotFound) Error

func (o *GetHostsNotFound) Error() string

func (*GetHostsNotFound) GetPayload

func (o *GetHostsNotFound) GetPayload() *models.ErrorBody

type GetHostsOK

type GetHostsOK struct {
	XAocRequestID string

	Payload []*models.Host
}

GetHostsOK describes a response with status code 200, with default header values.

GetHostsOK get hosts o k

func NewGetHostsOK

func NewGetHostsOK() *GetHostsOK

NewGetHostsOK creates a GetHostsOK with default headers values

func (*GetHostsOK) Error

func (o *GetHostsOK) Error() string

func (*GetHostsOK) GetPayload

func (o *GetHostsOK) GetPayload() []*models.Host

type GetHostsParams

type GetHostsParams struct {

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

	// RequestBody.
	RequestBody *models.GetHostsRequestBody

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

GetHostsParams contains all the parameters to send to the API endpoint

for the get hosts operation.

Typically these are written to a http.Request.

func NewGetHostsParams

func NewGetHostsParams() *GetHostsParams

NewGetHostsParams creates a new GetHostsParams 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 NewGetHostsParamsWithContext

func NewGetHostsParamsWithContext(ctx context.Context) *GetHostsParams

NewGetHostsParamsWithContext creates a new GetHostsParams object with the ability to set a context for a request.

func NewGetHostsParamsWithHTTPClient

func NewGetHostsParamsWithHTTPClient(client *http.Client) *GetHostsParams

NewGetHostsParamsWithHTTPClient creates a new GetHostsParams object with the ability to set a custom HTTPClient for a request.

func NewGetHostsParamsWithTimeout

func NewGetHostsParamsWithTimeout(timeout time.Duration) *GetHostsParams

NewGetHostsParamsWithTimeout creates a new GetHostsParams object with the ability to set a timeout on a request.

func (*GetHostsParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the get hosts params

func (*GetHostsParams) SetContext

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

SetContext adds the context to the get hosts params

func (*GetHostsParams) SetDefaults

func (o *GetHostsParams) SetDefaults()

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

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

func (*GetHostsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get hosts params

func (*GetHostsParams) SetRequestBody

func (o *GetHostsParams) SetRequestBody(requestBody *models.GetHostsRequestBody)

SetRequestBody adds the requestBody to the get hosts params

func (*GetHostsParams) SetTimeout

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

SetTimeout adds the timeout to the get hosts params

func (*GetHostsParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the get hosts params

func (*GetHostsParams) WithContext

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

WithContext adds the context to the get hosts params

func (*GetHostsParams) WithDefaults

func (o *GetHostsParams) WithDefaults() *GetHostsParams

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

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

func (*GetHostsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get hosts params

func (*GetHostsParams) WithRequestBody

func (o *GetHostsParams) WithRequestBody(requestBody *models.GetHostsRequestBody) *GetHostsParams

WithRequestBody adds the requestBody to the get hosts params

func (*GetHostsParams) WithTimeout

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

WithTimeout adds the timeout to the get hosts params

func (*GetHostsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetHostsReader

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

GetHostsReader is a Reader for the GetHosts structure.

func (*GetHostsReader) ReadResponse

func (o *GetHostsReader) 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
⌂ 换网址