huaweiibmc

package
v0.4.31 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

A simple SDK client for Huawei iBMC Redfish.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(serverUrl string, optFns ...OptionsFunc) (*Client, error)

func (*Client) CreateSession

func (c *Client) CreateSession() (*CreateSessionResponse, error)

func (*Client) CreateSessionWithContext

func (c *Client) CreateSessionWithContext(ctx context.Context) (*CreateSessionResponse, error)

func (*Client) DeleteSession

func (c *Client) DeleteSession() (*DeleteSessionResponse, error)

func (*Client) DeleteSessionWithContext

func (c *Client) DeleteSessionWithContext(ctx context.Context) (*DeleteSessionResponse, error)

func (*Client) ListManagers

func (c *Client) ListManagers() (*ListManagersResponse, error)

func (*Client) ListManagersWithContext

func (c *Client) ListManagersWithContext(ctx context.Context) (*ListManagersResponse, error)

func (*Client) ResetManager

func (c *Client) ResetManager(req *ResetManagerRequest) (*ResetManagerResponse, error)

func (*Client) ResetManagerWithContext

func (c *Client) ResetManagerWithContext(ctx context.Context, req *ResetManagerRequest) (*ResetManagerResponse, error)

func (*Client) SetTLSConfig

func (c *Client) SetTLSConfig(config *tls.Config) *Client

func (*Client) SetTimeout

func (c *Client) SetTimeout(timeout time.Duration) *Client

type CreateSessionResponse

type CreateSessionResponse struct {
	XToken    string `json:"-"`
	XLocation string `json:"-"`
	// contains filtered or unexported fields
}

func (*CreateSessionResponse) GetAPIError

func (r *CreateSessionResponse) GetAPIError() error

type DeleteSessionResponse

type DeleteSessionResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteSessionResponse) GetAPIError

func (r *DeleteSessionResponse) GetAPIError() error

type Entity

type Entity struct {
	ID          string `json:"Id,omitempty"`
	ODataID     string `json:"@odata.id,omitempty"`
	ODataType   string `json:"@odata.type,omitempty"`
	Name        string `json:"Name,omitempty"`
	Description string `json:"Description"`
}

type GetManagersResponse

type GetManagersResponse struct {
	Members []*Entity `json:"Members"`
	// contains filtered or unexported fields
}

func (*GetManagersResponse) GetAPIError

func (r *GetManagersResponse) GetAPIError() error

type ImportCustomCertificateToManagerRequest

type ImportCustomCertificateToManagerRequest struct {
	ManagerID       string `json:"-"`
	ManagerLocation string `json:"-"`
	Certificate     string `json:"Certificate,omitempty"`
	Password        string `json:"Password,omitempty"`
	// contains filtered or unexported fields
}

func (*ImportCustomCertificateToManagerRequest) GetAPIError

func (r *ImportCustomCertificateToManagerRequest) GetAPIError() error

type ImportCustomCertificateToManagerResponse

type ImportCustomCertificateToManagerResponse struct {
	// contains filtered or unexported fields
}

func (*ImportCustomCertificateToManagerResponse) GetAPIError

type ListManagersResponse

type ListManagersResponse struct {
	Members []*Entity `json:"Members"`
	// contains filtered or unexported fields
}

func (*ListManagersResponse) GetAPIError

func (r *ListManagersResponse) GetAPIError() error

type Options

type Options struct {
	Username string
	Password string
}

type OptionsFunc

type OptionsFunc func(*Options)

func WithLogins

func WithLogins(username, password string) OptionsFunc

type ResetManagerRequest

type ResetManagerRequest struct {
	ManagerID       string `json:"-"`
	ManagerLocation string `json:"-"`
	ResetType       string `json:"ResetType,omitempty"`
	// contains filtered or unexported fields
}

func (*ResetManagerRequest) GetAPIError

func (r *ResetManagerRequest) GetAPIError() error

type ResetManagerResponse

type ResetManagerResponse struct {
	// contains filtered or unexported fields
}

func (*ResetManagerResponse) GetAPIError

func (r *ResetManagerResponse) GetAPIError() error

Jump to

Keyboard shortcuts

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