provider

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MPL-2.0 Imports: 17 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 NewPersonDataSource

func NewPersonDataSource() datasource.DataSource

func NewPersonResource

func NewPersonResource() resource.Resource

Types

type APIServerProvider

type APIServerProvider struct {
	APIClient *client.APIClient
	// contains filtered or unexported fields
}

APIServerProvider defines the provider implementation.

func (*APIServerProvider) Configure

func (*APIServerProvider) DataSources

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

func (*APIServerProvider) Metadata

func (*APIServerProvider) Resources

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

func (*APIServerProvider) Schema

type APIServerProviderModel

type APIServerProviderModel struct {
	Endpoint types.String `tfsdk:"endpoint"`
}

APIServerProviderModel describes the provider data model.

type PersonDataSource

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

PersonDataSource defines the data source implementation.

func (*PersonDataSource) Configure

func (*PersonDataSource) Metadata

func (*PersonDataSource) Read

func (*PersonDataSource) Schema

type PersonDataSourceModel

type PersonDataSourceModel struct {
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Age         types.Int64  `tfsdk:"age"`
	Description types.String `tfsdk:"description"`
}

PersonDataSourceModel describes the data source data model.

type PersonResource

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

PersonResource defines the resource implementation.

func (*PersonResource) Configure

func (*PersonResource) Create

func (*PersonResource) Delete

func (*PersonResource) ImportState

func (*PersonResource) Metadata

func (*PersonResource) Read

func (*PersonResource) Schema

func (*PersonResource) Update

type PersonResourceModel

type PersonResourceModel struct {
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Age         types.Int64  `tfsdk:"age"`
	Description types.String `tfsdk:"description"`
	LastUpdated types.String `tfsdk:"last_updated"`
}

PersonResourceModel describes the resource data model.

Jump to

Keyboard shortcuts

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