models

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentInfo

type AgentInfo struct {

	// Date/time when Agent was added.
	// Example: 2018-10-28T16:45:03.6037837Z
	AddedAt string `json:"addedAt,omitempty"`

	// Hostname of Agent.
	// Example: 8a62f2d3b523
	Address string `json:"address,omitempty"`

	// UUID of the Agent.
	// Example: 0a6bccb3-094f-4c65-a8cd-2903e4672968
	ID string `json:"id,omitempty"`

	// Name of the AMQP queue the Agent accepts messages on.
	// Example: 0a6bccb3-094f-4c65-a8cd-2903e4672968
	Queue string `json:"queue,omitempty"`

	// BSON ID of current task.
	// Example: 5af05d5e9293620001b41d2c
	TaskID string `json:"taskID,omitempty"`

	// Date/time current task was assigned.
	// Example: 2018-10-28T16:51:02.8492307Z
	TaskedAt string `json:"taskedAt,omitempty"`
}

AgentInfo Information about an Agent.

swagger:model AgentInfo

func (*AgentInfo) ContextValidate

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

ContextValidate validates this agent info based on context it is used

func (*AgentInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*AgentInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AgentInfo) Validate

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

Validate validates this agent info

type AgentInfoList

type AgentInfoList struct {

	// data
	Data []*AgentInfo `json:"data"`
}

AgentInfoList agent info list

swagger:model AgentInfoList

func (*AgentInfoList) ContextValidate

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

ContextValidate validate this agent info list based on the context it is used

func (*AgentInfoList) MarshalBinary

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

MarshalBinary interface implementation

func (*AgentInfoList) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AgentInfoList) Validate

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

Validate validates this agent info list

type JSONError

type JSONError struct {

	// error
	Error *JSONErrorError `json:"error,omitempty"`
}

JSONError JSON error

swagger:model JSONError

func (*JSONError) ContextValidate

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

ContextValidate validate this JSON error based on the context it is used

func (*JSONError) MarshalBinary

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

MarshalBinary interface implementation

func (*JSONError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*JSONError) Validate

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

Validate validates this JSON error

type JSONErrorError

type JSONErrorError struct {

	// HTTP status code.
	Code int64 `json:"code,omitempty"`

	// Detailed error message.
	Message string `json:"message,omitempty"`
}

JSONErrorError JSON error error

swagger:model JSONErrorError

func (*JSONErrorError) ContextValidate

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

ContextValidate validates this JSON error error based on context it is used

func (*JSONErrorError) MarshalBinary

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

MarshalBinary interface implementation

func (*JSONErrorError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*JSONErrorError) Validate

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

Validate validates this JSON error error

type VersionResponse

type VersionResponse struct {

	// data
	Data *VersionResponseData `json:"data,omitempty"`
}

VersionResponse Version check response.

swagger:model VersionResponse

func (*VersionResponse) ContextValidate

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

ContextValidate validate this version response based on the context it is used

func (*VersionResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*VersionResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*VersionResponse) Validate

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

Validate validates this version response

type VersionResponseData

type VersionResponseData struct {

	// Version of the service.
	// Example: v1.2.0-0-gdeadbee
	Version string `json:"version,omitempty"`
}

VersionResponseData version response data

swagger:model VersionResponseData

func (*VersionResponseData) ContextValidate

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

ContextValidate validates this version response data based on context it is used

func (*VersionResponseData) MarshalBinary

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

MarshalBinary interface implementation

func (*VersionResponseData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*VersionResponseData) Validate

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

Validate validates this version response data

Jump to

Keyboard shortcuts

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