operations

package
v0.0.0-...-8b13cda Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

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 (*Client) GetHostsToTrace

func (a *Client) GetHostsToTrace(params *GetHostsToTraceParams, opts ...ClientOption) (*GetHostsToTraceOK, error)

GetHostsToTrace gets list of hosts to trace

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 {
	GetHostsToTrace(params *GetHostsToTraceParams, opts ...ClientOption) (*GetHostsToTraceOK, 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 operations API client.

type GetHostsToTraceDefault

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

unknown error

func NewGetHostsToTraceDefault

func NewGetHostsToTraceDefault(code int) *GetHostsToTraceDefault

NewGetHostsToTraceDefault creates a GetHostsToTraceDefault with default headers values

func (*GetHostsToTraceDefault) Code

func (o *GetHostsToTraceDefault) Code() int

Code gets the status code for the get hosts to trace default response

func (*GetHostsToTraceDefault) Error

func (o *GetHostsToTraceDefault) Error() string

func (*GetHostsToTraceDefault) GetPayload

func (o *GetHostsToTraceDefault) GetPayload() *models.APIResponse

type GetHostsToTraceOK

type GetHostsToTraceOK struct {
	Payload *GetHostsToTraceOKBody
}
GetHostsToTraceOK describes a response with status code 200, with default header values.

Success

func NewGetHostsToTraceOK

func NewGetHostsToTraceOK() *GetHostsToTraceOK

NewGetHostsToTraceOK creates a GetHostsToTraceOK with default headers values

func (*GetHostsToTraceOK) Error

func (o *GetHostsToTraceOK) Error() string

func (*GetHostsToTraceOK) GetPayload

func (o *GetHostsToTraceOK) GetPayload() *GetHostsToTraceOKBody

type GetHostsToTraceOKBody

type GetHostsToTraceOKBody struct {

	// List of hosts to trace in the format of hostname:port
	Hosts []string `json:"hosts"`
}

GetHostsToTraceOKBody get hosts to trace o k body swagger:model GetHostsToTraceOKBody

func (*GetHostsToTraceOKBody) ContextValidate

func (o *GetHostsToTraceOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get hosts to trace o k body based on context it is used

func (*GetHostsToTraceOKBody) MarshalBinary

func (o *GetHostsToTraceOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetHostsToTraceOKBody) UnmarshalBinary

func (o *GetHostsToTraceOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetHostsToTraceOKBody) Validate

func (o *GetHostsToTraceOKBody) Validate(formats strfmt.Registry) error

Validate validates this get hosts to trace o k body

type GetHostsToTraceParams

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

GetHostsToTraceParams contains all the parameters to send to the API endpoint

for the get hosts to trace operation.

Typically these are written to a http.Request.

func NewGetHostsToTraceParams

func NewGetHostsToTraceParams() *GetHostsToTraceParams

NewGetHostsToTraceParams creates a new GetHostsToTraceParams 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 NewGetHostsToTraceParamsWithContext

func NewGetHostsToTraceParamsWithContext(ctx context.Context) *GetHostsToTraceParams

NewGetHostsToTraceParamsWithContext creates a new GetHostsToTraceParams object with the ability to set a context for a request.

func NewGetHostsToTraceParamsWithHTTPClient

func NewGetHostsToTraceParamsWithHTTPClient(client *http.Client) *GetHostsToTraceParams

NewGetHostsToTraceParamsWithHTTPClient creates a new GetHostsToTraceParams object with the ability to set a custom HTTPClient for a request.

func NewGetHostsToTraceParamsWithTimeout

func NewGetHostsToTraceParamsWithTimeout(timeout time.Duration) *GetHostsToTraceParams

NewGetHostsToTraceParamsWithTimeout creates a new GetHostsToTraceParams object with the ability to set a timeout on a request.

func (*GetHostsToTraceParams) SetContext

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

SetContext adds the context to the get hosts to trace params

func (*GetHostsToTraceParams) SetDefaults

func (o *GetHostsToTraceParams) SetDefaults()

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

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

func (*GetHostsToTraceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get hosts to trace params

func (*GetHostsToTraceParams) SetTimeout

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

SetTimeout adds the timeout to the get hosts to trace params

func (*GetHostsToTraceParams) WithContext

WithContext adds the context to the get hosts to trace params

func (*GetHostsToTraceParams) WithDefaults

func (o *GetHostsToTraceParams) WithDefaults() *GetHostsToTraceParams

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

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

func (*GetHostsToTraceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get hosts to trace params

func (*GetHostsToTraceParams) WithTimeout

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

WithTimeout adds the timeout to the get hosts to trace params

func (*GetHostsToTraceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetHostsToTraceReader

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

GetHostsToTraceReader is a Reader for the GetHostsToTrace structure.

func (*GetHostsToTraceReader) ReadResponse

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