component

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component byte

Component represents a component with a byte.

const (
	Interfaces Component = iota + 1
	UPS
	CPU
	Memory
	SBC
	Server
	Disk
	HardwareHealth
	HighAvailability
)

All component enums.

func CreateComponent

func CreateComponent(component string) (Component, error)

CreateComponent creates a component.

func (*Component) ToString

func (d *Component) ToString() (string, error)

ToString returns the component as a string.

Jump to

Keyboard shortcuts

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