Versions in this module Expand all Collapse all v1 v1.0.1 Apr 27, 2026 Changes in this version + const C3XDir + var ErrorInvalidConfigFile = errors.New("parsing config file failed, check file syntax") + func ApplyRegexMapping(sourceMap TerraformSourceMapRegex, source string) (string, error) + func CleanProjectName(name string) string + func ConfigurationFilePath() string + func CredentialsFilePath() string + func FileExists(path string) bool + func IsDev() bool + func IsEnvPresent(s string) bool + func IsTest() bool + func RootDir() string + type AutodetectConfig struct + EnvNames []string + ExcludeDirs []string + ForceProjectType string + IncludeDirs []string + MaxSearchDepth int + PathOverrides []PathOverride + PreferFolderNameForEnv bool + TerraformVarFileExtensions []string + type Configuration struct + Currency string + DisableHCLParsing *bool + EnableCloud *bool + EnableCloudUpload *bool + EnableDashboard *bool + ProductionFilters []ProductionFilter + TLSCACertFile string + TLSInsecureSkipVerify *bool + Version string + func (c Configuration) Save() error + type ContextValues struct + func NewContextValues(values map[string]interface{}) *ContextValues + func (cv *ContextValues) GetValue(key string) (interface{}, bool) + func (cv *ContextValues) SetValue(key string, value interface{}) + func (cv *ContextValues) Values() map[string]interface{} + type Credentials struct + APIKey string + PricingAPIEndpoint string + Version string + func (c Credentials) Save() error + type PathOverride struct + Exclude []string + Only []string + Path string + type ProductionFilter struct + ID string + Include bool + Type string + Value string + type Project struct + ConfigSha string + DependencyPaths []string + Env map[string]string + ExcludePaths []string + IncludeAllPaths bool + Metadata map[string]string + Name string + Path string + SkipAutodetect bool + SpaceliftAPIKeyEndpoint string + SpaceliftAPIKeyID string + SpaceliftAPIKeySecret string + TerraformBinary string + TerraformCloudHost string + TerraformCloudOrg string + TerraformCloudToken string + TerraformCloudWorkspace string + TerraformForceCLI bool + TerraformInitFlags string + TerraformPlanFlags string + TerraformUseState bool + TerraformVarFiles []string + TerraformVars map[string]interface{} + TerraformWorkspace string + TerragruntFlags string + UsageFile string + YorConfigPath string + type ProjectSession struct + CacheErr string + ContextValues *ContextValues + ProjectConfig *Project + RunContext *Session + UsingCache bool + func NewProjectContext(runCtx *Session, projectCfg *Project, logFields interface{}) *ProjectSession + func (c *ProjectSession) Logger() zerolog.Logger + func (c *ProjectSession) SetFrom(d ProjectSessioner) + func (c *ProjectSession) SetProjectType(projectType string) + type ProjectSessioner interface + ProjectContext func() map[string]interface{} + type Session struct + CMD string + Config *Settings + ContextValues *ContextValues + ErrWriter io.Writer + Exit func(code int) + ModuleMutex *intSync.KeyMutex + OutWriter io.Writer + StartTime int64 + State *State + VCSMetadata vcs.Metadata + func EmptyRunContext() *Session + func NewRunContextFromEnv(rootCtx context.Context) (*Session, error) + func (r *Session) Context() context.Context + func (r *Session) EventEnv() map[string]interface{} + func (r *Session) EventEnvWithProjectContexts(projectContexts []*ProjectSession) map[string]interface{} + func (r *Session) GetParallelism() (int, error) + func (r *Session) IsAutoDetect() bool + func (r *Session) IsC3XComment() bool + func (r *Session) IsCIRun() bool + func (r *Session) IsCloudEnabled() bool + func (r *Session) IsCloudUploadEnabled() bool + func (r *Session) IsCloudUploadExplicitlyEnabled() bool + func (r *Session) SetIsC3XComment() + func (r *Session) UUID() uuid.UUID + func (r *Session) VCSRepositoryURL() string + type Settings struct + APIKey string + AWSOverrideRegion string + Autodetect AutodetectConfig + AzureOverrideRegion string + CompareTo string + ConfigFilePath string + Configuration Configuration + Credentials Credentials + Currency string + CurrencyFormat string + DashboardAPIEndpoint string + DashboardEndpoint string + DebugReport bool + DefaultPricingAPIEndpoint string + DisableHCLParsing bool + EnableCloud *bool + EnableCloudForOrganization bool + EnableCloudUpload *bool + EnableDashboard bool + EventsDisabled bool + Fields []string + Format string + GitDiffTarget *string + GoogleOverrideRegion string + GraphEvaluator bool + LogLevel string + MetricsPath string + NoCache bool + NoColor bool + OfflineMode bool + Parallelism *int + PoliciesEnabled bool + PolicyV2APIEndpoint string + PricingAPIEndpoint string + PricingCacheDisabled bool + PricingCacheObjectSize int + Projects []*Project + RootPath string + S3ModuleCacheBucket string + S3ModuleCachePrefix string + S3ModuleCachePrivate bool + S3ModuleCacheRegion string + ShowAllProjects bool + ShowSkipped bool + SkipErrLine bool + SkipUpdateCheck bool + SyncUsageFile bool + TLSCACertFile string + TLSInsecureSkipVerify *bool + TagPoliciesEnabled bool + TerraformSourceMap TerraformSourceMap + TerraformSourceMapRegex TerraformSourceMapRegex + UsageAPIEndpoint string + UsageActualCosts bool + UsageFilePath string + Version string + func DefaultConfig() *Settings + func (c *Settings) CachePath() string + func (c *Settings) IsProduction(value string) bool + func (c *Settings) IsSelfHosted() bool + func (c *Settings) LoadFromConfigFile(path string, cmd *cobra.Command) error + func (c *Settings) LoadFromEnv() error + func (c *Settings) LoadGlobalFlags(cmd *cobra.Command) error + func (c *Settings) LogFields() map[string]interface{} + func (c *Settings) LogWriter() io.Writer + func (c *Settings) SetLogDisableTimestamps(v bool) + func (c *Settings) SetLogWriter(w io.Writer) + func (c *Settings) WorkingDirectory() string + func (c *Settings) WriteLevel() string + type SettingsFileSpec struct + Projects []*Project + TerraformSourceMapRegex TerraformSourceMapRegex + Version string + func LoadConfigFile(path string) (SettingsFileSpec, error) + func (f *SettingsFileSpec) UnmarshalYAML(unmarshal func(interface{}) error) error + type State struct + InstallID string + LatestReleaseCheckedAt string + LatestReleaseVersion string + func LoadState() (*State, error) + func (s *State) Save() error + type TerraformSourceMap map[string]string + func (s *TerraformSourceMap) Decode(value string) error + type TerraformSourceMapRegex []TerraformSourceMapRegexEntry + func (s *TerraformSourceMapRegex) Compile() error + func (s *TerraformSourceMapRegex) IsCompiled() bool + type TerraformSourceMapRegexEntry struct + Match string + Replace string + type YamlError struct + func (y *YamlError) Error() string