registry

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package registry implements the registry

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Registry)

Option function to configure the Terraform registry

func WithHTTPListen

func WithHTTPListen(listenAddr string) Option

WithHTTPListen configures the http listen address.

func WithModuleBackend

func WithModuleBackend(b module.Backend) Option

WithModuleBackend sets the provider backend to use.

func WithProviderBackend

func WithProviderBackend(b provider.Backend) Option

WithProviderBackend sets the provider backend to use.

type Registry

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

Registry represents the Terraform registry

func New

func New(l *zap.SugaredLogger, reg prometheus.Registerer, options ...Option) (*Registry, error)

New initializes the Registry.

func (*Registry) Run

func (reg *Registry) Run(ctx context.Context) error

Run the Terraform registry

Directories

Path Synopsis
Package module implements the module registry as in https://www.terraform.io/docs/internals/module-registry-protocol.html
Package module implements the module registry as in https://www.terraform.io/docs/internals/module-registry-protocol.html
Package provider implements the provider registry as in https://www.terraform.io/docs/internals/provider-registry-protocol.html
Package provider implements the provider registry as in https://www.terraform.io/docs/internals/provider-registry-protocol.html

Jump to

Keyboard shortcuts

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