provider

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewBatteryDataSource

func NewBatteryDataSource() datasource.DataSource

func NewDeviceDataSource

func NewDeviceDataSource() datasource.DataSource

func NewHealthDataSource

func NewHealthDataSource() datasource.DataSource

func NewMovementLockDataSource

func NewMovementLockDataSource() datasource.DataSource

func NewMovementResource

func NewMovementResource() resource.Resource

func NewReadyDataSource

func NewReadyDataSource() datasource.DataSource

func NewWifiNetworksDataSource

func NewWifiNetworksDataSource() datasource.DataSource

Types

type BatteryDataSource

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

BatteryDataSource defines the data source implementation.

func (*BatteryDataSource) Configure

func (*BatteryDataSource) Metadata

func (*BatteryDataSource) Read

func (*BatteryDataSource) Schema

type BatteryDataSourceModel

type BatteryDataSourceModel struct {
	Value types.Int64  `tfsdk:"value"`
	Unit  types.String `tfsdk:"unit"`
}

BatteryDataSourceModel describes the data source data model.

type DeviceDataSource

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

DeviceDataSource defines the data source implementation.

func (*DeviceDataSource) Configure

func (*DeviceDataSource) Metadata

func (*DeviceDataSource) Read

func (*DeviceDataSource) Schema

type DeviceDataSourceModel

type DeviceDataSourceModel struct {
	Name        types.String                    `tfsdk:"name"`
	Uptime      types.Float64                   `tfsdk:"uptime"`
	Identifiers *DeviceResponseIdentifiersModel `tfsdk:"identifiers"`
	Versions    *DeviceResponseVersionsModel    `tfsdk:"versions"`
	Features    types.Map                       `tfsdk:"features"`
}

DeviceDataSourceModel describes the data source data model.

type DeviceResponseIdentifiersModel

type DeviceResponseIdentifiersModel struct {
	Long  types.String `tfsdk:"long"`
	Short types.String `tfsdk:"short"`
}

type DeviceResponseVersionsModel

type DeviceResponseVersionsModel struct {
	API types.String `tfsdk:"api"`
	APP types.String `tfsdk:"app"`
}

type HealthDataSource

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

HealthDataSource defines the data source implementation.

func (*HealthDataSource) Configure

func (*HealthDataSource) Metadata

func (*HealthDataSource) Read

func (*HealthDataSource) Schema

type HealthDataSourceModel

type HealthDataSourceModel struct {
	Healthy types.Bool `tfsdk:"healthy"`
}

HealthDataSourceModel describes the data source data model.

type MovementLockDataSource

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

MovementLockDataSource defines the data source implementation.

func (*MovementLockDataSource) Configure

func (*MovementLockDataSource) Metadata

func (*MovementLockDataSource) Read

func (*MovementLockDataSource) Schema

type MovementLockDataSourceModel

type MovementLockDataSourceModel struct {
	Locked types.Bool `tfsdk:"locked"`
}

MovementLockDataSourceModel describes the data source data model.

type MovementResource

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

MovementResource defines the resource implementation.

func (*MovementResource) Configure

func (*MovementResource) Create

func (*MovementResource) Delete

func (*MovementResource) Metadata

func (*MovementResource) Read

func (*MovementResource) Schema

func (*MovementResource) Update

type MovementResourceModel

type MovementResourceModel struct {
	Id      types.String         `tfsdk:"id"`
	Name    types.String         `tfsdk:"name"`
	Persist types.Bool           `tfsdk:"persist"`
	Steps   []MovementStepsModel `tfsdk:"steps"`
}

MoveForwardResourceModel describes the resource data model.

type MovementStepsModel

type MovementStepsModel struct {
	Angle     types.Int64   `tfsdk:"angle"`
	Direction types.String  `tfsdk:"direction"`
	Distance  types.Float64 `tfsdk:"distance"`
}

type PathfinderProvider

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

PathfinderProvider defines the provider implementation.

func (*PathfinderProvider) Configure

func (*PathfinderProvider) DataSources

func (p *PathfinderProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*PathfinderProvider) Functions

func (p *PathfinderProvider) Functions(ctx context.Context) []func() function.Function

func (*PathfinderProvider) Metadata

func (*PathfinderProvider) Resources

func (p *PathfinderProvider) Resources(ctx context.Context) []func() resource.Resource

func (*PathfinderProvider) Schema

type PathfinderProviderModel

type PathfinderProviderModel struct {
	Address types.String `tfsdk:"address"`
	ApiKey  types.String `tfsdk:"api_key"`
}

PathfinderProviderModel describes the provider data model.

type ProviderFrameworkConfiguration

type ProviderFrameworkConfiguration struct {
	Client *clients.Client
}

type ReadyDataSource

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

ReadyDataSource defines the data source implementation.

func (*ReadyDataSource) Configure

func (*ReadyDataSource) Metadata

func (*ReadyDataSource) Read

func (*ReadyDataSource) Schema

type ReadyDataSourceModel

type ReadyDataSourceModel struct {
	Ready types.Bool `tfsdk:"ready"`
}

ReadyDataSourceModel describes the data source data model.

type WifiNetworkModel

type WifiNetworkModel struct {
	Encrypted types.Bool    `tfsdk:"encrypted"`
	Rssi      types.Float64 `tfsdk:"rssi"`
	Ssid      types.String  `tfsdk:"ssid"`
}

type WifiNetworksDataSource

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

WifiNetworksDataSource defines the data source implementation.

func (*WifiNetworksDataSource) Configure

func (*WifiNetworksDataSource) Metadata

func (*WifiNetworksDataSource) Read

func (*WifiNetworksDataSource) Schema

type WifiNetworksDataSourceModel

type WifiNetworksDataSourceModel struct {
	Networks []WifiNetworkModel `tfsdk:"networks"`
}

WifiNetworksDataSourceModel describes the data source data model.

Jump to

Keyboard shortcuts

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