magellan

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IPMI_PORT  = 623
	SSH_PORT   = 22
	HTTPS_PORT = 443
)

Variables

This section is empty.

Functions

func CollectAll

func CollectAll(probeStates *[]ScannedResult, l *log.Logger, q *QueryParams) error

func CollectBios

func CollectBios(client *bmclib.Client, q *QueryParams) ([]byte, error)

func CollectChassis

func CollectChassis(c *gofish.APIClient, q *QueryParams) ([]byte, error)

func CollectEthernetInterfaces

func CollectEthernetInterfaces(c *gofish.APIClient, q *QueryParams, systemID string) ([]byte, error)

func CollectInventory

func CollectInventory(client *bmclib.Client, q *QueryParams) ([]byte, error)

func CollectMetadata

func CollectMetadata(client *bmclib.Client, q *QueryParams) ([]byte, error)

func CollectPowerState

func CollectPowerState(client *bmclib.Client, q *QueryParams) ([]byte, error)

func CollectProcessors

func CollectProcessors(q *QueryParams) ([]byte, error)

func CollectRegisteries

func CollectRegisteries(c *gofish.APIClient, q *QueryParams) ([]byte, error)

func CollectStorage

func CollectStorage(c *gofish.APIClient, q *QueryParams) ([]byte, error)

func CollectSystems

func CollectSystems(c *gofish.APIClient, q *QueryParams) ([]byte, error)

func CollectUsers

func CollectUsers(client *bmclib.Client, q *QueryParams) ([]byte, error)

func GenerateHosts

func GenerateHosts(subnet string, subnetMask *net.IP) []string

func GetDefaultPorts

func GetDefaultPorts() []int

func GetUpdateStatus

func GetUpdateStatus(q *UpdateParams) error

func NewClient

func NewClient(l *log.Logger, q *QueryParams) (*bmclib.Client, error)

func UpdateFirmware

func UpdateFirmware(client *bmclib.Client, l *log.Logger, q *UpdateParams) error

NOTE: Does not work since OpenBMC, whic bmclib uses underneath, does not support multipart updates. See issue: https://github.com/bmc-toolbox/bmclib/issues/341

func UpdateFirmwareRemote

func UpdateFirmwareRemote(q *UpdateParams) error

Types

type QueryParams

type QueryParams struct {
	Host          string
	Port          int
	Protocol      string
	User          string
	Pass          string
	Drivers       []string
	Threads       int
	Preferred     string
	Timeout       int
	WithSecureTLS bool
	CertPoolFile  string
	Verbose       bool
	IpmitoolPath  string
	OutputPath    string
	ForceUpdate   bool
}

NOTE: ...params were getting too long...

type ScannedResult

type ScannedResult struct {
	Host     string `json:"host"`
	Port     int    `json:"port"`
	Protocol string `json:"protocol"`
	State    bool   `json:"state"`
}

func ScanForAssets

func ScanForAssets(hosts []string, ports []int, threads int, timeout int, disableProbing bool) []ScannedResult

type UpdateParams

type UpdateParams struct {
	QueryParams
	FirmwarePath     string
	FirmwareVersion  string
	Component        string
	TransferProtocol string
}

Directories

Path Synopsis
api
smd
db

Jump to

Keyboard shortcuts

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