init

package
v1.2.0-alpha20220413 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MPL-2.0 Imports: 23 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

This section is empty.

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