redfish

package
v0.0.0-...-db9a40e Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedfishClient

type RedfishClient struct {
	Hostname    string
	Username    string
	Password    string
	BearerToken string
	HttpClient  *http.Client
	IsIPv6      int
}

func Init

func Init(hostname string, username string, password string) (*RedfishClient, error)

func InitBearer

func InitBearer(hostname string, token string) (*RedfishClient, error)

func (*RedfishClient) GetEventsSSE

func (r *RedfishClient) GetEventsSSE(event chan<- *RedfishEvent, sseURI string) error

func (*RedfishClient) GetHostName

func (r *RedfishClient) GetHostName() (string, error)

func (*RedfishClient) GetInventoryByUri

func (r *RedfishClient) GetInventoryByUri(sseURI string) (*RedfishPayload, error)

func (*RedfishClient) GetLceSSE

func (r *RedfishClient) GetLceSSE(Ctx context.Context, event chan<- *RedfishEvent, sseURI string) error

func (*RedfishClient) GetMetricReportsSSE

func (r *RedfishClient) GetMetricReportsSSE(Ctx context.Context, event chan<- *RedfishEvent, sseURI string) error

func (*RedfishClient) GetSSE

func (r *RedfishClient) GetSSE(Ctx context.Context, event chan<- *RedfishEvent, eventService *RedfishPayload) error

func (*RedfishClient) GetSSEByUri

func (r *RedfishClient) GetSSEByUri(event chan<- *RedfishEvent, sseURI string)

func (*RedfishClient) GetSystemId

func (r *RedfishClient) GetSystemId() (string, error)

func (*RedfishClient) GetUri

func (r *RedfishClient) GetUri(uri string) (*RedfishPayload, error)

func (*RedfishClient) ListenForEvents

func (r *RedfishClient) ListenForEvents(Ctx context.Context, event chan<- *RedfishEvent)

func (*RedfishClient) ListenForLceEvents

func (r *RedfishClient) ListenForLceEvents(Ctx context.Context, event chan<- *RedfishEvent)

func (*RedfishClient) Walk

func (r *RedfishClient) Walk() map[string]*RedfishPayload

type RedfishEvent

type RedfishEvent struct {
	Err     error
	ID      string
	Payload *RedfishPayload
}

type RedfishPayload

type RedfishPayload struct {
	Object map[string]interface{}
	Array  []interface{}
	Float  float64
	Client *RedfishClient
}

func (*RedfishPayload) GetArraySize

func (r *RedfishPayload) GetArraySize() int

func (*RedfishPayload) GetCollectionSize

func (r *RedfishPayload) GetCollectionSize() int

func (*RedfishPayload) GetEventByIndex

func (r *RedfishPayload) GetEventByIndex(index int) (*RedfishPayload, error)

func (*RedfishPayload) GetEventSize

func (r *RedfishPayload) GetEventSize() int

func (*RedfishPayload) GetPropertyByIndex

func (r *RedfishPayload) GetPropertyByIndex(index int) (*RedfishPayload, error)

func (*RedfishPayload) GetPropertyByName

func (r *RedfishPayload) GetPropertyByName(name string) (*RedfishPayload, error)

func (*RedfishPayload) IsArray

func (r *RedfishPayload) IsArray() bool

func (*RedfishPayload) IsCollection

func (r *RedfishPayload) IsCollection() bool

func (*RedfishPayload) IsEventCollection

func (r *RedfishPayload) IsEventCollection() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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