module

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTokenEnvVar

func BuildTokenEnvVar(host string) (string, error)

BuildTokenEnvVar builds the environment variable name to supply the authorization token for the specified host. For reasoning for implementatino - https://www.terraform.io/cli/config/config-file#environment-variable-credentials

func GetModuleRegistryEndpointForHost

func GetModuleRegistryEndpointForHost(httpClient *http.Client, host string) (*url.URL, error)

GetModuleRegistryEndpointForHost returns the API path on the server for example, https://somehost.somecompany.com/.well-known/terraform.json returns something like {"modules.v1":"/api/v4/packages/terraform/modules/v1/"}

Types

This section is empty.

Jump to

Keyboard shortcuts

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