provider

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MPL-2.0 Imports: 14 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 NewGeofencingResource

func NewGeofencingResource() resource.Resource

func NewHeatingScheduleResource

func NewHeatingScheduleResource() resource.Resource

func NewHomeDataSource

func NewHomeDataSource() datasource.DataSource

func NewZoneDataSource

func NewZoneDataSource() datasource.DataSource

Types

type GeofencingResource

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

func (*GeofencingResource) Configure

func (GeofencingResource) Create

func (GeofencingResource) Delete

func (GeofencingResource) ImportState

func (*GeofencingResource) Metadata

func (GeofencingResource) Read

func (GeofencingResource) Schema

func (GeofencingResource) Update

type GeofencingResourceModel

type GeofencingResourceModel struct {
	ID       types.String `tfsdk:"id"`
	HomeName types.String `tfsdk:"home_name"`
	Presence types.String `tfsdk:"presence"`
}

type HeatingScheduleResource

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

func (*HeatingScheduleResource) Configure

func (HeatingScheduleResource) Create

func (HeatingScheduleResource) Delete

func (HeatingScheduleResource) ImportState

func (*HeatingScheduleResource) Metadata

func (HeatingScheduleResource) Read

func (HeatingScheduleResource) Schema

func (HeatingScheduleResource) Update

type HeatingScheduleResourceModel

type HeatingScheduleResourceModel struct {
	ID       types.String     `tfsdk:"id"`
	HomeName types.String     `tfsdk:"home_name"`
	ZoneName types.String     `tfsdk:"zone_name"`
	MonSun   []TimeBlockModel `tfsdk:"mon_sun"`
	MonFri   []TimeBlockModel `tfsdk:"mon_fri"`
	Mon      []TimeBlockModel `tfsdk:"mon"`
	Tue      []TimeBlockModel `tfsdk:"tue"`
	Wed      []TimeBlockModel `tfsdk:"wed"`
	Thu      []TimeBlockModel `tfsdk:"thu"`
	Fri      []TimeBlockModel `tfsdk:"fri"`
	Sat      []TimeBlockModel `tfsdk:"sat"`
	Sun      []TimeBlockModel `tfsdk:"sun"`
}

type HomeDataSource

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

func (*HomeDataSource) Configure

func (*HomeDataSource) Metadata

func (HomeDataSource) Read

func (HomeDataSource) Schema

type HomeDataSourceModel

type HomeDataSourceModel struct {
	ID              types.Int64   `tfsdk:"id"`
	Name            types.String  `tfsdk:"name"`
	TemperatureUnit types.String  `tfsdk:"temperature_unit"`
	ContactName     types.String  `tfsdk:"contact_name"`
	ContactEmail    types.String  `tfsdk:"contact_email"`
	ContactPhone    types.String  `tfsdk:"contact_phone"`
	AddressLine1    types.String  `tfsdk:"address_line1"`
	AddressLine2    types.String  `tfsdk:"address_line2"`
	AddressZipcode  types.String  `tfsdk:"address_zipcode"`
	AddressCity     types.String  `tfsdk:"address_city"`
	AddressState    types.String  `tfsdk:"address_state"`
	AddressCountry  types.String  `tfsdk:"address_country"`
	GeolocationLat  types.Float64 `tfsdk:"geolocation_lat"`
	GeolocationLong types.Float64 `tfsdk:"geolocation_long"`
}

type TadoProvider

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

TadoProvider defines the provider implementation.

func (*TadoProvider) Configure

func (*TadoProvider) DataSources

func (*TadoProvider) DataSources(_ context.Context) []func() datasource.DataSource

func (*TadoProvider) Metadata

func (*TadoProvider) Resources

func (*TadoProvider) Resources(_ context.Context) []func() resource.Resource

func (*TadoProvider) Schema

type TadoProviderModel

type TadoProviderModel struct {
	Username types.String `tfsdk:"username"`
	Password types.String `tfsdk:"password"`
}

TadoProviderModel describes the provider data model.

type TimeBlockModel

type TimeBlockModel struct {
	Heating           types.Bool    `tfsdk:"heating"`
	Temperature       types.Float64 `tfsdk:"temperature"`
	Start             types.String  `tfsdk:"start"`
	End               types.String  `tfsdk:"end"`
	GeofencingControl types.Bool    `tfsdk:"geofencing_control"`
}

type ZoneDataSource

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

func (*ZoneDataSource) Configure

func (*ZoneDataSource) Metadata

func (ZoneDataSource) Read

func (ZoneDataSource) Schema

type ZoneDataSourceModel

type ZoneDataSourceModel struct {
	ID                         types.Int64  `tfsdk:"id"`
	Name                       types.String `tfsdk:"name"`
	Home                       types.String `tfsdk:"home"`
	Type                       types.String `tfsdk:"type"`
	EarlyStart                 types.Bool   `tfsdk:"early_start"`
	DazzleModeEnabled          types.Bool   `tfsdk:"dazzle_mode_enabled"`
	OpenWindowDetectionEnabled types.Bool   `tfsdk:"open_window_detection_enabled"`
}

Jump to

Keyboard shortcuts

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