Documentation
¶
Index ¶
- func CreateTerraformProject(tmpDir string, tfProject TerraformProject) (string, error)
- func EnsurePluginsInstalled()
- func GoldenFileHCLResourceTestsWithOpts(t *testing.T, testName string, options *GoldenFileOptions, ...)
- func GoldenFileResourceTests(t *testing.T, testName string)
- func GoldenFileResourceTestsWithOpts(t *testing.T, testName string, options *GoldenFileOptions, ...)
- func GoldenFileUsageSyncTest(t *testing.T, testName string, ctxOptions ...func(ctx *settings.Session))
- func ResourceTests(t *testing.T, tf string, usage engine.ConsumptionMap, ...)
- func ResourceTestsForTerraformProject(t *testing.T, tfProject TerraformProject, usage engine.ConsumptionMap, ...)
- func RunCostCalculations(runCtx *settings.Session, projects []*engine.Workspace) ([]*engine.Workspace, error)
- func RunSyncUsage(t *testing.T, projectCtx *settings.ProjectSession, ...) []byte
- func WithProviders(tf string) string
- type File
- type GoldenFileOptions
- type TerraformProject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTerraformProject ¶
func CreateTerraformProject(tmpDir string, tfProject TerraformProject) (string, error)
func EnsurePluginsInstalled ¶
func EnsurePluginsInstalled()
func GoldenFileResourceTests ¶
func GoldenFileUsageSyncTest ¶
func ResourceTests ¶
func ResourceTests(t *testing.T, tf string, usage engine.ConsumptionMap, checks []testutil.ResourceCheck)
func ResourceTestsForTerraformProject ¶
func ResourceTestsForTerraformProject(t *testing.T, tfProject TerraformProject, usage engine.ConsumptionMap, checks []testutil.ResourceCheck, ctxOptions ...func(ctx *settings.Session))
func RunCostCalculations ¶
func RunSyncUsage ¶
func WithProviders ¶
Types ¶
type GoldenFileOptions ¶
type GoldenFileOptions = struct {
Currency string
CaptureLogs bool
IgnoreCLI bool
LogLevel *string
ProjectMetadata map[string]string
GoldenFileSuffix string
}
func DefaultGoldenFileOptions ¶
func DefaultGoldenFileOptions() *GoldenFileOptions
type TerraformProject ¶
type TerraformProject struct {
Files []File
}
Click to show internal directories.
Click to hide internal directories.