Documentation ¶
Rendered for darwin/amd64
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUGenerator ¶
type CPUGenerator struct { }
CPUGenerator Collects CPU specs
func (*CPUGenerator) Generate ¶
func (g *CPUGenerator) Generate() (interface{}, error)
Generate collects CPU specs. Returns an array of cpuSpec. Each spec is expected to have keys below: - model_name (used in Web) - vendor_id - family - model - stepping - physical_id - core_id - cores - mhz - cache_size - flags
type InterfaceGenerator ¶
type InterfaceGenerator struct { }
InterfaceGenerator XXX
func (*InterfaceGenerator) Generate ¶
func (g *InterfaceGenerator) Generate() ([]spec.NetInterface, error)
Generate XXX
type KernelGenerator ¶
type KernelGenerator struct { }
KernelGenerator Generates specs about the kernel.
func (*KernelGenerator) Generate ¶
func (g *KernelGenerator) Generate() (interface{}, error)
Generate collects specs from `uname` command and `sw_vers` command
type MemoryGenerator ¶
type MemoryGenerator struct { }
MemoryGenerator collects the host's memory specs.
func (*MemoryGenerator) Generate ¶
func (g *MemoryGenerator) Generate() (interface{}, error)
Generate returns memory specs. The returned spec must have below: - total (in "###kB" format, Kibibytes)
Click to show internal directories.
Click to hide internal directories.