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

baselines

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 NewBaselinesDataSource

func NewBaselinesDataSource() datasource.DataSource

NewBaselinesDataSource returns a new instance of BaselinesDataSource.

Types

type BaselineModel

type BaselineModel struct {
	ID          types.String `tfsdk:"id"`
	BaselineID  types.String `tfsdk:"baseline_id"`
	Title       types.String `tfsdk:"title"`
	Description types.String `tfsdk:"description"`
	RuleCount   types.Int64  `tfsdk:"rule_count"`
}

BaselineModel represents a single mSCP baseline in the data source.

type BaselinesDataSource

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

BaselinesDataSource implements the Terraform data source for mSCP baselines.

func (*BaselinesDataSource) Configure

Configure sets up the API client for the data source from the provider configuration.

func (*BaselinesDataSource) Metadata

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

func (*BaselinesDataSource) Read

Read implements datasource.DataSource for BaselinesDataSource. It fetches the list of baselines from the API and sets the state.

func (*BaselinesDataSource) Schema

Schema sets the Terraform schema for the data source.

type BaselinesDataSourceModel

type BaselinesDataSourceModel struct {
	Baselines []BaselineModel `tfsdk:"baselines"`
	Timeouts  timeouts.Value  `tfsdk:"timeouts"`
}

BaselinesDataSourceModel represents the Terraform data source model for mSCP baselines.

Jump to

Keyboard shortcuts

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