init

package
v1.6.0-alpha20230719 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package init contains the list of backends that can be initialized and basic helper functions for initializing those backends.

Index

Constants

This section is empty.

Variables

View Source
var RemovedBackends map[string]string

RemovedBackends is a record of previously supported backends which have since been deprecated and removed.

Functions

func Backend

func Backend(name string) backend.InitFn

Backend returns the initialization factory for the given backend, or nil if none exists.

func Init

func Init(services *disco.Disco)

Init initializes the backends map with all our hardcoded backends.

func Set

func Set(name string, f backend.InitFn)

Set sets a new backend in the list of backends. If f is nil then the backend will be removed from the map. If this backend already exists then it will be overwritten.

This method sets this backend globally and care should be taken to do this only before Terraform is executing to prevent odd behavior of backends changing mid-execution.

Types

This section is empty.

Jump to

Keyboard shortcuts

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