models

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {

	// error
	Error string `json:"Message,omitempty"`

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

ErrorResponse error response

swagger:model ErrorResponse

func (*ErrorResponse) ContextValidate

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

ContextValidate validates this error response based on context it is used

func (*ErrorResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorResponse) Validate

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

Validate validates this error response

type OkBody

type OkBody map[string]interface{}

OkBody OkBody is an arbitrary placeholder response that represents an ok response body

swagger:model OkBody

func (OkBody) ContextValidate

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

ContextValidate validates this ok body based on context it is used

func (OkBody) Validate

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

Validate validates this ok body

type UpdateServiceRequest

type UpdateServiceRequest struct {

	// cmd
	// Required: true
	Cmd *string `json:"cmd"`

	// image
	// Required: true
	Image *string `json:"image"`

	// minScale
	// Required: true
	MinScale *int32 `json:"minScale"`

	// size
	// Required: true
	Size *int32 `json:"size"`

	// trafficPercent
	// Required: true
	TrafficPercent *int64 `json:"trafficPercent"`
}

UpdateServiceRequest UpdateServiceRequest UpdateServiceRequest update service request

swagger:model updateServiceRequest

func (*UpdateServiceRequest) ContextValidate

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

ContextValidate validates this update service request based on context it is used

func (*UpdateServiceRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateServiceRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateServiceRequest) Validate

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

Validate validates this update service request

Jump to

Keyboard shortcuts

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