Created
June 3, 2024 20:32
-
-
Save thockin/f6d9e1e491fbd63d596da1f9d8f8daa5 to your computer and use it in GitHub Desktop.
Options for CEL in DRA
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
We have an API type which roughly looks like: | |
``` | |
type ResourcePool struct { | |
// standard stuff | |
Devices []Device | |
} | |
type Device struct { | |
Name string | |
Attributes []Atribute | |
} | |
type Attribute struct { | |
Name string | |
// one of the following must be set | |
StringVal *string | |
BoolVal *bool | |
QuantityVal *Quantity | |
VersionVal *string | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment