models

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: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {

	// message
	Message string `json:"message,omitempty"`
}

APIResponse An object that is return in all cases of failures.

swagger:model ApiResponse

func (*APIResponse) ContextValidate

func (m *APIResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Api response based on context it is used

func (*APIResponse) MarshalBinary

func (m *APIResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIResponse) UnmarshalBinary

func (m *APIResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIResponse) Validate

func (m *APIResponse) Validate(formats strfmt.Registry) error

Validate validates this Api response

type Common

type Common struct {

	// truncated body
	TruncatedBody bool `json:"TruncatedBody,omitempty"`

	// body
	// Format: byte
	Body strfmt.Base64 `json:"body,omitempty"`

	// headers
	Headers []*Header `json:"headers"`

	// Time since epoch (milliseconds)
	Time int64 `json:"time,omitempty"`

	// version
	Version string `json:"version,omitempty"`
}

Common common

swagger:model Common

func (*Common) ContextValidate

func (m *Common) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this common based on the context it is used

func (*Common) MarshalBinary

func (m *Common) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Common) UnmarshalBinary

func (m *Common) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Common) Validate

func (m *Common) Validate(formats strfmt.Registry) error

Validate validates this common

type Header struct {

	// key
	Key string `json:"key,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

Header header

swagger:model Header

func (*Header) ContextValidate

func (m *Header) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this header based on context it is used

func (*Header) MarshalBinary

func (m *Header) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Header) UnmarshalBinary

func (m *Header) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Header) Validate

func (m *Header) Validate(formats strfmt.Registry) error

Validate validates this header

type HostsList

type HostsList []string

HostsList List of hosts

swagger:model HostsList

func (HostsList) ContextValidate

func (m HostsList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this hosts list based on context it is used

func (HostsList) Validate

func (m HostsList) Validate(formats strfmt.Registry) error

Validate validates this hosts list

type HostsToTrace

type HostsToTrace struct {

	// hosts
	// Required: true
	Hosts HostsList `json:"hosts"`
}

HostsToTrace List of hosts to trace

swagger:model HostsToTrace

func (*HostsToTrace) ContextValidate

func (m *HostsToTrace) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this hosts to trace based on the context it is used

func (*HostsToTrace) MarshalBinary

func (m *HostsToTrace) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HostsToTrace) UnmarshalBinary

func (m *HostsToTrace) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HostsToTrace) Validate

func (m *HostsToTrace) Validate(formats strfmt.Registry) error

Validate validates this hosts to trace

type Request

type Request struct {

	// common
	Common *Common `json:"common,omitempty"`

	// host
	Host string `json:"host,omitempty"`

	// method
	Method string `json:"method,omitempty"`

	// path
	Path string `json:"path,omitempty"`
}

Request request

swagger:model Request

func (*Request) ContextValidate

func (m *Request) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this request based on the context it is used

func (*Request) MarshalBinary

func (m *Request) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Request) UnmarshalBinary

func (m *Request) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Request) Validate

func (m *Request) Validate(formats strfmt.Registry) error

Validate validates this request

type Response

type Response struct {

	// common
	Common *Common `json:"common,omitempty"`

	// status code
	StatusCode string `json:"statusCode,omitempty"`
}

Response response

swagger:model Response

func (*Response) ContextValidate

func (m *Response) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this response based on the context it is used

func (*Response) MarshalBinary

func (m *Response) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Response) UnmarshalBinary

func (m *Response) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Response) Validate

func (m *Response) Validate(formats strfmt.Registry) error

Validate validates this response

type SuccessResponse

type SuccessResponse struct {

	// message
	Message string `json:"message,omitempty"`
}

SuccessResponse An object that is return in cases of success that return nothing.

swagger:model SuccessResponse

func (*SuccessResponse) ContextValidate

func (m *SuccessResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this success response based on context it is used

func (*SuccessResponse) MarshalBinary

func (m *SuccessResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SuccessResponse) UnmarshalBinary

func (m *SuccessResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SuccessResponse) Validate

func (m *SuccessResponse) Validate(formats strfmt.Registry) error

Validate validates this success response

type Telemetry

type Telemetry struct {

	// destination address
	DestinationAddress string `json:"destinationAddress,omitempty"`

	// destination namespace
	DestinationNamespace string `json:"destinationNamespace,omitempty"`

	// request
	Request *Request `json:"request,omitempty"`

	// request ID
	RequestID string `json:"requestID,omitempty"`

	// response
	Response *Response `json:"response,omitempty"`

	// scheme
	Scheme string `json:"scheme,omitempty"`

	// source address
	SourceAddress string `json:"sourceAddress,omitempty"`
}

Telemetry telemetry

swagger:model Telemetry

func (*Telemetry) ContextValidate

func (m *Telemetry) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this telemetry based on the context it is used

func (*Telemetry) MarshalBinary

func (m *Telemetry) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Telemetry) UnmarshalBinary

func (m *Telemetry) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Telemetry) Validate

func (m *Telemetry) Validate(formats strfmt.Registry) error

Validate validates this telemetry

Jump to

Keyboard shortcuts

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