provider

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MPL-2.0 Imports: 15 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 NewPlanetDataSource

func NewPlanetDataSource() datasource.DataSource

func NewPlanetResource

func NewPlanetResource() resource.Resource

Types

type PlanetDataSource

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

PlanetDataSource defines the data source implementation.

func (*PlanetDataSource) Configure

func (*PlanetDataSource) Metadata

func (*PlanetDataSource) Read

func (*PlanetDataSource) Schema

type PlanetDataSourceModel

type PlanetDataSourceModel struct {
	Id         types.String `tfsdk:"id"`
	Name       types.String `tfsdk:"name"`
	Diameter   types.Int64  `tfsdk:"diameter"`
	Population types.Int64  `tfsdk:"population"`
}

PlanetDataSourceModel describes the data source data model.

type PlanetResource

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

PlanetResource defines the resource implementation.

func (*PlanetResource) Configure

func (*PlanetResource) Create

func (*PlanetResource) Delete

func (*PlanetResource) ImportState

func (*PlanetResource) Metadata

func (*PlanetResource) Read

func (*PlanetResource) Schema

func (*PlanetResource) Update

type PlanetResourceModel

type PlanetResourceModel struct {
	Id         types.String `tfsdk:"id"`
	Name       types.String `tfsdk:"name"`
	Diameter   types.Int64  `tfsdk:"diameter"`
	Population types.Int64  `tfsdk:"population"`
}

PlanetResourceModel describes the resource data model.

type SWAPIProvider

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

SWAPIProvider defines the provider implementation.

func (*SWAPIProvider) Configure

func (*SWAPIProvider) DataSources

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

func (*SWAPIProvider) Metadata

func (*SWAPIProvider) Resources

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

func (*SWAPIProvider) Schema

type SWAPIProviderModel

type SWAPIProviderModel struct {
	Endpoint types.String `tfsdk:"endpoint"`
	ApiKey   types.String `tfsdk:"api_key"`
}

SWAPIProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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