operations

package
v0.0.0-...-6cfc1b2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 12 Imported by: 3

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 a list of hosts to trace

func (*Client) PostControlNewDiscoveredAPIs

func (a *Client) PostControlNewDiscoveredAPIs(params *PostControlNewDiscoveredAPIsParams, opts ...ClientOption) (*PostControlNewDiscoveredAPIsOK, error)

PostControlNewDiscoveredAPIs allows a client to notify API clarity about new a p is

This allows a client (a gateway for example) to notify APIclarity about newly discovered APIs. If one of the APIs already exists, it is ignored.

func (*Client) PostTelemetry

func (a *Client) PostTelemetry(params *PostTelemetryParams, opts ...ClientOption) (*PostTelemetryOK, error)

PostTelemetry posts an http telemetry

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)

	PostControlNewDiscoveredAPIs(params *PostControlNewDiscoveredAPIsParams, opts ...ClientOption) (*PostControlNewDiscoveredAPIsOK, error)

	PostTelemetry(params *PostTelemetryParams, opts ...ClientOption) (*PostTelemetryOK, 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 *models.HostsToTrace
}
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() *models.HostsToTrace

type GetHostsToTraceParams

type GetHostsToTraceParams struct {

	/* XTraceSourceToken.

	   Optional header to authenticate the trace source
	*/
	XTraceSourceToken *string

	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) SetXTraceSourceToken

func (o *GetHostsToTraceParams) SetXTraceSourceToken(xTraceSourceToken *string)

SetXTraceSourceToken adds the xTraceSourceToken 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) WithXTraceSourceToken

func (o *GetHostsToTraceParams) WithXTraceSourceToken(xTraceSourceToken *string) *GetHostsToTraceParams

WithXTraceSourceToken adds the xTraceSourceToken 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.

type PostControlNewDiscoveredAPIsBody

type PostControlNewDiscoveredAPIsBody struct {

	// List of discovered APIs, format of hostname:port
	// Required: true
	Hosts []string `json:"hosts"`
}

PostControlNewDiscoveredAPIsBody post control new discovered a p is body swagger:model PostControlNewDiscoveredAPIsBody

func (*PostControlNewDiscoveredAPIsBody) ContextValidate

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

ContextValidate validates this post control new discovered a p is body based on context it is used

func (*PostControlNewDiscoveredAPIsBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PostControlNewDiscoveredAPIsBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostControlNewDiscoveredAPIsBody) Validate

Validate validates this post control new discovered a p is body

type PostControlNewDiscoveredAPIsDefault

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

unknown error

func NewPostControlNewDiscoveredAPIsDefault

func NewPostControlNewDiscoveredAPIsDefault(code int) *PostControlNewDiscoveredAPIsDefault

NewPostControlNewDiscoveredAPIsDefault creates a PostControlNewDiscoveredAPIsDefault with default headers values

func (*PostControlNewDiscoveredAPIsDefault) Code

Code gets the status code for the post control new discovered a p is default response

func (*PostControlNewDiscoveredAPIsDefault) Error

func (*PostControlNewDiscoveredAPIsDefault) GetPayload

type PostControlNewDiscoveredAPIsOK

type PostControlNewDiscoveredAPIsOK struct {
	Payload interface{}
}
PostControlNewDiscoveredAPIsOK describes a response with status code 200, with default header values.

Success

func NewPostControlNewDiscoveredAPIsOK

func NewPostControlNewDiscoveredAPIsOK() *PostControlNewDiscoveredAPIsOK

NewPostControlNewDiscoveredAPIsOK creates a PostControlNewDiscoveredAPIsOK with default headers values

func (*PostControlNewDiscoveredAPIsOK) Error

func (*PostControlNewDiscoveredAPIsOK) GetPayload

func (o *PostControlNewDiscoveredAPIsOK) GetPayload() interface{}

type PostControlNewDiscoveredAPIsParams

type PostControlNewDiscoveredAPIsParams struct {

	/* XTraceSourceToken.

	   Optional header to authenticate the trace source
	*/
	XTraceSourceToken *string

	/* Body.

	   List of new discovered APIs
	*/
	Body PostControlNewDiscoveredAPIsBody

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

PostControlNewDiscoveredAPIsParams contains all the parameters to send to the API endpoint

for the post control new discovered a p is operation.

Typically these are written to a http.Request.

func NewPostControlNewDiscoveredAPIsParams

func NewPostControlNewDiscoveredAPIsParams() *PostControlNewDiscoveredAPIsParams

NewPostControlNewDiscoveredAPIsParams creates a new PostControlNewDiscoveredAPIsParams 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 NewPostControlNewDiscoveredAPIsParamsWithContext

func NewPostControlNewDiscoveredAPIsParamsWithContext(ctx context.Context) *PostControlNewDiscoveredAPIsParams

NewPostControlNewDiscoveredAPIsParamsWithContext creates a new PostControlNewDiscoveredAPIsParams object with the ability to set a context for a request.

func NewPostControlNewDiscoveredAPIsParamsWithHTTPClient

func NewPostControlNewDiscoveredAPIsParamsWithHTTPClient(client *http.Client) *PostControlNewDiscoveredAPIsParams

NewPostControlNewDiscoveredAPIsParamsWithHTTPClient creates a new PostControlNewDiscoveredAPIsParams object with the ability to set a custom HTTPClient for a request.

func NewPostControlNewDiscoveredAPIsParamsWithTimeout

func NewPostControlNewDiscoveredAPIsParamsWithTimeout(timeout time.Duration) *PostControlNewDiscoveredAPIsParams

NewPostControlNewDiscoveredAPIsParamsWithTimeout creates a new PostControlNewDiscoveredAPIsParams object with the ability to set a timeout on a request.

func (*PostControlNewDiscoveredAPIsParams) SetBody

SetBody adds the body to the post control new discovered a p is params

func (*PostControlNewDiscoveredAPIsParams) SetContext

SetContext adds the context to the post control new discovered a p is params

func (*PostControlNewDiscoveredAPIsParams) SetDefaults

func (o *PostControlNewDiscoveredAPIsParams) SetDefaults()

SetDefaults hydrates default values in the post control new discovered a p is params (not the query body).

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

func (*PostControlNewDiscoveredAPIsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post control new discovered a p is params

func (*PostControlNewDiscoveredAPIsParams) SetTimeout

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

SetTimeout adds the timeout to the post control new discovered a p is params

func (*PostControlNewDiscoveredAPIsParams) SetXTraceSourceToken

func (o *PostControlNewDiscoveredAPIsParams) SetXTraceSourceToken(xTraceSourceToken *string)

SetXTraceSourceToken adds the xTraceSourceToken to the post control new discovered a p is params

func (*PostControlNewDiscoveredAPIsParams) WithBody

WithBody adds the body to the post control new discovered a p is params

func (*PostControlNewDiscoveredAPIsParams) WithContext

WithContext adds the context to the post control new discovered a p is params

func (*PostControlNewDiscoveredAPIsParams) WithDefaults

WithDefaults hydrates default values in the post control new discovered a p is params (not the query body).

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

func (*PostControlNewDiscoveredAPIsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post control new discovered a p is params

func (*PostControlNewDiscoveredAPIsParams) WithTimeout

WithTimeout adds the timeout to the post control new discovered a p is params

func (*PostControlNewDiscoveredAPIsParams) WithXTraceSourceToken

func (o *PostControlNewDiscoveredAPIsParams) WithXTraceSourceToken(xTraceSourceToken *string) *PostControlNewDiscoveredAPIsParams

WithXTraceSourceToken adds the xTraceSourceToken to the post control new discovered a p is params

func (*PostControlNewDiscoveredAPIsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostControlNewDiscoveredAPIsReader

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

PostControlNewDiscoveredAPIsReader is a Reader for the PostControlNewDiscoveredAPIs structure.

func (*PostControlNewDiscoveredAPIsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostTelemetryDefault

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

unknown error

func NewPostTelemetryDefault

func NewPostTelemetryDefault(code int) *PostTelemetryDefault

NewPostTelemetryDefault creates a PostTelemetryDefault with default headers values

func (*PostTelemetryDefault) Code

func (o *PostTelemetryDefault) Code() int

Code gets the status code for the post telemetry default response

func (*PostTelemetryDefault) Error

func (o *PostTelemetryDefault) Error() string

func (*PostTelemetryDefault) GetPayload

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

type PostTelemetryOK

type PostTelemetryOK struct {
	Payload interface{}
}
PostTelemetryOK describes a response with status code 200, with default header values.

Success

func NewPostTelemetryOK

func NewPostTelemetryOK() *PostTelemetryOK

NewPostTelemetryOK creates a PostTelemetryOK with default headers values

func (*PostTelemetryOK) Error

func (o *PostTelemetryOK) Error() string

func (*PostTelemetryOK) GetPayload

func (o *PostTelemetryOK) GetPayload() interface{}

type PostTelemetryParams

type PostTelemetryParams struct {

	/* XTraceSourceToken.

	   Optional header to authenticate the trace source
	*/
	XTraceSourceToken *string

	// Body.
	Body *models.Telemetry

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

PostTelemetryParams contains all the parameters to send to the API endpoint

for the post telemetry operation.

Typically these are written to a http.Request.

func NewPostTelemetryParams

func NewPostTelemetryParams() *PostTelemetryParams

NewPostTelemetryParams creates a new PostTelemetryParams 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 NewPostTelemetryParamsWithContext

func NewPostTelemetryParamsWithContext(ctx context.Context) *PostTelemetryParams

NewPostTelemetryParamsWithContext creates a new PostTelemetryParams object with the ability to set a context for a request.

func NewPostTelemetryParamsWithHTTPClient

func NewPostTelemetryParamsWithHTTPClient(client *http.Client) *PostTelemetryParams

NewPostTelemetryParamsWithHTTPClient creates a new PostTelemetryParams object with the ability to set a custom HTTPClient for a request.

func NewPostTelemetryParamsWithTimeout

func NewPostTelemetryParamsWithTimeout(timeout time.Duration) *PostTelemetryParams

NewPostTelemetryParamsWithTimeout creates a new PostTelemetryParams object with the ability to set a timeout on a request.

func (*PostTelemetryParams) SetBody

func (o *PostTelemetryParams) SetBody(body *models.Telemetry)

SetBody adds the body to the post telemetry params

func (*PostTelemetryParams) SetContext

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

SetContext adds the context to the post telemetry params

func (*PostTelemetryParams) SetDefaults

func (o *PostTelemetryParams) SetDefaults()

SetDefaults hydrates default values in the post telemetry params (not the query body).

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

func (*PostTelemetryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post telemetry params

func (*PostTelemetryParams) SetTimeout

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

SetTimeout adds the timeout to the post telemetry params

func (*PostTelemetryParams) SetXTraceSourceToken

func (o *PostTelemetryParams) SetXTraceSourceToken(xTraceSourceToken *string)

SetXTraceSourceToken adds the xTraceSourceToken to the post telemetry params

func (*PostTelemetryParams) WithBody

WithBody adds the body to the post telemetry params

func (*PostTelemetryParams) WithContext

WithContext adds the context to the post telemetry params

func (*PostTelemetryParams) WithDefaults

func (o *PostTelemetryParams) WithDefaults() *PostTelemetryParams

WithDefaults hydrates default values in the post telemetry params (not the query body).

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

func (*PostTelemetryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post telemetry params

func (*PostTelemetryParams) WithTimeout

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

WithTimeout adds the timeout to the post telemetry params

func (*PostTelemetryParams) WithXTraceSourceToken

func (o *PostTelemetryParams) WithXTraceSourceToken(xTraceSourceToken *string) *PostTelemetryParams

WithXTraceSourceToken adds the xTraceSourceToken to the post telemetry params

func (*PostTelemetryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostTelemetryReader

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

PostTelemetryReader is a Reader for the PostTelemetry structure.

func (*PostTelemetryReader) ReadResponse

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