github.com/hashicorp/vault/sdk@v0.11.0/helper/pluginruntimeutil/config.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: MPL-2.0
     3  
     4  package pluginruntimeutil
     5  
     6  import "github.com/hashicorp/vault/sdk/helper/consts"
     7  
     8  // PluginRuntimeConfig defines the metadata needed to run a plugin runtime
     9  type PluginRuntimeConfig struct {
    10  	Name         string                   `json:"name" structs:"name"`
    11  	Type         consts.PluginRuntimeType `json:"type" structs:"type"`
    12  	OCIRuntime   string                   `json:"oci_runtime" structs:"oci_runtime"`
    13  	CgroupParent string                   `json:"cgroup_parent" structs:"cgroup_parent"`
    14  	CPU          int64                    `json:"cpu" structs:"cpu"`
    15  	Memory       int64                    `json:"memory" structs:"memory"`
    16  	Rootless     bool                     `json:"rootless" structs:"rootlesss"`
    17  }