devicepath/end.go

27 lines
458 B
Go
Raw Normal View History

2023-08-27 13:09:30 +00:00
package devicepath
import "errors"
type FinalDevicePath struct {
}
func (fp *FinalDevicePath) Type() DeviceNodeType {
return EndOfHardwareDevicePath
}
func (fp *FinalDevicePath) SubType() DeviceNodeSubType {
return EndOfEntireDevicePath
}
func (fp *FinalDevicePath) Bytes() []byte {
return nil
}
func (fp *FinalDevicePath) String() string {
return ""
}
func (fp *FinalDevicePath) ParseString(raw string) error {
return errors.New("unparsable")
}