models

package
v0.0.0-...-aa75306 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Machine

type Machine struct {
	// MAC is Media Access Control address of this host
	MAC string `json:"mac"`
	// Name is a friendly name.
	Name string `json:"name"`
	// IPv4Addr is a IPv4 address of this host.
	IPv4Addr string `json:"ipv4_addr"`
	// DeployedDate is a UNIX time of the date when this host is deployed.
	DeployedDate int64 `json:"deployed_date"`
	// Spec indicates the machine spec of the host.
	Spec MachineSpec `json:"spec"`
}

Machine is a information of phisical host

type MachineSpec

type MachineSpec struct {
	// Core is a number of CPU core.
	Core int `json:"core"`
	// Memory is an amount of DRAM (MB).
	Memory int `json:"memory"`
	// Disk is an amount of local disk (GB).
	Disk int `json:"disk"`
}

MachineSpec is a spec of the host.

Jump to

Keyboard shortcuts

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