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: 18 Imported by: 1

Documentation

Index

Constants

View Source
const GetHostsToTraceOKCode int = 200

GetHostsToTraceOKCode is the HTTP code returned for type GetHostsToTraceOK

View Source
const PostControlNewDiscoveredAPIsOKCode int = 200

PostControlNewDiscoveredAPIsOKCode is the HTTP code returned for type PostControlNewDiscoveredAPIsOK

View Source
const PostTelemetryOKCode int = 200

PostTelemetryOKCode is the HTTP code returned for type PostTelemetryOK

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClarityPluginsTelemetriesAPIAPI

type APIClarityPluginsTelemetriesAPIAPI struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator

	// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator

	// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator

	// JSONConsumer registers a consumer for the following mime types:
	//   - application/json
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for the following mime types:
	//   - application/json
	JSONProducer runtime.Producer

	// GetHostsToTraceHandler sets the operation handler for the get hosts to trace operation
	GetHostsToTraceHandler GetHostsToTraceHandler
	// PostControlNewDiscoveredAPIsHandler sets the operation handler for the post control new discovered a p is operation
	PostControlNewDiscoveredAPIsHandler PostControlNewDiscoveredAPIsHandler
	// PostTelemetryHandler sets the operation handler for the post telemetry operation
	PostTelemetryHandler PostTelemetryHandler

	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)

	// PreServerShutdown is called before the HTTP(S) server is shutdown
	// This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic
	PreServerShutdown func()

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

APIClarityPluginsTelemetriesAPIAPI the API clarity plugins telemetries API API

func NewAPIClarityPluginsTelemetriesAPIAPI

func NewAPIClarityPluginsTelemetriesAPIAPI(spec *loads.Document) *APIClarityPluginsTelemetriesAPIAPI

NewAPIClarityPluginsTelemetriesAPIAPI creates a new APIClarityPluginsTelemetriesAPI instance

func (*APIClarityPluginsTelemetriesAPIAPI) AddMiddlewareFor

func (o *APIClarityPluginsTelemetriesAPIAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)

AddMiddlewareFor adds a http middleware to existing handler

func (*APIClarityPluginsTelemetriesAPIAPI) AuthenticatorsFor

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*APIClarityPluginsTelemetriesAPIAPI) Authorizer

Authorizer returns the registered authorizer

func (*APIClarityPluginsTelemetriesAPIAPI) ConsumersFor

func (o *APIClarityPluginsTelemetriesAPIAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.

func (*APIClarityPluginsTelemetriesAPIAPI) Context

Context returns the middleware context for the API clarity plugins telemetries API API

func (*APIClarityPluginsTelemetriesAPIAPI) DefaultConsumes

func (o *APIClarityPluginsTelemetriesAPIAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*APIClarityPluginsTelemetriesAPIAPI) DefaultProduces

func (o *APIClarityPluginsTelemetriesAPIAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*APIClarityPluginsTelemetriesAPIAPI) Formats

Formats returns the registered string formats

func (*APIClarityPluginsTelemetriesAPIAPI) HandlerFor

func (o *APIClarityPluginsTelemetriesAPIAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*APIClarityPluginsTelemetriesAPIAPI) Init

Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit

func (*APIClarityPluginsTelemetriesAPIAPI) ProducersFor

func (o *APIClarityPluginsTelemetriesAPIAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.

func (*APIClarityPluginsTelemetriesAPIAPI) RegisterConsumer

func (o *APIClarityPluginsTelemetriesAPIAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)

RegisterConsumer allows you to add (or override) a consumer for a media type.

func (*APIClarityPluginsTelemetriesAPIAPI) RegisterFormat

func (o *APIClarityPluginsTelemetriesAPIAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*APIClarityPluginsTelemetriesAPIAPI) RegisterProducer

func (o *APIClarityPluginsTelemetriesAPIAPI) RegisterProducer(mediaType string, producer runtime.Producer)

RegisterProducer allows you to add (or override) a producer for a media type.

func (*APIClarityPluginsTelemetriesAPIAPI) Serve

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*APIClarityPluginsTelemetriesAPIAPI) ServeErrorFor

func (o *APIClarityPluginsTelemetriesAPIAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*APIClarityPluginsTelemetriesAPIAPI) SetDefaultConsumes

func (o *APIClarityPluginsTelemetriesAPIAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*APIClarityPluginsTelemetriesAPIAPI) SetDefaultProduces

func (o *APIClarityPluginsTelemetriesAPIAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*APIClarityPluginsTelemetriesAPIAPI) SetSpec

SetSpec sets a spec that will be served for the clients.

func (*APIClarityPluginsTelemetriesAPIAPI) UseRedoc

func (o *APIClarityPluginsTelemetriesAPIAPI) UseRedoc()

UseRedoc for documentation at /docs

func (*APIClarityPluginsTelemetriesAPIAPI) UseSwaggerUI

func (o *APIClarityPluginsTelemetriesAPIAPI) UseSwaggerUI()

UseSwaggerUI for documentation at /docs

func (*APIClarityPluginsTelemetriesAPIAPI) Validate

Validate validates the registrations in the APIClarityPluginsTelemetriesAPIAPI

type GetHostsToTrace

type GetHostsToTrace struct {
	Context *middleware.Context
	Handler GetHostsToTraceHandler
}
GetHostsToTrace swagger:route GET /hostsToTrace getHostsToTrace

Get a list of hosts to trace

func NewGetHostsToTrace

func NewGetHostsToTrace(ctx *middleware.Context, handler GetHostsToTraceHandler) *GetHostsToTrace

NewGetHostsToTrace creates a new http.Handler for the get hosts to trace operation

func (*GetHostsToTrace) ServeHTTP

func (o *GetHostsToTrace) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetHostsToTraceDefault

type GetHostsToTraceDefault struct {

	/*
	  In: Body
	*/
	Payload *models.APIResponse `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetHostsToTraceDefault unknown error

swagger:response getHostsToTraceDefault

func NewGetHostsToTraceDefault

func NewGetHostsToTraceDefault(code int) *GetHostsToTraceDefault

NewGetHostsToTraceDefault creates GetHostsToTraceDefault with default headers values

func (*GetHostsToTraceDefault) SetPayload

func (o *GetHostsToTraceDefault) SetPayload(payload *models.APIResponse)

SetPayload sets the payload to the get hosts to trace default response

func (*GetHostsToTraceDefault) SetStatusCode

func (o *GetHostsToTraceDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get hosts to trace default response

func (*GetHostsToTraceDefault) WithPayload

WithPayload adds the payload to the get hosts to trace default response

func (*GetHostsToTraceDefault) WithStatusCode

func (o *GetHostsToTraceDefault) WithStatusCode(code int) *GetHostsToTraceDefault

WithStatusCode adds the status to the get hosts to trace default response

func (*GetHostsToTraceDefault) WriteResponse

func (o *GetHostsToTraceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetHostsToTraceHandler

type GetHostsToTraceHandler interface {
	Handle(GetHostsToTraceParams) middleware.Responder
}

GetHostsToTraceHandler interface for that can handle valid get hosts to trace params

type GetHostsToTraceHandlerFunc

type GetHostsToTraceHandlerFunc func(GetHostsToTraceParams) middleware.Responder

GetHostsToTraceHandlerFunc turns a function with the right signature into a get hosts to trace handler

func (GetHostsToTraceHandlerFunc) Handle

Handle executing the request and returning a response

type GetHostsToTraceOK

type GetHostsToTraceOK struct {

	/*
	  In: Body
	*/
	Payload *models.HostsToTrace `json:"body,omitempty"`
}

GetHostsToTraceOK Success

swagger:response getHostsToTraceOK

func NewGetHostsToTraceOK

func NewGetHostsToTraceOK() *GetHostsToTraceOK

NewGetHostsToTraceOK creates GetHostsToTraceOK with default headers values

func (*GetHostsToTraceOK) SetPayload

func (o *GetHostsToTraceOK) SetPayload(payload *models.HostsToTrace)

SetPayload sets the payload to the get hosts to trace o k response

func (*GetHostsToTraceOK) WithPayload

func (o *GetHostsToTraceOK) WithPayload(payload *models.HostsToTrace) *GetHostsToTraceOK

WithPayload adds the payload to the get hosts to trace o k response

func (*GetHostsToTraceOK) WriteResponse

func (o *GetHostsToTraceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetHostsToTraceParams

type GetHostsToTraceParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Optional header to authenticate the trace source
	  In: header
	*/
	XTraceSourceToken *string
}

GetHostsToTraceParams contains all the bound params for the get hosts to trace operation typically these are obtained from a http.Request

swagger:parameters GetHostsToTrace

func NewGetHostsToTraceParams

func NewGetHostsToTraceParams() GetHostsToTraceParams

NewGetHostsToTraceParams creates a new GetHostsToTraceParams object

There are no default values defined in the spec.

func (*GetHostsToTraceParams) BindRequest

func (o *GetHostsToTraceParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetHostsToTraceParams() beforehand.

type GetHostsToTraceURL

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

GetHostsToTraceURL generates an URL for the get hosts to trace operation

func (*GetHostsToTraceURL) Build

func (o *GetHostsToTraceURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetHostsToTraceURL) BuildFull

func (o *GetHostsToTraceURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetHostsToTraceURL) Must

func (o *GetHostsToTraceURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetHostsToTraceURL) SetBasePath

func (o *GetHostsToTraceURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetHostsToTraceURL) String

func (o *GetHostsToTraceURL) String() string

String returns the string representation of the path with query string

func (*GetHostsToTraceURL) StringFull

func (o *GetHostsToTraceURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetHostsToTraceURL) WithBasePath

func (o *GetHostsToTraceURL) WithBasePath(bp string) *GetHostsToTraceURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type PostControlNewDiscoveredAPIs

type PostControlNewDiscoveredAPIs struct {
	Context *middleware.Context
	Handler PostControlNewDiscoveredAPIsHandler
}
PostControlNewDiscoveredAPIs swagger:route POST /control/newDiscoveredAPIs postControlNewDiscoveredAPIs

Allows a client to notify APIClarity about new APIs.

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 NewPostControlNewDiscoveredAPIs

func NewPostControlNewDiscoveredAPIs(ctx *middleware.Context, handler PostControlNewDiscoveredAPIsHandler) *PostControlNewDiscoveredAPIs

NewPostControlNewDiscoveredAPIs creates a new http.Handler for the post control new discovered a p is operation

func (*PostControlNewDiscoveredAPIs) ServeHTTP

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 {

	/*
	  In: Body
	*/
	Payload *models.APIResponse `json:"body,omitempty"`
	// contains filtered or unexported fields
}

PostControlNewDiscoveredAPIsDefault unknown error

swagger:response postControlNewDiscoveredAPIsDefault

func NewPostControlNewDiscoveredAPIsDefault

func NewPostControlNewDiscoveredAPIsDefault(code int) *PostControlNewDiscoveredAPIsDefault

NewPostControlNewDiscoveredAPIsDefault creates PostControlNewDiscoveredAPIsDefault with default headers values

func (*PostControlNewDiscoveredAPIsDefault) SetPayload

func (o *PostControlNewDiscoveredAPIsDefault) SetPayload(payload *models.APIResponse)

SetPayload sets the payload to the post control new discovered a p is default response

func (*PostControlNewDiscoveredAPIsDefault) SetStatusCode

func (o *PostControlNewDiscoveredAPIsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the post control new discovered a p is default response

func (*PostControlNewDiscoveredAPIsDefault) WithPayload

WithPayload adds the payload to the post control new discovered a p is default response

func (*PostControlNewDiscoveredAPIsDefault) WithStatusCode

WithStatusCode adds the status to the post control new discovered a p is default response

func (*PostControlNewDiscoveredAPIsDefault) WriteResponse

WriteResponse to the client

type PostControlNewDiscoveredAPIsHandler

type PostControlNewDiscoveredAPIsHandler interface {
	Handle(PostControlNewDiscoveredAPIsParams) middleware.Responder
}

PostControlNewDiscoveredAPIsHandler interface for that can handle valid post control new discovered a p is params

type PostControlNewDiscoveredAPIsHandlerFunc

type PostControlNewDiscoveredAPIsHandlerFunc func(PostControlNewDiscoveredAPIsParams) middleware.Responder

PostControlNewDiscoveredAPIsHandlerFunc turns a function with the right signature into a post control new discovered a p is handler

func (PostControlNewDiscoveredAPIsHandlerFunc) Handle

Handle executing the request and returning a response

type PostControlNewDiscoveredAPIsOK

type PostControlNewDiscoveredAPIsOK struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

PostControlNewDiscoveredAPIsOK Success

swagger:response postControlNewDiscoveredAPIsOK

func NewPostControlNewDiscoveredAPIsOK

func NewPostControlNewDiscoveredAPIsOK() *PostControlNewDiscoveredAPIsOK

NewPostControlNewDiscoveredAPIsOK creates PostControlNewDiscoveredAPIsOK with default headers values

func (*PostControlNewDiscoveredAPIsOK) SetPayload

func (o *PostControlNewDiscoveredAPIsOK) SetPayload(payload interface{})

SetPayload sets the payload to the post control new discovered a p is o k response

func (*PostControlNewDiscoveredAPIsOK) WithPayload

func (o *PostControlNewDiscoveredAPIsOK) WithPayload(payload interface{}) *PostControlNewDiscoveredAPIsOK

WithPayload adds the payload to the post control new discovered a p is o k response

func (*PostControlNewDiscoveredAPIsOK) WriteResponse

func (o *PostControlNewDiscoveredAPIsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostControlNewDiscoveredAPIsParams

type PostControlNewDiscoveredAPIsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Optional header to authenticate the trace source
	  In: header
	*/
	XTraceSourceToken *string
	/*List of new discovered APIs
	  Required: true
	  In: body
	*/
	Body PostControlNewDiscoveredAPIsBody
}

PostControlNewDiscoveredAPIsParams contains all the bound params for the post control new discovered a p is operation typically these are obtained from a http.Request

swagger:parameters PostControlNewDiscoveredAPIs

func NewPostControlNewDiscoveredAPIsParams

func NewPostControlNewDiscoveredAPIsParams() PostControlNewDiscoveredAPIsParams

NewPostControlNewDiscoveredAPIsParams creates a new PostControlNewDiscoveredAPIsParams object

There are no default values defined in the spec.

func (*PostControlNewDiscoveredAPIsParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewPostControlNewDiscoveredAPIsParams() beforehand.

type PostControlNewDiscoveredAPIsURL

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

PostControlNewDiscoveredAPIsURL generates an URL for the post control new discovered a p is operation

func (*PostControlNewDiscoveredAPIsURL) Build

Build a url path and query string

func (*PostControlNewDiscoveredAPIsURL) BuildFull

func (o *PostControlNewDiscoveredAPIsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PostControlNewDiscoveredAPIsURL) Must

func (o *PostControlNewDiscoveredAPIsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PostControlNewDiscoveredAPIsURL) SetBasePath

func (o *PostControlNewDiscoveredAPIsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*PostControlNewDiscoveredAPIsURL) String

String returns the string representation of the path with query string

func (*PostControlNewDiscoveredAPIsURL) StringFull

func (o *PostControlNewDiscoveredAPIsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PostControlNewDiscoveredAPIsURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type PostTelemetry

type PostTelemetry struct {
	Context *middleware.Context
	Handler PostTelemetryHandler
}
PostTelemetry swagger:route POST /telemetry postTelemetry

Post an http telemetry

func NewPostTelemetry

func NewPostTelemetry(ctx *middleware.Context, handler PostTelemetryHandler) *PostTelemetry

NewPostTelemetry creates a new http.Handler for the post telemetry operation

func (*PostTelemetry) ServeHTTP

func (o *PostTelemetry) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PostTelemetryDefault

type PostTelemetryDefault struct {

	/*
	  In: Body
	*/
	Payload *models.APIResponse `json:"body,omitempty"`
	// contains filtered or unexported fields
}

PostTelemetryDefault unknown error

swagger:response postTelemetryDefault

func NewPostTelemetryDefault

func NewPostTelemetryDefault(code int) *PostTelemetryDefault

NewPostTelemetryDefault creates PostTelemetryDefault with default headers values

func (*PostTelemetryDefault) SetPayload

func (o *PostTelemetryDefault) SetPayload(payload *models.APIResponse)

SetPayload sets the payload to the post telemetry default response

func (*PostTelemetryDefault) SetStatusCode

func (o *PostTelemetryDefault) SetStatusCode(code int)

SetStatusCode sets the status to the post telemetry default response

func (*PostTelemetryDefault) WithPayload

func (o *PostTelemetryDefault) WithPayload(payload *models.APIResponse) *PostTelemetryDefault

WithPayload adds the payload to the post telemetry default response

func (*PostTelemetryDefault) WithStatusCode

func (o *PostTelemetryDefault) WithStatusCode(code int) *PostTelemetryDefault

WithStatusCode adds the status to the post telemetry default response

func (*PostTelemetryDefault) WriteResponse

func (o *PostTelemetryDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostTelemetryHandler

type PostTelemetryHandler interface {
	Handle(PostTelemetryParams) middleware.Responder
}

PostTelemetryHandler interface for that can handle valid post telemetry params

type PostTelemetryHandlerFunc

type PostTelemetryHandlerFunc func(PostTelemetryParams) middleware.Responder

PostTelemetryHandlerFunc turns a function with the right signature into a post telemetry handler

func (PostTelemetryHandlerFunc) Handle

Handle executing the request and returning a response

type PostTelemetryOK

type PostTelemetryOK struct {

	/*
	  In: Body
	*/
	Payload interface{} `json:"body,omitempty"`
}

PostTelemetryOK Success

swagger:response postTelemetryOK

func NewPostTelemetryOK

func NewPostTelemetryOK() *PostTelemetryOK

NewPostTelemetryOK creates PostTelemetryOK with default headers values

func (*PostTelemetryOK) SetPayload

func (o *PostTelemetryOK) SetPayload(payload interface{})

SetPayload sets the payload to the post telemetry o k response

func (*PostTelemetryOK) WithPayload

func (o *PostTelemetryOK) WithPayload(payload interface{}) *PostTelemetryOK

WithPayload adds the payload to the post telemetry o k response

func (*PostTelemetryOK) WriteResponse

func (o *PostTelemetryOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostTelemetryParams

type PostTelemetryParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Optional header to authenticate the trace source
	  In: header
	*/
	XTraceSourceToken *string
	/*
	  Required: true
	  In: body
	*/
	Body *models.Telemetry
}

PostTelemetryParams contains all the bound params for the post telemetry operation typically these are obtained from a http.Request

swagger:parameters PostTelemetry

func NewPostTelemetryParams

func NewPostTelemetryParams() PostTelemetryParams

NewPostTelemetryParams creates a new PostTelemetryParams object

There are no default values defined in the spec.

func (*PostTelemetryParams) BindRequest

func (o *PostTelemetryParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewPostTelemetryParams() beforehand.

type PostTelemetryURL

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

PostTelemetryURL generates an URL for the post telemetry operation

func (*PostTelemetryURL) Build

func (o *PostTelemetryURL) Build() (*url.URL, error)

Build a url path and query string

func (*PostTelemetryURL) BuildFull

func (o *PostTelemetryURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PostTelemetryURL) Must

func (o *PostTelemetryURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PostTelemetryURL) SetBasePath

func (o *PostTelemetryURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*PostTelemetryURL) String

func (o *PostTelemetryURL) String() string

String returns the string representation of the path with query string

func (*PostTelemetryURL) StringFull

func (o *PostTelemetryURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PostTelemetryURL) WithBasePath

func (o *PostTelemetryURL) WithBasePath(bp string) *PostTelemetryURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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