model

package
v0.0.0-...-08eec21 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package model Date: 2024/06/10 18:44:53 Author: Amu Description:

Package model Date: 2024/06/10 18:44:35 Author: Amu Description:

Package model Date: 2024/06/10 18:44:12 Author: Amu Description:

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type CPU

type CPU struct {
	gorm.Model
	Timestamp  time.Time
	CPUPercent float64
}

func (*CPU) TableName

func (d *CPU) TableName() string

type Container

type Container struct {
	gorm.Model
	Timestamp   time.Time
	ContainerID string
	Name        string
	Image       string
	IP          string
	State       string
	Uptime      string
	CPUPercent  float64
	MemPercent  float64
	MemUsage    float64
	MemLimit    float64
}

func (*Container) TableName

func (d *Container) TableName() string

type Containers

type Containers []Container

type Disk

type Disk struct {
	gorm.Model
	Timestamp   time.Time
	Device      string
	DiskPercent float64
	DiskTotal   float64
	DiskUsed    float64
	DiskRead    float64
	DiskWrite   float64
}

func (*Disk) TableName

func (d *Disk) TableName() string

type Docker

type Docker struct {
	gorm.Model
	Timestamp     time.Time
	DockerVersion string
	APIVersion    string
	MinAPIVersion string
	GitCommit     string
	GoVersion     string
	Os            string
	Arch          string
}

func (*Docker) TableName

func (d *Docker) TableName() string

type Host

type Host struct {
	gorm.Model
	Timestamp       time.Time
	Uptime          string
	Hostname        string
	Os              string
	Platform        string
	PlatformVersion string
	KernelVersion   string
	KernelArch      string
}

func (*Host) TableName

func (d *Host) TableName() string

type Image

type Image struct {
	gorm.Model
	Timestamp time.Time
	ImageID   string
	Name      string
	Tag       string
	Created   string
	Size      string
	Number    int
}

func (*Image) TableName

func (i *Image) TableName() string

type Images

type Images []Image

type Memory

type Memory struct {
	gorm.Model
	Timestamp  time.Time
	MemPercent float64
	MemTotal   float64
	MemUsed    float64
}

func (*Memory) TableName

func (d *Memory) TableName() string

type Models

type Models struct{}

func NewModels

func NewModels() *Models

func (*Models) GetAllModels

func (a *Models) GetAllModels() []interface{}

type Net

type Net struct {
	gorm.Model
	Timestamp time.Time
	Ethernet  string
	NetRecv   float64
	NetSend   float64
}

func (*Net) TableName

func (d *Net) TableName() string

Jump to

Keyboard shortcuts

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