traffic

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.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 traffic API

func (*Client) GetNmsTraffic

func (a *Client) GetNmsTraffic(params *GetNmsTrafficParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNmsTrafficOK, error)

GetNmsTraffic returns netflow traffic status

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 {
	GetNmsTraffic(params *GetNmsTrafficParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNmsTrafficOK, 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 traffic API client.

type GetNmsTrafficForbidden

type GetNmsTrafficForbidden struct {
	Payload *models.Error
}
GetNmsTrafficForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetNmsTrafficForbidden

func NewGetNmsTrafficForbidden() *GetNmsTrafficForbidden

NewGetNmsTrafficForbidden creates a GetNmsTrafficForbidden with default headers values

func (*GetNmsTrafficForbidden) Error

func (o *GetNmsTrafficForbidden) Error() string

func (*GetNmsTrafficForbidden) GetPayload

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

type GetNmsTrafficInternalServerError

type GetNmsTrafficInternalServerError struct {
	Payload *models.Error
}
GetNmsTrafficInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetNmsTrafficInternalServerError

func NewGetNmsTrafficInternalServerError() *GetNmsTrafficInternalServerError

NewGetNmsTrafficInternalServerError creates a GetNmsTrafficInternalServerError with default headers values

func (*GetNmsTrafficInternalServerError) Error

func (*GetNmsTrafficInternalServerError) GetPayload

type GetNmsTrafficOK

type GetNmsTrafficOK struct {
	Payload *models.TrafficStatus
}
GetNmsTrafficOK describes a response with status code 200, with default header values.

Successful

func NewGetNmsTrafficOK

func NewGetNmsTrafficOK() *GetNmsTrafficOK

NewGetNmsTrafficOK creates a GetNmsTrafficOK with default headers values

func (*GetNmsTrafficOK) Error

func (o *GetNmsTrafficOK) Error() string

func (*GetNmsTrafficOK) GetPayload

func (o *GetNmsTrafficOK) GetPayload() *models.TrafficStatus

type GetNmsTrafficParams

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

GetNmsTrafficParams contains all the parameters to send to the API endpoint

for the get nms traffic operation.

Typically these are written to a http.Request.

func NewGetNmsTrafficParams

func NewGetNmsTrafficParams() *GetNmsTrafficParams

NewGetNmsTrafficParams creates a new GetNmsTrafficParams 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 NewGetNmsTrafficParamsWithContext

func NewGetNmsTrafficParamsWithContext(ctx context.Context) *GetNmsTrafficParams

NewGetNmsTrafficParamsWithContext creates a new GetNmsTrafficParams object with the ability to set a context for a request.

func NewGetNmsTrafficParamsWithHTTPClient

func NewGetNmsTrafficParamsWithHTTPClient(client *http.Client) *GetNmsTrafficParams

NewGetNmsTrafficParamsWithHTTPClient creates a new GetNmsTrafficParams object with the ability to set a custom HTTPClient for a request.

func NewGetNmsTrafficParamsWithTimeout

func NewGetNmsTrafficParamsWithTimeout(timeout time.Duration) *GetNmsTrafficParams

NewGetNmsTrafficParamsWithTimeout creates a new GetNmsTrafficParams object with the ability to set a timeout on a request.

func (*GetNmsTrafficParams) SetContext

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

SetContext adds the context to the get nms traffic params

func (*GetNmsTrafficParams) SetDefaults

func (o *GetNmsTrafficParams) SetDefaults()

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

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

func (*GetNmsTrafficParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get nms traffic params

func (*GetNmsTrafficParams) SetTimeout

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

SetTimeout adds the timeout to the get nms traffic params

func (*GetNmsTrafficParams) WithContext

WithContext adds the context to the get nms traffic params

func (*GetNmsTrafficParams) WithDefaults

func (o *GetNmsTrafficParams) WithDefaults() *GetNmsTrafficParams

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

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

func (*GetNmsTrafficParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get nms traffic params

func (*GetNmsTrafficParams) WithTimeout

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

WithTimeout adds the timeout to the get nms traffic params

func (*GetNmsTrafficParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetNmsTrafficReader

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

GetNmsTrafficReader is a Reader for the GetNmsTraffic structure.

func (*GetNmsTrafficReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNmsTrafficUnauthorized

type GetNmsTrafficUnauthorized struct {
	Payload *models.Error
}
GetNmsTrafficUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetNmsTrafficUnauthorized

func NewGetNmsTrafficUnauthorized() *GetNmsTrafficUnauthorized

NewGetNmsTrafficUnauthorized creates a GetNmsTrafficUnauthorized with default headers values

func (*GetNmsTrafficUnauthorized) Error

func (o *GetNmsTrafficUnauthorized) Error() string

func (*GetNmsTrafficUnauthorized) GetPayload

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL