ipmi

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package ipmi implements various IPMI functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	IPMIClient *goipmi.Client
}

Client is a holder for the IPMIClient.

func NewLocalClient

func NewLocalClient() (*Client, error)

NewLocalClient creates a new local ipmi client to use.

func (*Client) AttemptUserSetup

func (c *Client) AttemptUserSetup(username, password string, logger *zap.Logger) error

AttemptUserSetup attempts to set up an IPMI user with the given username.

func (*Client) Close

func (c *Client) Close() error

Close the client.

func (*Client) GetIPPort

func (c *Client) GetIPPort() (ip string, port uint16, err error)

GetIPPort returns the IPMI IP and port.

func (*Client) UserExists

func (c *Client) UserExists(username string) (bool, error)

UserExists checks if a user exists on the BMC.

Jump to

Keyboard shortcuts

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