config

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2025 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultWorkers      = 10
	DefaultRPS          = 0
	DefaultDuration     = "10s"
	DefaultReportMode   = "terse"
	DefaultRandomMounts = true
	DefaultCleanup      = false
	DefaultLogLevel     = "INFO"
)

Variables

This section is empty.

Functions

func ParseConfig

func ParseConfig(hclBuf []byte, pathName string, configStruct *VaultBenchmarkCoreConfig) error

Types

type VaultBenchmarkCoreConfig

type VaultBenchmarkCoreConfig struct {
	Remain         hcl.Body                          `hcl:",remain"`
	VaultAddr      string                            `hcl:"vault_addr,optional"`
	VaultToken     string                            `hcl:"vault_token,optional"`
	VaultNamespace string                            `hcl:"vault_namespace,optional"`
	Duration       string                            `hcl:"duration,optional"`
	ReportMode     string                            `hcl:"report_mode,optional"`
	AuditPath      string                            `hcl:"audit_path,optional"`
	Annotate       string                            `hcl:"annotate,optional"`
	ClusterJSON    string                            `hcl:"cluster_json,optional"`
	CAPEMFile      string                            `hcl:"ca_pem_file,optional"`
	PPROFInterval  string                            `hcl:"pprof_interval,optional"`
	LogLevel       string                            `hcl:"log_level,optional"`
	Tests          []*benchmarktests.BenchmarkTarget `hcl:"test,block"`
	RPS            int                               `hcl:"rps,optional"`
	Workers        int                               `hcl:"workers,optional"`
	RandomMounts   bool                              `hcl:"random_mounts,optional"`
	InputResults   bool                              `hcl:"input_results,optional"`
	Cleanup        bool                              `hcl:"cleanup,optional"`
	Debug          bool                              `hcl:"debug,optional"`
	DisableHTTP2   bool                              `hcl:"disable_http2,optional"`
}

func NewVaultBenchmarkCoreConfig

func NewVaultBenchmarkCoreConfig() *VaultBenchmarkCoreConfig

func (*VaultBenchmarkCoreConfig) LoadConfig

func (c *VaultBenchmarkCoreConfig) LoadConfig(path string) error

LoadConfig populates a VaultBenchmarkCoreConfig struct from the passed in HCL config file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL