provider

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MPL-2.0 Imports: 21 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 NewCityDataSource

func NewCityDataSource() datasource.DataSource

func NewCityResource

func NewCityResource() resource.Resource

func NewHouseDataSource

func NewHouseDataSource() datasource.DataSource

func NewHouseResource

func NewHouseResource() resource.Resource

func NewStoreDataSource

func NewStoreDataSource() datasource.DataSource

func NewStoreResource

func NewStoreResource() resource.Resource

Types

type City

type City struct {
	Id        int    `json:"id,omitempty"`
	Name      string `json:"name,omitempty"`
	Touristic *bool  `json:"touristic,omitempty"`
}

type CityDataSource

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

func (*CityDataSource) Configure

func (*CityDataSource) Metadata

func (*CityDataSource) Read

func (*CityDataSource) Schema

type CityDataSourceModel

type CityDataSourceModel struct {
	Id        types.String `tfsdk:"id"`
	Name      types.String `tfsdk:"name"`
	Touristic types.Bool   `tfsdk:"touristic"`
}

type CityResource

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

func (*CityResource) Configure

func (*CityResource) Create

func (*CityResource) Delete

func (*CityResource) ImportState

func (*CityResource) Metadata

func (*CityResource) Read

func (*CityResource) Schema

func (*CityResource) Update

type CityResourceModel

type CityResourceModel struct {
	Id        types.String `tfsdk:"id"`
	Name      types.String `tfsdk:"name"`
	Touristic types.Bool   `tfsdk:"touristic"`
}

type House

type House struct {
	Id          int    `json:"id,omitempty"`
	CityId      int    `json:"cityid,omitempty"`
	Address     string `json:"address,omitempty"`
	Inhabitants int    `json:"inhabitants,omitempty"`
}

type HouseDataSource

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

func (*HouseDataSource) Configure

func (*HouseDataSource) Metadata

func (*HouseDataSource) Read

func (*HouseDataSource) Schema

type HouseDataSourceModel

type HouseDataSourceModel struct {
	Id          types.String `tfsdk:"id"`
	CityId      types.String `tfsdk:"city_id"`
	Address     types.String `tfsdk:"address"`
	Inhabitants types.Int64  `tfsdk:"inhabitants"`
}

type HouseResource

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

func (*HouseResource) Configure

func (*HouseResource) Create

func (*HouseResource) Delete

func (*HouseResource) ImportState

func (*HouseResource) Metadata

func (*HouseResource) Read

func (*HouseResource) Schema

func (*HouseResource) Update

type HouseResourceModel

type HouseResourceModel struct {
	Id          types.String `tfsdk:"id"`
	CityId      types.String `tfsdk:"city_id"`
	Address     types.String `tfsdk:"address"`
	Inhabitants types.Int64  `tfsdk:"inhabitants"`
}

type SendoraCityProvider

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

func (*SendoraCityProvider) Configure

func (*SendoraCityProvider) DataSources

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

func (*SendoraCityProvider) Metadata

func (*SendoraCityProvider) Resources

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

func (*SendoraCityProvider) Schema

type SendoraCityProviderModel

type SendoraCityProviderModel struct {
	BaseUri types.String `tfsdk:"base_uri"`
}

type Store

type Store struct {
	Id      int    `json:"id,omitempty"`
	CityId  int    `json:"cityid,omitempty"`
	Address string `json:"address,omitempty"`
	Name    string `json:"name,omitempty"`
	Type    string `json:"type,omitempty"`
}

type StoreDataSource

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

func (*StoreDataSource) Configure

func (*StoreDataSource) Metadata

func (*StoreDataSource) Read

func (*StoreDataSource) Schema

type StoreDataSourceModel

type StoreDataSourceModel struct {
	Id      types.String `tfsdk:"id"`
	CityId  types.String `tfsdk:"city_id"`
	Address types.String `tfsdk:"address"`
	Name    types.String `tfsdk:"name"`
	Type    types.String `tfsdk:"type"`
}

type StoreResource

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

func (*StoreResource) Configure

func (*StoreResource) Create

func (*StoreResource) Delete

func (*StoreResource) ImportState

func (*StoreResource) Metadata

func (*StoreResource) Read

func (*StoreResource) Schema

func (*StoreResource) Update

type StoreResourceModel

type StoreResourceModel struct {
	Id      types.String `tfsdk:"id"`
	CityId  types.String `tfsdk:"city_id"`
	Address types.String `tfsdk:"address"`
	Name    types.String `tfsdk:"name"`
	Type    types.String `tfsdk:"type"`
}

Jump to

Keyboard shortcuts

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