models

package
v0.0.0-...-037b8db Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestAgent

type RequestAgent struct {

	// id
	ID string `json:"id,omitempty"`

	// nets
	Nets []string `json:"nets"`
}

RequestAgent Agent info

swagger:model Request.Agent

func (*RequestAgent) MarshalBinary

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

MarshalBinary interface implementation

func (*RequestAgent) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RequestAgent) Validate

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

Validate validates this request agent

type RequestTask

type RequestTask struct {

	// agent
	Agent string `json:"agent,omitempty"`

	// command
	Command string `json:"command,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// target
	Target string `json:"target,omitempty"`
}

RequestTask Task info

swagger:model Request.Task

func (*RequestTask) MarshalBinary

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

MarshalBinary interface implementation

func (*RequestTask) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RequestTask) Validate

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

Validate validates this request task

type ResponseError

type ResponseError struct {

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

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

ResponseError Error response

swagger:model Response.Error

func (*ResponseError) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseError) Validate

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

Validate validates this response error

type ResponseTask

type ResponseTask struct {

	// id
	ID string `json:"id,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

ResponseTask Task Response

swagger:model Response.Task

func (*ResponseTask) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseTask) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseTask) Validate

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

Validate validates this response task

type ResponseVersion

type ResponseVersion struct {

	// branch
	Branch string `json:"branch,omitempty"`

	// build time
	BuildTime string `json:"build_time,omitempty"`

	// commit
	Commit string `json:"commit,omitempty"`

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

ResponseVersion Version response

swagger:model Response.Version

func (*ResponseVersion) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseVersion) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseVersion) Validate

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

Validate validates this response version

Jump to

Keyboard shortcuts

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