provider

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MPL-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Before  when = 1 << iota // Interceptor is invoked before call to method in schema
	After                    // Interceptor is invoked after successful call to method in schema
	OnError                  // Interceptor is invoked after unsuccessful call to method in schema
	Finally                  // Interceptor is invoked after After or OnError
)
View Source
const (
	Create why = 1 << iota // Interceptor is invoked for a Create call
	Read                   // Interceptor is invoked for a Read call
	Update                 // Interceptor is invoked for an Update call
	Delete                 // Interceptor is invoked for a Delete call

	AllOps = Create | Read | Update | Delete // Interceptor is invoked for all calls
)

Variables

This section is empty.

Functions

func New

func New(ctx context.Context) (*schema.Provider, error)

New returns a new, initialized Terraform Plugin SDK v2-style provider instance. The provider instance is fully configured once the `ConfigureContextFunc` has been called.

func ProtoV5ProviderServerFactory

func ProtoV5ProviderServerFactory(ctx context.Context) (func() tfprotov5.ProviderServer, *schema.Provider, error)

ProtoV5ProviderServerFactory returns a muxed terraform-plugin-go protocol v5 provider factory function. This factory function is suitable for use with the terraform-plugin-go Serve function. The primary (Plugin SDK) provider server is also returned (useful for testing).

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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