schema

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package schema Date: 2022/11/9 10:18 Author: Amu Description:

Package schema Date: 2024/3/27 16:36 Author: Amu Description:

Package schema Date: 2024/3/6 13:20 Author: Amu Description:

Package schema Date: 2024/3/6 13:20 Author: Amu Description:

Package schema Date: 2024/3/6 13:19 Author: Amu Description:

Package schema Date: 2024/3/27 16:36 Author: Amu Description:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audit

type Audit struct {
	ID       uint   `json:"id"`
	Username string `json:"username"`
	Operate  string `json:"operate"`
	Created  string `json:"created"`
}

type AuditQueryArgs

type AuditQueryArgs struct {
	Page int `json:"page" validate:"required"`
	Size int `json:"size" validate:"required,gt=0"`
}

type AuditQueryReply

type AuditQueryReply struct {
	Data  []Audit `json:"data"`
	Total int     `json:"total"`
	Page  int     `json:"page"`
	Size  int     `json:"size"`
}

type CPUInfoReply

type CPUInfoReply struct {
	Percent float64 `json:"percent"`
}

type CPUUsageArgs

type CPUUsageArgs struct {
	StartTime int64 `query:"start_time"`
	EndTime   int64 `query:"end_time"`
}

type CPUUsageReply

type CPUUsageReply struct {
	Data []Usage `json:"data"`
}

type Container

type Container struct {
	ID            string `json:"id"`
	Name          string `json:"name"`
	Image         string `json:"image"`
	IP            string `json:"ip"`
	State         string `json:"state"`
	Uptime        string `json:"uptime"`
	CPUPercent    string `json:"cpu_percent"`
	MemoryPercent string `json:"memory_percent"`
	MemoryUsage   string `json:"memory_usage"`
	MemoryLimit   string `json:"memory_limit"`
}

type ContainerQueryArgs

type ContainerQueryArgs struct {
	Page int `json:"page" validate:"required"`
	Size int `json:"size" validate:"gte=0"`
}

type ContainerQueryRely

type ContainerQueryRely struct {
	Data  []Container `json:"data"`
	Total int         `json:"total"`
	Page  int         `json:"page"`
	Size  int         `json:"size"`
}

type ContainerRemoveArgs

type ContainerRemoveArgs struct {
	ContainerID string `json:"container_id" validate:"required"`
}

type ContainerRestartArgs

type ContainerRestartArgs struct {
	ContainerID string `json:"container_id" validate:"required"`
}

type ContainerStartArgs

type ContainerStartArgs struct {
	ContainerID string `json:"container_id" validate:"required"`
}

type ContainerStopArgs

type ContainerStopArgs struct {
	ContainerID string `json:"container_id" validate:"required"`
}

type DiskIO

type DiskIO struct {
	Timestamp int64   `json:"timestamp"`
	IORead    float64 `json:"io_read"`
	IOWrite   float64 `json:"io_write"`
}

type DiskInfo

type DiskInfo struct {
	Device  string  `json:"device"`
	Percent float64 `json:"percent"`
	Total   float64 `json:"total"`
	Used    float64 `json:"used"`
}

type DiskInfoReply

type DiskInfoReply struct {
	Info []DiskInfo `json:"info"`
}

type DiskUsageArgs

type DiskUsageArgs struct {
	StartTime int64 `query:"start_time"`
	EndTime   int64 `query:"end_time"`
}

type DiskUsageReply

type DiskUsageReply struct {
	Device string   `json:"device"`
	Data   []DiskIO `json:"data"`
}

type Docker

type Docker struct {
	Timestamp     time.Time
	DockerVersion string `json:"docker_version"`
	APIVersion    string `json:"api_version"`
	MinAPIVersion string `json:"min_api_version"`
	GitCommit     string `json:"git_commit"`
	GoVersion     string `json:"go_version"`
	Os            string `json:"os"`
	Arch          string `json:"arch"`
}

type HostInfoReply

type HostInfoReply struct {
	Timestamp       int64  `json:"timestamp"`
	Uptime          string `json:"uptime"`
	Hostname        string `json:"hostname"`
	OS              string `json:"os"`
	Platform        string `json:"platform"`
	PlatformVersion string `json:"platform_version"`
	KernelVersion   string `json:"kernel_version"`
	KernelArch      string `json:"kernel_arch"`
}

type Image

type Image struct {
	ID      string `json:"id"`
	Name    string `json:"name"`
	Tag     string `json:"tag"`
	Created string `json:"created"`
	Size    string `json:"size"`
	Number  int    `json:"number"`
}

type ImageQueryArgs

type ImageQueryArgs struct {
	Page int `json:"page" validate:"required"`
	Size int `json:"size" validate:"gt=0"`
}

type ImageQueryReply

type ImageQueryReply struct {
	Data  []Image `json:"data"`
	Total int     `json:"total"`
	Page  int     `json:"page"`
	Size  int     `json:"size"`
}

type ImageRemoveArgs

type ImageRemoveArgs struct {
	ImageID string `json:"image_id" validate:"required"`
}

type LoginArgs

type LoginArgs struct {
	Username string `json:"username" validate:"required,gte=1" description:"用户名"`
	Password string `json:"password" validate:"required,gte=1" description:"用户密码"`
}

type LoginResult

type LoginResult struct {
	AccessToken  string `json:"access_token" description:"访问令牌"`
	RefreshToken string `json:"refresh_token" description:"刷新令牌"`
}

type MemoryInfoReply

type MemoryInfoReply struct {
	Percent float64 `json:"percent"`
	Total   float64 `json:"total"`
	Used    float64 `json:"used"`
}

type MemoryUsageArgs

type MemoryUsageArgs struct {
	StartTime int64 `query:"start_time"`
	EndTime   int64 `query:"end_time"`
}

type MemoryUsageReply

type MemoryUsageReply struct {
	Data []Usage `json:"data"`
}

type NetIO

type NetIO struct {
	Timestamp int64   `json:"timestamp"`
	BytesSent float64 `json:"bytes_sent"`
	BytesRecv float64 `json:"bytes_recv"`
}

type NetworkUsageArgs

type NetworkUsageArgs struct {
	StartTime int64 `query:"start_time"`
	EndTime   int64 `query:"end_time"`
}

type NetworkUsageReply

type NetworkUsageReply struct {
	Ethernet string  `json:"ethernet"`
	Data     []NetIO `json:"data"`
}

type Pagination

type Pagination struct {
	Total int64 `json:"total"`
	Size  int64 `json:"size"`
	Page  int64 `json:"page"`
}

type PasswordUpdateArgs

type PasswordUpdateArgs struct {
	Username    string `json:"username" validate:"required,gte=1" description:"用户名"`
	OldPassword string `json:"old_password" validate:"required,gte=1"  description:"旧密码"`
	NewPassword string `json:"new_password" validate:"required,gte=1"  description:"新密码"`
}

type Usage

type Usage struct {
	Timestamp int64   `json:"timestamp"`
	Value     float64 `json:"value"`
}

type User

type User struct {
	ID       string `json:"id,string"`                             // 唯一标识
	Username string `json:"username"`                              // 用户名
	Email    string `json:"email"`                                 // 邮箱
	Status   int    `json:"status"  description:"用户状态(1:启用 2:停用)"` // 用户状态(1:启用 2:停用)
}

type UserInfo

type UserInfo struct {
	ID       string `json:"id" description:"用户 id"`
	Username string `json:"username" description:"用户名"`
	Email    string `json:"email" description:"邮箱"`
	Status   int    `json:"status" description:"状态"`
}

type Users

type Users []*User

Jump to

Keyboard shortcuts

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