| 1 | package ipmiscip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ |
| 2 | |
| 3 | import "contextscip-go gomod github.com/golang/go/src go1.23 context/" |
| 4 | |
| 5 | // 35.4 Reserve Device SDR Repository Command |
| 6 | type ReserveDeviceSDRRepoRequestscip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ReserveDeviceSDRRepoRequest# struct { |
| 7 | // empty |
| 8 | } |
| 9 | |
| 10 | type ReserveDeviceSDRRepoResponsescip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ReserveDeviceSDRRepoResponse# struct { |
| 11 | ReservationIDscip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ReserveDeviceSDRRepoResponse#ReservationID. uint16 |
| 12 | } |
| 13 | |
| 14 | func (req *ReserveDeviceSDRRepoRequestscip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ReserveDeviceSDRRepoRequest#) Commandscip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ReserveDeviceSDRRepoRequest#Command().() Commandscip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/Command# { |
| 15 | return CommandReserveDeviceSDRReposcip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/CommandReserveDeviceSDRRepo. |
| 16 | } |
| 17 | |
| 18 | func (req *ReserveDeviceSDRRepoRequestscip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ReserveDeviceSDRRepoRequest#) Packscip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ReserveDeviceSDRRepoRequest#Pack().() []byte { |
| 19 | return []byte{} |
| 20 | } |
| 21 | |
| 22 | func (res *ReserveDeviceSDRRepoResponsescip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ReserveDeviceSDRRepoResponse#) Unpackscip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ReserveDeviceSDRRepoResponse#Unpack().(msg []byte) error { |
| 23 | if len(msg) < 2 { |
| 24 | return ErrUnpackedDataTooShortWithscip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ErrUnpackedDataTooShortWith().(len(msg), 2) |
| 25 | } |
| 26 | |
| 27 | res.ReservationIDscip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ReserveDeviceSDRRepoResponse#ReservationID., _, _ = unpackUint16Lscip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/unpackUint16L().(msg, 0) |
| 28 | return nil |
| 29 | } |
| 30 | |
| 31 | func (r *ReserveDeviceSDRRepoResponsescip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ReserveDeviceSDRRepoResponse#) CompletionCodesscip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ReserveDeviceSDRRepoResponse#CompletionCodes().() map[uint8]string { |
| 32 | return map[uint8]string{} |
| 33 | } |
| 34 | |
| 35 | func (res *ReserveDeviceSDRRepoResponsescip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ReserveDeviceSDRRepoResponse#) Formatscip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ReserveDeviceSDRRepoResponse#Format().() string { |
| 36 | return "" |
| 37 | } |
| 38 | |
| 39 | // This command is used to obtain a Reservation ID. |
| 40 | func (c *Clientscip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/Client#) ReserveDeviceSDRReposcip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/Client#ReserveDeviceSDRRepo().(ctx contextscip-go gomod github.com/golang/go/src go1.23 context/.Contextscip-go gomod github.com/golang/go/src go1.23 context/Context#) (response *ReserveDeviceSDRRepoResponsescip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ReserveDeviceSDRRepoResponse#, err error) { |
| 41 | request := &ReserveDeviceSDRRepoRequestscip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ReserveDeviceSDRRepoRequest#{} |
| 42 | response = &ReserveDeviceSDRRepoResponsescip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/ReserveDeviceSDRRepoResponse#{} |
| 43 | err = c.Exchangescip-go gomod github.com/bougou/go-ipmi . `github.com/bougou/go-ipmi`/Client#Exchange().(ctx, request, response) |
| 44 | return |
| 45 | } |