-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yogesh Deshpande <[email protected]>
- Loading branch information
1 parent
2e5ff74
commit e9a7bf5
Showing
5 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package tdx | ||
|
||
import "fmt" | ||
|
||
type TeeAttributes maskType | ||
|
||
func NewTeeAttributes(val []byte) *TeeAttributes { | ||
var teeAttributes TeeAttributes | ||
if val == nil { | ||
return nil | ||
} | ||
teeAttributes = TeeAttributes(val) | ||
return &teeAttributes | ||
} | ||
|
||
func (o TeeAttributes) Valid() error { | ||
if o == nil { | ||
return fmt.Errorf("nil TeeAttributes") | ||
} | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
package tdx | ||
|
||
import "fmt" | ||
|
||
type TeeMiscSelect maskType | ||
|
||
func NewTeeMiscSelect(val []byte) *TeeMiscSelect { | ||
var miscSelect TeeMiscSelect | ||
if val == nil { | ||
return nil | ||
} | ||
miscSelect = TeeMiscSelect(val) | ||
return &miscSelect | ||
} | ||
|
||
func (o TeeMiscSelect) Valid() error { | ||
if o == nil { | ||
return fmt.Errorf("nil TeeMiscSelect") | ||
} | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters