reply

package
v0.0.0-...-a841890 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2015 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessChassisEnv

func ProcessChassisEnv(ncReplies <-chan *netconf.RPCReply, errChan <-chan error) (<-chan *ChassisEnvReply, <-chan error)

Types

type ChassisEnvReply

type ChassisEnvReply struct {
	XMLName xml.Name  `xml:"environment-information,omitempty" json:"-"`
	EnvItem []EnvItem `xml:"environment-item,omitempty"        json:"environment-item,omitempty"`
}

func NewChassisEnvReply

func NewChassisEnvReply(ncReply *netconf.RPCReply) (*ChassisEnvReply, error)

func (*ChassisEnvReply) WriteCSV

func (cer *ChassisEnvReply) WriteCSV(w io.Writer) error

type ChassisZonesReply

type ChassisZonesReply struct {
	XMLName xml.Name `xml:"chassis-zones-information,omitempty" json:"-"`
	Zones   []Zone
}

func NewZonesResponse

func NewZonesResponse(ncReply *string) (*ChassisZonesReply, error)

type EnvItem

type EnvItem struct {
	Name        string `xml:"name,omitempty"        json:"name,omitempty"`
	Class       string `xml:"class,omitempty"       json:"class,omitempty"`
	Status      string `xml:"status,omitempty"      json:"status,omitempty"`
	Temperature string `xml:"temperature,omitempty" json:"temperature,omitempty"`
}

type ReplyWriter

type ReplyWriter interface {
	WriteCSV(io.Writer) error
}

type Zone

type Zone struct {
	Name           string `xml:"name,omitempty"             json:"name,omitempty"`
	DrivingFRUName string `xml:"driving-fru-name,omitempty" json:"driving-fru-name,omitempty"`
	Temperature    string `xml:"temperature,omitempty"      json:"temperature,omitempty"`
	ZoneStatus     string `xml:"zone-status,omitempty"      json:"zone-status,omitempty"`
	FanMissingCnt  int    `xml:"fan-missing-cnt,omitempty"  json:"fan-missing-cnt,omitempty"`
	FanFailedCnt   int    `xml:"fan-failed-cnt,omitempty"   json:"fan-failed-cnt,omitempty"`
	FanDutyCycle   int    `xml:"fan-dutycycle,omitempty"    json:"fan-dutycycle,omitempty"`
}

Jump to

Keyboard shortcuts

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