Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type Conn
- func (c *Conn) Close(ctx context.Context) error
- func (c *Conn) Compatible(ctx context.Context) bool
- func (c *Conn) Name() string
- func (c *Conn) Open(ctx context.Context) (err error)
- func (c *Conn) PowerStateGet(ctx context.Context) (state string, err error)
- func (c *Conn) Screenshot(ctx context.Context) (image []byte, fileType string, err error)
- type Option
Constants ¶
View Source
const ( // ProviderName for the provider Dell implementation ProviderName = "dell" // ProviderProtocol for the provider Dell implementation ProviderProtocol = "redfish" )
Variables ¶
View Source
var ( // Features implemented by dell redfish Features = registrar.Features{ providers.FeatureScreenshot, } )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { HttpClient *http.Client Port string // VersionsNotCompatible is the list of incompatible redfish versions. // // With this option set, The bmclib.Registry.FilterForCompatible(ctx) method will not proceed on // devices with the given redfish version(s). VersionsNotCompatible []string RootCAs *x509.CertPool UseBasicAuth bool }
type Conn ¶
Conn details for redfish client
func (*Conn) Compatible ¶
Compatible tests whether a BMC is compatible with the gofish provider
func (*Conn) PowerStateGet ¶
PowerStateGet gets the power state of a BMC machine
type Option ¶
type Option func(*Config)
Option for setting optional Client values
func WithHttpClient ¶
func WithRootCAs ¶
func WithUseBasicAuth ¶
Click to show internal directories.
Click to hide internal directories.