Documentation
¶
Overview ¶
Package terraform provides functions for loading and managing infrastructure data from Terraform state and configuration.
Index ¶
- Variables
- func GetLocalAttributes(ctx context.Context, dirPath string) (hclsyntax.Attributes, error)
- func LoadGpuPools(ctx context.Context, repoPath string, env models.Environment) ([]models.GpuPool, error)
- func LoadModelArtifacts(ctx context.Context, repoPath string, env models.Environment) (map[string][]models.ModelArtifact, error)
- func LoadServiceTenancies(ctx context.Context, repoPath string) ([]models.ServiceTenancy, error)
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 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 ¶
LoadServiceTenancies loads ServiceTenancy objects from the given repository path. Now accepts context.Context as the first parameter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.