operations

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: GPL-3.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 operations API

func New

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

New creates a new operations API client.

func (*Client) GetHostname

func (a *Client) GetHostname(params *GetHostnameParams) (*GetHostnameOK, error)

GetHostname get hostname API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetHostnameDefault

type GetHostnameDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetHostnameDefault handles this case with default header values.

error

func NewGetHostnameDefault

func NewGetHostnameDefault(code int) *GetHostnameDefault

NewGetHostnameDefault creates a GetHostnameDefault with default headers values

func (*GetHostnameDefault) Code

func (o *GetHostnameDefault) Code() int

Code gets the status code for the get hostname default response

func (*GetHostnameDefault) Error

func (o *GetHostnameDefault) Error() string

func (*GetHostnameDefault) GetPayload

func (o *GetHostnameDefault) GetPayload() *models.Error

type GetHostnameOK

type GetHostnameOK struct {
	Payload string
}

GetHostnameOK handles this case with default header values.

returns the hostname of the machine

func NewGetHostnameOK

func NewGetHostnameOK() *GetHostnameOK

NewGetHostnameOK creates a GetHostnameOK with default headers values

func (*GetHostnameOK) Error

func (o *GetHostnameOK) Error() string

func (*GetHostnameOK) GetPayload

func (o *GetHostnameOK) GetPayload() string

type GetHostnameParams

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

GetHostnameParams contains all the parameters to send to the API endpoint for the get hostname operation typically these are written to a http.Request

func NewGetHostnameParams

func NewGetHostnameParams() *GetHostnameParams

NewGetHostnameParams creates a new GetHostnameParams object with the default values initialized.

func NewGetHostnameParamsWithContext

func NewGetHostnameParamsWithContext(ctx context.Context) *GetHostnameParams

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

func NewGetHostnameParamsWithHTTPClient

func NewGetHostnameParamsWithHTTPClient(client *http.Client) *GetHostnameParams

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

func NewGetHostnameParamsWithTimeout

func NewGetHostnameParamsWithTimeout(timeout time.Duration) *GetHostnameParams

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

func (*GetHostnameParams) SetContext

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

SetContext adds the context to the get hostname params

func (*GetHostnameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get hostname params

func (*GetHostnameParams) SetTimeout

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

SetTimeout adds the timeout to the get hostname params

func (*GetHostnameParams) WithContext

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

WithContext adds the context to the get hostname params

func (*GetHostnameParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get hostname params

func (*GetHostnameParams) WithTimeout

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

WithTimeout adds the timeout to the get hostname params

func (*GetHostnameParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetHostnameReader

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

GetHostnameReader is a Reader for the GetHostname structure.

func (*GetHostnameReader) ReadResponse

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