Help us shape the future of Go! Take the 2026 Go Developer Survey

benchmarks

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBenchmarksDataSource

func NewBenchmarksDataSource() datasource.DataSource

NewBenchmarksDataSource instantiates the benchmarks listing data source.

Types

type BenchmarkListItem

type BenchmarkListItem struct {
	ID                 types.String `tfsdk:"id"`
	Title              types.String `tfsdk:"title"`
	Description        types.String `tfsdk:"description"`
	UpdateAvailable    types.Bool   `tfsdk:"update_available"`
	Modified           types.Bool   `tfsdk:"modified"`
	SyncState          types.String `tfsdk:"sync_state"`
	TargetDeviceGroups types.List   `tfsdk:"target_device_groups"`
}

BenchmarkListItem captures the summary fields returned by ListBenchmarks.

type BenchmarksDataSource

type BenchmarksDataSource struct {
	// contains filtered or unexported fields
}

BenchmarksDataSource implements the Terraform data source for listing CBEngine benchmarks.

func (*BenchmarksDataSource) Configure

Configure wires the provider client into the data source.

func (*BenchmarksDataSource) Metadata

Metadata sets the data source type name for the Terraform provider.

func (*BenchmarksDataSource) Read

Read invokes ListBenchmarks and maps the response into Terraform state.

func (*BenchmarksDataSource) Schema

Schema defines the Terraform schema for listing CBEngine benchmarks.

type BenchmarksDataSourceModel

type BenchmarksDataSourceModel struct {
	ID         types.String        `tfsdk:"id"`
	Benchmarks []BenchmarkListItem `tfsdk:"benchmarks"`
	Timeouts   timeouts.Value      `tfsdk:"timeouts"`
}

BenchmarksDataSourceModel represents the state for the benchmarks listing data source.

Jump to

Keyboard shortcuts

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