devices

package
v0.0.0-...-8fb3fdf Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDataSource

func NewDataSource() datasource.DataSource

The NewDataSource function is a constructor for the data source. This function needs

Types

type DataSource

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

DataSource struct defines the structure for this data source.

func (*DataSource) Configure

Configure is a method of the data source interface that Terraform calls to provide the configured provider instance to the data source. It passes the DataSourceData that's been stored by the provider's ConfigureFunc.

func (*DataSource) Metadata

Metadata provides a way to define information about the data source. This method is called by the framework to retrieve metadata about the data source.

func (*DataSource) Read

Read method is responsible for reading an existing data source's state.

func (*DataSource) Schema

Schema provides a way to define the structure of the data source data. It is called by the framework to get the schema of the data source.

type DataSourceModel

type DataSourceModel struct {
	Id             jsontypes.String                 `tfsdk:"id"`
	OrganizationID jsontypes.String                 `tfsdk:"organization_id"`
	List           []dataSourceModelInventoryDevice `tfsdk:"list"`
}

The DataSourceModel structure describes the data model.

Jump to

Keyboard shortcuts

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