platina_eeprom

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: GPL-2.0, GPL-2.0-or-later Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChassisTypeType      = Type(0x50)
	BoardTypeType        = Type(0x51)
	SubTypeType          = Type(0x52)
	PcbaNumberType       = Type(0x53)
	PcbaSerialNumberType = Type(0x54)

	Tor1CpuPcbaSerialNumberType  = Type(0x10)
	Tor1FanPcbaSerialNumberType  = Type(0x11)
	Tor1MainPcbaSerialNumberType = Type(0x12)

	VendorExtensionType = Type(0x00)
)

Variables

Functions

func Config

func Config(args ...interface{})

func ReadBytes

func ReadBytes() ([]byte, error)

func RedisdHook

func RedisdHook(pub *publisher.Publisher)

func Write

func Write([]byte) (int, error)

Types

type BusAddress

type BusAddress int

type BusDelay

type BusDelay time.Duration

type BusIndex

type BusIndex int

type MinMacs

type MinMacs int

type OUI

type OUI [3]byte

type Type

type Type uint8

func (Type) Byte

func (t Type) Byte() byte

func (Type) String

func (t Type) String() string

type XtlvMap

type XtlvMap map[Type]*bytes.Buffer

func (XtlvMap) Bytes

func (m XtlvMap) Bytes() []byte

func (XtlvMap) Del

func (m XtlvMap) Del(name string)

func (XtlvMap) Set

func (m XtlvMap) Set(name, s string) error

func (XtlvMap) String

func (m XtlvMap) String() string

func (XtlvMap) Write

func (m XtlvMap) Write(buf []byte) (n int, err error)

Jump to

Keyboard shortcuts

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