vault/sdk/helper/pluginruntimeutil/config.go
Thy Ton 08574508c8
add plugin runtime API (#22469)
---------

Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
2023-08-31 13:37:04 -07:00

17 lines
705 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package pluginruntimeutil
import "github.com/hashicorp/vault/sdk/helper/consts"
// PluginRuntimeConfig defines the metadata needed to run a plugin runtime
type PluginRuntimeConfig struct {
Name string `json:"name" structs:"name"`
Type consts.PluginRuntimeType `json:"type" structs:"type"`
OCIRuntime string `json:"oci_runtime" structs:"oci_runtime"`
CgroupParent string `json:"cgroup_parent" structs:"cgroup_parent"`
CPU int64 `json:"cpu" structs:"cpu"`
Memory int64 `json:"memory" structs:"memory"`
}