Documentation ¶
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 FilesystemGenerator ¶ added in v0.14.0
type FilesystemGenerator struct { }
FilesystemGenerator XXX
func (*FilesystemGenerator) Generate ¶ added in v0.14.0
func (g *FilesystemGenerator) Generate() (interface{}, error)
Generate XXX
func (*FilesystemGenerator) Key ¶ added in v0.14.0
func (g *FilesystemGenerator) Key() string
Key XXX
type InterfaceGenerator ¶
type InterfaceGenerator struct { }
InterfaceGenerator XXX
func (*InterfaceGenerator) Generate ¶
func (g *InterfaceGenerator) Generate() (interface{}, error)
Generate XXX
type KernelGenerator ¶
type KernelGenerator struct { }
KernelGenerator Generates specs about the kernel. Keys below are expected. - name: the operating system name ("Linux") - release: the operating system release ("2.6.32-5-686") - version: the operating system version ("#1 SMP Sun Sep 23 09:49:36 UTC 2012") - machine: the machine hardware name ("i686") - os: the operating system name ("GNU/Linux")
func (*KernelGenerator) Generate ¶
func (g *KernelGenerator) Generate() (interface{}, error)
Generate XXX
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)