fallbackstrat

package
v3.103.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package fallbackstrat provides strategies for generating tokens. The strategies here fall back to using the tokens.InferredModules strategy if the primary strategy fails to find a module for a given token.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KnownModulesWithInferredFallback

func KnownModulesWithInferredFallback(
	p *info.Provider, tfPackagePrefix, defaultModule string, modules []string, finalize tokens.Make,
) (tokens.Strategy, error)

KnownModulesWithInferredFallback returns a strategy that uses the KnownModules strategy for the given modules, but falls back to the inferred strategy if the KnownModules strategy fails to find a module for a given token.

See tokens.KnownModules and tokens.InferredModules for more information.

func MappedModulesWithInferredFallback

func MappedModulesWithInferredFallback(
	p *info.Provider, tfPackagePrefix, defaultModule string, modules map[string]string, finalize tokens.Make,
) (tokens.Strategy, error)

MappedModulesWithInferredFallback returns a strategy that uses the MappedModules strategy for the given modules, but falls back to the inferred strategy if the MappedModules strategy fails to find a module for a given token.

See tokens.MappedModules and tokens.InferredModules for more information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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