models

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: GPL-3.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 HistoryItem added in v1.0.1

type HistoryItem struct {

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

	// created
	Created string `json:"created,omitempty"`

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

	// images
	Images []string `json:"images"`

	// options
	Options interface{} `json:"options,omitempty"`

	// user id
	UserID string `json:"user_id,omitempty"`
}

HistoryItem history item

swagger:model HistoryItem

func (*HistoryItem) ContextValidate added in v1.0.1

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

ContextValidate validates this history item based on context it is used

func (*HistoryItem) MarshalBinary added in v1.0.1

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

MarshalBinary interface implementation

func (*HistoryItem) UnmarshalBinary added in v1.0.1

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

UnmarshalBinary interface implementation

func (*HistoryItem) Validate added in v1.0.1

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

Validate validates this history item

type HistoryList added in v1.0.1

type HistoryList struct {

	// code
	Code int32 `json:"code"`

	// data
	Data *HistoryListData `json:"data"`

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

HistoryList history list

swagger:model HistoryList

func (*HistoryList) ContextValidate added in v1.0.1

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

ContextValidate validate this history list based on the context it is used

func (*HistoryList) MarshalBinary added in v1.0.1

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

MarshalBinary interface implementation

func (*HistoryList) UnmarshalBinary added in v1.0.1

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

UnmarshalBinary interface implementation

func (*HistoryList) Validate added in v1.0.1

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

Validate validates this history list

type HistoryListData added in v1.0.1

type HistoryListData struct {

	// history
	History []*HistoryItem `json:"history"`

	// page info
	PageInfo *PageInfoResponse `json:"page_info,omitempty"`
}

HistoryListData history list data

swagger:model HistoryListData

func (*HistoryListData) ContextValidate added in v1.0.1

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

ContextValidate validate this history list data based on the context it is used

func (*HistoryListData) MarshalBinary added in v1.0.1

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

MarshalBinary interface implementation

func (*HistoryListData) UnmarshalBinary added in v1.0.1

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

UnmarshalBinary interface implementation

func (*HistoryListData) Validate added in v1.0.1

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

Validate validates this history list data

type HistoryQuery added in v1.0.1

type HistoryQuery struct {

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

HistoryQuery history query

swagger:model HistoryQuery

func (*HistoryQuery) ContextValidate added in v1.0.1

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

ContextValidate validates this history query based on context it is used

func (*HistoryQuery) MarshalBinary added in v1.0.1

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

MarshalBinary interface implementation

func (*HistoryQuery) UnmarshalBinary added in v1.0.1

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

UnmarshalBinary interface implementation

func (*HistoryQuery) Validate added in v1.0.1

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

Validate validates this history query

type PageInfoRequest

type PageInfoRequest struct {

	// page
	Page int32 `json:"page,omitempty"`

	// page size
	PageSize int32 `json:"page_size,omitempty"`
}

PageInfoRequest page info request

swagger:model PageInfoRequest

func (*PageInfoRequest) ContextValidate

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

ContextValidate validates this page info request based on context it is used

func (*PageInfoRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*PageInfoRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PageInfoRequest) Validate

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

Validate validates this page info request

type PageInfoResponse

type PageInfoResponse struct {

	// page
	Page int32 `json:"page,omitempty"`

	// page size
	PageSize int32 `json:"page_size,omitempty"`

	// total
	Total int32 `json:"total,omitempty"`
}

PageInfoResponse page info response

swagger:model PageInfoResponse

func (*PageInfoResponse) ContextValidate

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

ContextValidate validates this page info response based on context it is used

func (*PageInfoResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*PageInfoResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PageInfoResponse) Validate

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

Validate validates this page info response

type UserInfo

type UserInfo struct {

	// code
	Code int32 `json:"code"`

	// data
	Data *UserInfoData `json:"data"`

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

UserInfo user info

swagger:model UserInfo

func (*UserInfo) ContextValidate

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

ContextValidate validate this user info based on the context it is used

func (*UserInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*UserInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserInfo) Validate

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

Validate validates this user info

type UserInfoData

type UserInfoData struct {

	// user
	User *UserItem `json:"user,omitempty"`
}

UserInfoData user info data

swagger:model UserInfoData

func (*UserInfoData) ContextValidate

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

ContextValidate validate this user info data based on the context it is used

func (*UserInfoData) MarshalBinary

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

MarshalBinary interface implementation

func (*UserInfoData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserInfoData) Validate

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

Validate validates this user info data

type UserItem

type UserItem struct {

	// avatar
	Avatar string `json:"avatar,omitempty"`

	// created
	Created string `json:"created,omitempty"`

	// enable
	Enable bool `json:"enable,omitempty"`

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

	// roles
	Roles string `json:"roles,omitempty"`

	// stable config
	StableConfig interface{} `json:"stable_config,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

UserItem user item

swagger:model UserItem

func (*UserItem) ContextValidate

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

ContextValidate validates this user item based on context it is used

func (*UserItem) MarshalBinary

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

MarshalBinary interface implementation

func (*UserItem) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserItem) Validate

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

Validate validates this user item

type UserList

type UserList struct {

	// code
	Code int32 `json:"code"`

	// data
	Data *UserListData `json:"data"`

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

UserList user list

swagger:model UserList

func (*UserList) ContextValidate

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

ContextValidate validate this user list based on the context it is used

func (*UserList) MarshalBinary

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

MarshalBinary interface implementation

func (*UserList) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserList) Validate

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

Validate validates this user list

type UserListData

type UserListData struct {

	// page info
	PageInfo *PageInfoResponse `json:"page_info,omitempty"`

	// users
	Users []*UserItem `json:"users"`
}

UserListData user list data

swagger:model UserListData

func (*UserListData) ContextValidate

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

ContextValidate validate this user list data based on the context it is used

func (*UserListData) MarshalBinary

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

MarshalBinary interface implementation

func (*UserListData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserListData) Validate

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

Validate validates this user list data

type UserQuery

type UserQuery struct {

	// enable
	Enable bool `json:"enable,omitempty"`

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

	// username
	Username string `json:"username,omitempty"`
}

UserQuery user query

swagger:model UserQuery

func (*UserQuery) ContextValidate

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

ContextValidate validates this user query based on context it is used

func (*UserQuery) MarshalBinary

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

MarshalBinary interface implementation

func (*UserQuery) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserQuery) Validate

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

Validate validates this user query

Jump to

Keyboard shortcuts

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