I am trying to do the following:
I have following structure and I want to encode some values into the toml.Primitive structure.
Runtime{
Type: "",
Engine: "",
PodAnnotations: []string{},
ContainerAnnotations: []string{},
Root: crioKeyRoot,
Options: &toml.Primitive{},
PrivilegedWithoutHostDevices: false,
}
Now I want the following structure
// runcoptions "github.com/containerd/containerd/runtime/v2/runc/options"
ropts := runcoptions.Options{}
ropts.BinaryName = "somePath"
Now I want to encode the ropts into the Runtime.Options
Please, let me know how can encode the value of ropts into the Options.
Owner Name | BurntSushi |
Repo Name | toml |
Full Name | BurntSushi/toml |
Language | Go |
Created Date | 2013-02-26 |
Updated Date | 2023-03-20 |
Star Count | 4154 |
Watcher Count | 84 |
Fork Count | 518 |
Issue Count | 15 |