server

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDataRouter

func RegisterDataRouter(router datarouter.Router) func(Server) Server

RegisterDataRouter is a functional option that registers the data source router.

func RegisterProvider

func RegisterProvider(provider Provider) func(Server) Server

RegisterProvider is a functional option that registers the Provider meta server.

func RegisterResourceRouter

func RegisterResourceRouter(router resourcerouter.Router) func(Server) Server

RegisterResourceRouter is a functional option that registers the resource router.

Types

type Opt

type Opt func(Server) Server

Opt is a functional option for the provider server.

type Server

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

Server is our gRPC ProviderServer.

func New

func New(opts ...Opt) Server

New takes zero or more functional options and return a new Server.

func (Server) CallFunction added in v0.6.4

CallFunction executes the logic of a function referenced in the configuration. This provider does not support functions.

func (Server) CloseEphemeralResource added in v0.6.4

CloseEphemeralResource closes an ephemeral resource. This provider does not support ephemeral resources.

func (Server) GenerateResourceConfig added in v0.6.4

GenerateResourceConfig is called when Terraform wants to generate a resource configuration for importing to a resource address that doesn't exist yet. This provider does not support generating resource configurations.

func (Server) GetFunctions added in v0.6.4

GetFunctions returns the functions supported by the provider. This provider does not support functions.

func (Server) GetMetadata

GetMetadata is an optional tfprotov6 API that we're shimming here to update the latest terraform-plugin-go.

func (Server) GetResourceIdentitySchemas added in v0.6.4

GetResourceIdentitySchemas returns the resource identity schemas for the provider. This provider does not use resource identity features, so we return an empty response.

func (Server) MoveResourceState added in v0.6.4

MoveResourceState is called when Terraform is asked to change a resource type for an existing resource. This provider does not support moving resource state between types.

func (Server) OpenEphemeralResource added in v0.6.4

OpenEphemeralResource opens an ephemeral resource. This provider does not support ephemeral resources.

func (Server) RenewEphemeralResource added in v0.6.4

RenewEphemeralResource renews an ephemeral resource. This provider does not support ephemeral resources.

func (Server) UpgradeResourceIdentity added in v0.6.4

UpgradeResourceIdentity is called when Terraform has encountered a resource with an identity state in a schema that doesn't match the schema's current version. This provider does not support resource identity upgrades.

func (Server) ValidateEphemeralResourceConfig added in v0.6.4

ValidateEphemeralResourceConfig validates an ephemeral resource configuration. This provider does not support ephemeral resources.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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