Help us shape the future of Go! Take the 2026 Go Developer Survey

provider

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package provider exposes the fully registered Zerops Terraform Plugin Framework provider.

It is the supported entry point for programs that embed the provider, such as the Pulumi bridge (github.com/zeropsio/pulumi-zerops). Resource and data source implementations stay internal; this package only composes them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string, opts ...Option) framework.Provider

New returns the Zerops provider with every resource and data source registered. version is the Terraform provider version reported to Terraform and in the User-Agent.

Types

type Option

type Option func(*internal.Options)

Option customizes the provider returned by New.

func WithUserAgent

func WithUserAgent(product string) Option

WithUserAgent identifies an embedding product in the User-Agent header of every Zerops API request, for example "pulumi-zerops/0.1.0". The header then reads "<product> terraform-provider-zerops/<version>". Without this option the provider identifies itself with the Terraform CLI version, as when Terraform runs it.

WithUserAgent panics if product is empty or contains whitespace or control characters, because a malformed product token is a programming error in the embedding binary.

Jump to

Keyboard shortcuts

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