1 Star 0 Fork 0

叶海丰/ipmi-go

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cmd_sol_activating.go 1005 Bytes
一键复制 编辑 原始数据 按行查看 历史
叶海丰 提交于 2024-08-02 08:43 +08:00 . init
package ipmi
// 26.1 SOL Activating Command
type SOLActivatingRequest struct {
SessionState uint8
PayloadInstance uint8
FormatVersionMajor uint8
FormatVersionMinor uint8
}
type SOLActivatingResponse struct {
}
func (req *SOLActivatingRequest) Command() Command {
return CommandSOLActivating
}
func (req *SOLActivatingRequest) Pack() []byte {
out := make([]byte, 4)
packUint8(req.SessionState, out, 0)
packUint8(req.PayloadInstance, out, 1)
packUint8(req.FormatVersionMajor, out, 2)
packUint8(req.FormatVersionMinor, out, 3)
return out
}
func (res *SOLActivatingResponse) CompletionCodes() map[uint8]string {
return map[uint8]string{}
}
func (res *SOLActivatingResponse) Unpack(msg []byte) error {
return nil
}
func (res *SOLActivatingResponse) Format() string {
return ""
}
func (c *Client) SOLActivating() (response *SOLActivatingResponse, err error) {
request := &SOLActivatingRequest{}
response = &SOLActivatingResponse{}
err = c.Exchange(request, response)
return
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rogax/ipmi-go.git
git@gitee.com:rogax/ipmi-go.git
rogax
ipmi-go
ipmi-go
86ae46cfb58e

搜索帮助