terraform

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package terraform provides functions for loading and managing infrastructure data from Terraform state and configuration.

Index

Constants

This section is empty.

Variables

View Source
var ErrModelArtifactMapNotResolved = errors.New("model artifact map not resolved")

ErrModelArtifactMapNotResolved is returned when the model artifact map cannot be resolved.

Functions

func GetLocalAttributes added in v0.1.4

func GetLocalAttributes(ctx context.Context, dirPath string) (hclsyntax.Attributes, error)

func LoadGpuPools

func LoadGpuPools(ctx context.Context, repoPath string, env models.Environment) ([]models.GpuPool, error)

LoadGpuPools loads GpuPool objects from the given repository path and environment. Now accepts context.Context as the first parameter.

func LoadModelArtifacts

func LoadModelArtifacts(ctx context.Context, repoPath string, env models.Environment) (map[string][]models.ModelArtifact, error)

LoadModelArtifacts loads ModelArtifact objects from the given repository path and environment. Now accepts context.Context as the first parameter.

func LoadServiceTenancies

func LoadServiceTenancies(ctx context.Context, repoPath string) ([]models.ServiceTenancy, error)

LoadServiceTenancies loads ServiceTenancy objects from the given repository path. Now accepts context.Context as the first parameter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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