RuntimeConfigExtismV1 defines the user-configurable options the plugin's Extism runtime The format loosely follows the Extism Manifest format: https://extism.org/docs/concepts/manifest/
| 58 | // RuntimeConfigExtismV1 defines the user-configurable options the plugin's Extism runtime |
| 59 | // The format loosely follows the Extism Manifest format: https://extism.org/docs/concepts/manifest/ |
| 60 | type RuntimeConfigExtismV1 struct { |
| 61 | // Describes the limits on the memory the plugin may be allocated. |
| 62 | Memory RuntimeConfigExtismV1Memory `yaml:"memory"` |
| 63 | |
| 64 | // The "config" key is a free-form map that can be passed to the plugin. |
| 65 | // The plugin must interpret arbitrary data this map may contain |
| 66 | Config map[string]string `yaml:"config,omitempty"` |
| 67 | |
| 68 | // An optional set of hosts this plugin can communicate with. |
| 69 | // This only has an effect if the plugin makes HTTP requests. |
| 70 | // If not specified, then no hosts are allowed. |
| 71 | AllowedHosts []string `yaml:"allowedHosts,omitempty"` |
| 72 | |
| 73 | FileSystem RuntimeConfigExtismV1FileSystem `yaml:"fileSystem,omitempty"` |
| 74 | |
| 75 | // The timeout in milliseconds for the plugin to execute |
| 76 | Timeout uint64 `yaml:"timeout,omitempty"` |
| 77 | |
| 78 | // HostFunction names exposed in Helm the plugin may access |
| 79 | // see: https://extism.org/docs/concepts/host-functions/ |
| 80 | HostFunctions []string `yaml:"hostFunctions,omitempty"` |
| 81 | |
| 82 | // The name of entry function name to call in the plugin |
| 83 | // Defaults to "helm_plugin_main". |
| 84 | EntryFuncName string `yaml:"entryFuncName,omitempty"` |
| 85 | } |
| 86 | |
| 87 | var _ RuntimeConfig = (*RuntimeConfigExtismV1)(nil) |
| 88 |
nothing calls this directly
no outgoing calls
no test coverage detected