models

package
v0.0.0-...-25ad089 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPRequest

type HTTPRequest struct {

	// body
	Body string `json:"body,omitempty"`

	// cookies
	Cookies []string `json:"cookies,omitempty"`

	// headers
	Headers map[string]string `json:"headers"`

	// http method
	HTTPMethod string `json:"httpMethod"`

	// A boolean flag to indicate if the body is Base64-encoded
	IsBase64Encoded bool `json:"isBase64Encoded"`

	// multi value headers
	MultiValueHeaders map[string][]string `json:"multiValueHeaders"`

	// encoded path hint (see EscapedPath method)
	RawPath string `json:"rawPath"`

	// encoded query values, without '?'
	RawQueryString string `json:"rawQueryString"`
}

HTTPRequest HTTP request

swagger:model HTTPRequest

func (*HTTPRequest) ContextValidate

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

ContextValidate validates this HTTP request based on context it is used

func (*HTTPRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*HTTPRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HTTPRequest) Validate

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

Validate validates this HTTP request

type HTTPResponse

type HTTPResponse struct {

	// body
	Body string `json:"body,omitempty"`

	// cookies
	Cookies []string `json:"cookies,omitempty"`

	// headers
	Headers map[string]string `json:"headers"`

	// A boolean flag to indicate if the body is Base64-encoded
	IsBase64Encoded bool `json:"isBase64Encoded"`

	// multi value headers
	MultiValueHeaders map[string][]string `json:"multiValueHeaders,omitempty"`

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

HTTPResponse HTTP response

swagger:model HTTPResponse

func (*HTTPResponse) ContextValidate

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

ContextValidate validates this HTTP response based on context it is used

func (*HTTPResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*HTTPResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HTTPResponse) Validate

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

Validate validates this HTTP response

type HealthHealthy

type HealthHealthy struct {

	// details
	Details []interface{} `json:"details"`

	// Status always contains "OK".
	Status string `json:"status,omitempty"`
}

HealthHealthy health healthy

swagger:model HealthHealthy

func (*HealthHealthy) ContextValidate

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

ContextValidate validates this health healthy based on context it is used

func (*HealthHealthy) MarshalBinary

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

MarshalBinary interface implementation

func (*HealthHealthy) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HealthHealthy) Validate

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

Validate validates this health healthy

type HealthServiceUnavailable

type HealthServiceUnavailable struct {

	// Errors contains a list of errors that caused the not ready status.
	Errors map[string]string `json:"errors,omitempty"`

	// Status always contains "NOT OK".
	Status string `json:"status,omitempty"`
}

HealthServiceUnavailable health service unavailable

swagger:model HealthServiceUnavailable

func (*HealthServiceUnavailable) ContextValidate

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

ContextValidate validates this health service unavailable based on context it is used

func (*HealthServiceUnavailable) MarshalBinary

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

MarshalBinary interface implementation

func (*HealthServiceUnavailable) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HealthServiceUnavailable) Validate

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

Validate validates this health service unavailable

type StandardError

type StandardError struct {

	// code
	Code int64 `json:"code,omitempty"`

	// details
	Details []interface{} `json:"details"`

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

StandardError standard error

swagger:model StandardError

func (*StandardError) ContextValidate

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

ContextValidate validates this standard error based on context it is used

func (*StandardError) MarshalBinary

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

MarshalBinary interface implementation

func (*StandardError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StandardError) Validate

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

Validate validates this standard error

type VM

type VM struct {

	// Virtual Machine ID.
	ID string `json:"id,omitempty"`

	// IP address of VM
	IP string `json:"ip,omitempty"`
}

VM Virtual Machine

swagger:model VM

func (*VM) ContextValidate

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

ContextValidate validates this VM based on context it is used

func (*VM) MarshalBinary

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

MarshalBinary interface implementation

func (*VM) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*VM) Validate

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

Validate validates this VM

Jump to

Keyboard shortcuts

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