Skip to content

Instantly share code, notes, and snippets.

@thockin
Created June 3, 2024 20:32
Show Gist options
  • Save thockin/f6d9e1e491fbd63d596da1f9d8f8daa5 to your computer and use it in GitHub Desktop.
Save thockin/f6d9e1e491fbd63d596da1f9d8f8daa5 to your computer and use it in GitHub Desktop.
Options for CEL in DRA
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