network

package
v0.0.0-...-6925780 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 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 network API

func (*Client) InterfaceList

func (a *Client) InterfaceList(params *InterfaceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InterfaceListOK, error)

InterfaceList lists of network interfaces configuration and specs

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 {
	InterfaceList(params *InterfaceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InterfaceListOK, 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 network API client.

type InterfaceListDefault

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

error

func NewInterfaceListDefault

func NewInterfaceListDefault(code int) *InterfaceListDefault

NewInterfaceListDefault creates a InterfaceListDefault with default headers values

func (*InterfaceListDefault) Code

func (o *InterfaceListDefault) Code() int

Code gets the status code for the interface list default response

func (*InterfaceListDefault) Error

func (o *InterfaceListDefault) Error() string

func (*InterfaceListDefault) GetPayload

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

type InterfaceListOK

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

ok

func NewInterfaceListOK

func NewInterfaceListOK() *InterfaceListOK

NewInterfaceListOK creates a InterfaceListOK with default headers values

func (*InterfaceListOK) Error

func (o *InterfaceListOK) Error() string

func (*InterfaceListOK) GetPayload

func (o *InterfaceListOK) GetPayload() []*models.InterfaceSpec

type InterfaceListParams

type InterfaceListParams struct {

	// XRelayHostname.
	XRelayHostname string

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

InterfaceListParams contains all the parameters to send to the API endpoint

for the interface list operation.

Typically these are written to a http.Request.

func NewInterfaceListParams

func NewInterfaceListParams() *InterfaceListParams

NewInterfaceListParams creates a new InterfaceListParams 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 NewInterfaceListParamsWithContext

func NewInterfaceListParamsWithContext(ctx context.Context) *InterfaceListParams

NewInterfaceListParamsWithContext creates a new InterfaceListParams object with the ability to set a context for a request.

func NewInterfaceListParamsWithHTTPClient

func NewInterfaceListParamsWithHTTPClient(client *http.Client) *InterfaceListParams

NewInterfaceListParamsWithHTTPClient creates a new InterfaceListParams object with the ability to set a custom HTTPClient for a request.

func NewInterfaceListParamsWithTimeout

func NewInterfaceListParamsWithTimeout(timeout time.Duration) *InterfaceListParams

NewInterfaceListParamsWithTimeout creates a new InterfaceListParams object with the ability to set a timeout on a request.

func (*InterfaceListParams) SetContext

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

SetContext adds the context to the interface list params

func (*InterfaceListParams) SetDefaults

func (o *InterfaceListParams) SetDefaults()

SetDefaults hydrates default values in the interface list params (not the query body).

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

func (*InterfaceListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the interface list params

func (*InterfaceListParams) SetTimeout

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

SetTimeout adds the timeout to the interface list params

func (*InterfaceListParams) SetXRelayHostname

func (o *InterfaceListParams) SetXRelayHostname(xRelayHostname string)

SetXRelayHostname adds the xRelayHostname to the interface list params

func (*InterfaceListParams) WithContext

WithContext adds the context to the interface list params

func (*InterfaceListParams) WithDefaults

func (o *InterfaceListParams) WithDefaults() *InterfaceListParams

WithDefaults hydrates default values in the interface list params (not the query body).

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

func (*InterfaceListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the interface list params

func (*InterfaceListParams) WithTimeout

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

WithTimeout adds the timeout to the interface list params

func (*InterfaceListParams) WithXRelayHostname

func (o *InterfaceListParams) WithXRelayHostname(xRelayHostname string) *InterfaceListParams

WithXRelayHostname adds the xRelayHostname to the interface list params

func (*InterfaceListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type InterfaceListReader

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

InterfaceListReader is a Reader for the InterfaceList structure.

func (*InterfaceListReader) ReadResponse

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