provider

package
v0.0.0-...-1f473bb Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MPL-2.0 Imports: 20 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 NewExampleResource

func NewExampleResource() resource.Resource

func NewSysInfoDataSource

func NewSysInfoDataSource() datasource.DataSource

Types

type ExampleResource

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

ExampleResource defines the resource implementation.

func (*ExampleResource) Configure

func (*ExampleResource) Create

func (*ExampleResource) Delete

func (*ExampleResource) ImportState

func (*ExampleResource) Metadata

func (*ExampleResource) Read

func (*ExampleResource) Schema

func (*ExampleResource) Update

type ExampleResourceModel

type ExampleResourceModel struct {
	ConfigurableAttribute types.String `tfsdk:"configurable_attribute"`
	Defaulted             types.String `tfsdk:"defaulted"`
	Id                    types.String `tfsdk:"id"`
}

ExampleResourceModel describes the resource data model.

type FireflyProvider

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

FireflyProvider defines the provider implementation.

func (*FireflyProvider) Configure

func (*FireflyProvider) DataSources

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

func (*FireflyProvider) Metadata

func (*FireflyProvider) Resources

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

func (*FireflyProvider) Schema

type FireflyProviderModel

type FireflyProviderModel struct {
	Endpoint    types.String `tfsdk:"endpoint"`
	AccessToken types.String `tfsdk:"access_token"`
}

FireflyProviderModel describes the provider data model.

type SysInfoDataSource

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

SysInfoDataSource defines the data source implementation.

func (*SysInfoDataSource) Configure

func (*SysInfoDataSource) Metadata

func (*SysInfoDataSource) Read

func (*SysInfoDataSource) Schema

type SysInfoDataSourceModel

type SysInfoDataSourceModel struct {
	Version    types.String `tfsdk:"version"`
	APIVersion types.String `tfsdk:"api_version"`
	PHPVersion types.String `tfsdk:"php_version"`
	OS         types.String `tfsdk:"os"`
	DBDriver   types.String `tfsdk:"driver"`
}

SysInfoDataSourceModel describes the data source data model. No parameters required, the system info is global to the provider instance

Jump to

Keyboard shortcuts

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