darwin

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2014 License: Apache-2.0 Imports: 5 Imported by: 0

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 {
}

Collects CPU specs for darwin.

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

func (*CPUGenerator) Key

func (g *CPUGenerator) Key() string

type InterfaceGenerator

type InterfaceGenerator struct {
}

func (*InterfaceGenerator) Generate

func (g *InterfaceGenerator) Generate() (interface{}, error)

func (*InterfaceGenerator) Key

func (g *InterfaceGenerator) Key() string

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)

func (*KernelGenerator) Key

func (g *KernelGenerator) Key() string

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)

func (*MemoryGenerator) Key

func (g *MemoryGenerator) Key() string

Jump to

Keyboard shortcuts

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