Documentation
¶
Overview ¶
A simple SDK client for Huawei iBMC Redfish.
Index ¶
- type Client
- func (c *Client) CreateSession() (*CreateSessionResponse, error)
- func (c *Client) CreateSessionWithContext(ctx context.Context) (*CreateSessionResponse, error)
- func (c *Client) DeleteSession() (*DeleteSessionResponse, error)
- func (c *Client) DeleteSessionWithContext(ctx context.Context) (*DeleteSessionResponse, error)
- func (c *Client) ImportCustomCertificateToManager(req *ImportCustomCertificateToManagerRequest) (*ImportCustomCertificateToManagerResponse, error)
- func (c *Client) ImportCustomCertificateToManagerWithContext(ctx context.Context, req *ImportCustomCertificateToManagerRequest) (*ImportCustomCertificateToManagerResponse, error)
- func (c *Client) ListManagers() (*ListManagersResponse, error)
- func (c *Client) ListManagersWithContext(ctx context.Context) (*ListManagersResponse, error)
- func (c *Client) ResetManager(req *ResetManagerRequest) (*ResetManagerResponse, error)
- func (c *Client) ResetManagerWithContext(ctx context.Context, req *ResetManagerRequest) (*ResetManagerResponse, error)
- func (c *Client) SetTLSConfig(config *tls.Config) *Client
- func (c *Client) SetTimeout(timeout time.Duration) *Client
- type CreateSessionResponse
- type DeleteSessionResponse
- type Entity
- type GetManagersResponse
- type ImportCustomCertificateToManagerRequest
- type ImportCustomCertificateToManagerResponse
- type ListManagersResponse
- type Options
- type OptionsFunc
- type ResetManagerRequest
- type ResetManagerResponse
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 (*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) ImportCustomCertificateToManager ¶
func (c *Client) ImportCustomCertificateToManager(req *ImportCustomCertificateToManagerRequest) (*ImportCustomCertificateToManagerResponse, error)
func (*Client) ImportCustomCertificateToManagerWithContext ¶
func (c *Client) ImportCustomCertificateToManagerWithContext(ctx context.Context, req *ImportCustomCertificateToManagerRequest) (*ImportCustomCertificateToManagerResponse, 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)
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 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 ¶
func (r *ImportCustomCertificateToManagerResponse) GetAPIError() error
type ListManagersResponse ¶
type ListManagersResponse struct {
Members []*Entity `json:"Members"`
// contains filtered or unexported fields
}
func (*ListManagersResponse) GetAPIError ¶
func (r *ListManagersResponse) GetAPIError() error
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
Click to show internal directories.
Click to hide internal directories.