tfc

package
v0.0.0-...-5c2f431 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientWithDefaultConfig

func ClientWithDefaultConfig(address string, token string, headers http.Header) (*tfe.Client, error)

func Error

func Error(err error) error

Error is used to wrap errors from TFC requests. This sets the type of the error so that users know where the error came from.

func GetTFEClient

func GetTFEClient(ctx context.Context, secretsManager secretsmanager.SecretsManager) (*tfe.Client, error)

func GetTFEClientWithCredentials

func GetTFEClientWithCredentials(tfeCredentialsSecret *secretsmanager.TFECredentialsSecret, headers http.Header) (*tfe.Client, error)

func GetTFEClientWithHeaders

func GetTFEClientWithHeaders(ctx context.Context, secretsManager secretsmanager.SecretsManager, headers http.Header) (*tfe.Client, error)

Types

type TFECredentialsSecret

type TFECredentialsSecret struct {
	Hostname string `json:"hostname"`
	Token    string `json:"token"`
}

Jump to

Keyboard shortcuts

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