MCPcopy Create free account

hub / github.com/OverloadBlitz/cloudcent-cli / functions

Functions368 in github.com/OverloadBlitz/cloudcent-cli

↓ 2 callersFunctionisNonPackageMode
(pyprojectPath string)
cmd/pulumi.go:1081
↓ 2 callersMethodloadMetadataIntoView
()
internal/tui/app.go:121
↓ 2 callersMethodlookupProviderRegionLocked
(provider string, providers map[string]string)
internal/pulumi/mock_resource_collector.go:859
↓ 2 callersFunctionmax
(a, b int)
internal/tui/views/pricing.go:1447
↓ 2 callersFunctionmin
(a, b int)
internal/tui/views/pricing.go:1440
↓ 2 callersFunctionnormalizePrice
(s string)
internal/tui/views/pricing.go:768
↓ 2 callersFunctionparsePyprojectDeps
parsePyprojectDeps extracts dependency specifiers from pyproject.toml without a full TOML parser. It handles two common layouts: 1. PEP 621 / uv: [p
cmd/pulumi.go:1097
↓ 2 callersFunctionpricingItemMatchesRecord
(item api.PricingItem, record resources.DecodedResource, usageSuffixMatch bool)
internal/estimate/estimator.go:535
↓ 2 callersFunctionrenderPricesTableWithUsage
(prices []resources.PriceEntry, usageQty float64)
internal/estimate/print.go:403
↓ 2 callersFunctionrunUserProgramTo
(projectInfo pulumiProjectInfo, dir, monitorAddr, engineAddr string, logWriter io.Writer)
cmd/pulumi.go:639
↓ 2 callersFunctionstartAuthCmd
── Commands (async) ──────────────────────────────────────────────────────────
internal/tui/app.go:540
↓ 2 callersMethodsubmitPricingQuery
()
internal/tui/app.go:418
↓ 2 callersMethodsuggestionCols
()
internal/tui/views/pricing.go:929
↓ 2 callersFunctionthroughputQueries
throughputQueries returns Read + Write capacity pricing queries for a table or GSI. The group suffix and operation depend on billingMode and tableClas
internal/pulumi/resources/aws/dynamodb.go:76
↓ 2 callersFunctiontickCmd
()
internal/tui/app.go:136
↓ 2 callersMethodtoggleSuggestion
(idx int)
internal/tui/views/pricing.go:456
↓ 2 callersFunctiontruncate
(s string, n int)
cmd/history.go:53
↓ 1 callersMethodAddHistory
AddHistory records a pricing query in history.
internal/db/db.go:115
↓ 1 callersMethodClearCurrentTags
()
internal/tui/views/pricing.go:80
↓ 1 callersFunctionEvaluateGuardrail
EvaluateGuardrail compares the computed totals against the configured thresholds and returns a verdict. The monthly total is parsed from totals.Monthl
internal/estimate/guardrail.go:48
↓ 1 callersFunctionExecute
Execute is the entry point called from main. Exit code convention: 0 — success / guardrail passed 1 — runtime error (build, auth, network, bad inp
cmd/root.go:30
↓ 1 callersFunctionFormatInputProperties
FormatInputProperties serialises a Pulumi PropertyMap to indented JSON for display/debugging purposes.
internal/pulumi/resources/aws/util.go:77
↓ 1 callersMethodInjectECSCrossResourceAttrs
InjectECSCrossResourceAttrs performs a post-collection pass that propagates TaskDefinition attributes (cpu, memory, runtimePlatform) into the MockedPr
internal/pulumi/mock_resource_collector.go:66
↓ 1 callersFunctionMakeCacheKey
MakeCacheKey produces a deterministic cache key from query parameters.
internal/db/db.go:217
↓ 1 callersFunctionNewApp
(version string)
internal/tui/app.go:88
↓ 1 callersFunctionNewHistoryView
(width, height int)
internal/tui/views/history.go:42
↓ 1 callersFunctionNewPricingView
(width, height int)
internal/tui/views/pricing.go:179
↓ 1 callersFunctionNewResourceCollector
()
internal/pulumi/mock_resource_collector.go:37
↓ 1 callersFunctionNewSettingsView
(width, height int)
internal/tui/views/settings.go:34
↓ 1 callersMethodPopCurrentTag
()
internal/tui/views/pricing.go:73
↓ 1 callersFunctionPrintResults
PrintResults renders per-resource pricing tables and a final cost summary.
internal/estimate/print.go:233
↓ 1 callersFunctionProcessMetadata
ProcessMetadata builds PricingOptions from API metadata.
internal/tui/views/pricing.go:145
↓ 1 callersFunctionPropertyValueToAny
PropertyValueToAny converts a Pulumi PropertyValue to a plain Go value.
internal/pulumi/resources/aws/util.go:99
↓ 1 callersFunctionSave
Save writes config to ~/.cloudcent/config.yaml with 0600 permissions.
internal/config/config.go:68
↓ 1 callersFunctionScoreAndSuggestProducts
ScoreAndSuggestProducts returns a scored, ranked list of product suggestions.
internal/semantic/semantic.go:87
↓ 1 callersMethodSetCache
SetCache stores or replaces a pricing response in the cache.
internal/db/db.go:196
↓ 1 callersFunctionSuggestAttrs
SuggestAttrs returns attribute key or key=value suggestions.
internal/semantic/semantic.go:335
↓ 1 callersFunctionSuggestRegions
SuggestRegions returns filtered region suggestions.
internal/semantic/semantic.go:256
↓ 1 callersFunctionaddDerivedAttrs
addDerivedAttrs applies resource-type-specific attribute enrichment that cannot be expressed in the metadata mapping alone.
internal/pulumi/mapper.go:285
↓ 1 callersFunctionallZeroRates
allZeroRates returns true when every entry has a zero rate across all tiers, meaning the resource is effectively free. For tiered pricing, any non-zer
internal/estimate/estimator.go:488
↓ 1 callersFunctionapplyModelSelector
applyModelSelector finds the best matching PriceEntry for the given selector, marks it as IsCurrent (and clears all others), and returns the effective
internal/estimate/estimator.go:152
↓ 1 callersFunctionattrMatch
(item PricingDisplayItem, tags []string)
internal/tui/views/pricing.go:590
↓ 1 callersMethodauthHeaders
(req *http.Request)
internal/api/client.go:67
↓ 1 callersFunctionbuildGuardrailConfig
buildGuardrailConfig assembles a GuardrailConfig from the parsed flags, loading the baseline estimate JSON when --baseline is given.
cmd/pulumi.go:383
↓ 1 callersFunctionbuildPriceEntries
buildPriceEntries converts an api.PricingItem into a sorted slice of PriceEntry. OnDemand is always first; the rest are sorted by model name, then rat
internal/estimate/estimator.go:400
↓ 1 callersFunctioncacheTypeToMemorySize
cacheTypeToMemorySize maps the ApiCache instance type to the cachememorysize pricing attribute value used in the AWS pricing API.
internal/pulumi/resources/aws/appsync.go:57
↓ 1 callersFunctioncalcTieredCost
calcTieredCost applies volume-tiered pricing to a total quantity. Each tier covers [startRange, endRange) units at its price.
internal/estimate/estimator.go:725
↓ 1 callersFunctioncalcUsageMonthlyCost
calcUsageMonthlyCost computes the monthly cost for a usage-based resource given a monthly quantity. It uses the OnDemand entry's tiers when available,
internal/estimate/estimator.go:696
↓ 1 callersFunctioncheckDependencies
checkDependencies returns whether installation is needed and a human-readable description.
cmd/pulumi.go:826
↓ 1 callersMethodcomputeColumnWidths
(attrKeys []string)
internal/tui/views/pricing.go:1178
↓ 1 callersFunctionconsolidateS3Objects
consolidateS3Objects merges multiple S3 BucketObject/BucketObjectv2 DecodedResources that share the same region, bucket, and storage volume type into
internal/pulumi/mapper.go:99
↓ 1 callersFunctioncountByProvider
(items []PricingDisplayItem)
internal/tui/views/pricing.go:1065
↓ 1 callersFunctiondecodeEC2LaunchTypeService
decodeEC2LaunchTypeService produces a vCPU pricing query for an EC2-launched ECS service. AWS charges per vCPU hour under productFamily "Compute Meter
internal/pulumi/resources/aws/ecs.go:332
↓ 1 callersFunctiondecodeExternalService
decodeExternalService produces a pricing query for an EXTERNAL-launched service. External instances are registered from on-premises or other environme
internal/pulumi/resources/aws/ecs.go:304
↓ 1 callersFunctiondecodeFargateService
decodeFargateService produces pricing queries for a FARGATE-launched service. Always emits: - CPU query (cputype=perCPU) - Memory query (memorytype=
internal/pulumi/resources/aws/ecs.go:201
↓ 1 callersFunctiondecodeFromMapping
decodeFromMapping uses a metadata PulumiResourceDef to extract pricing attributes from a Pulumi resource's inputs. Returns one or more DecodedResource
internal/pulumi/mapper.go:177
↓ 1 callersFunctiondetectPulumiProject
(dir string)
cmd/pulumi.go:487
↓ 1 callersFunctiondetectRuntime
(dir string)
cmd/pulumi.go:460
↓ 1 callersFunctiondetectUsageBased
detectUsageBased returns (true, unit) when the dominant pricing unit is not time-based (i.e. not "Hrs"/"Hours"). It picks the unit from the first OnDe
internal/estimate/estimator.go:626
↓ 1 callersFunctiondummyValueForConfigKey
dummyValueForConfigKey returns a reasonable dummy value for a non-pricing config key. For keys that look like they expect a number, returns "1". For k
cmd/pulumi.go:1451
↓ 1 callersFunctioneffectivePriceFilter
(value string)
internal/estimate/estimator.go:506
↓ 1 callersFunctionenrichOutputs
--------------------------------------------------------------------------- enrichOutputs injects synthetic computed fields into resource outputs ----
internal/pulumi/mock_resource_collector.go:721
↓ 1 callersFunctionensurePythonDependenciesPip
ensurePythonDependenciesPip uses the standard library venv + pip workflow.
cmd/pulumi.go:1025
↓ 1 callersFunctionensurePythonDependenciesUV
ensurePythonDependenciesUV uses `uv` to create the venv and install packages.
cmd/pulumi.go:970
↓ 1 callersFunctionextractMIPInstanceType
extractMIPInstanceType walks the managedInstancesProvider → instanceLaunchTemplate → instanceRequirements → allowedInstanceTypes[] path and returns th
internal/pulumi/resources/aws/ecs.go:102
↓ 1 callersFunctionextractRequiredKeys
extractRequiredKeys parses source code content and returns fully-qualified config keys (namespace:key). It tracks which Config object uses which names
cmd/pulumi.go:1350
↓ 1 callersFunctionfargateMemoryGB
fargateMemoryGB converts a Fargate memory string (MiB, e.g. "512") to GB. Returns 1 when the value is missing or unparseable.
internal/pulumi/resources/aws/ecs.go:277
↓ 1 callersFunctionfetchPricingCmd
(client *api.Client, products, regions []string, attrs map[string]string, prices []string)
internal/tui/app.go:575
↓ 1 callersFunctionfindMatchingPrice
(record resources.DecodedResource, response map[string][]api.PricingItem)
internal/estimate/estimator.go:514
↓ 1 callersFunctiongroupResults
groupResults groups consecutive results that share the same ResourceName and have a non-empty SubLabel. Ungrouped results (SubLabel == "") get their o
internal/estimate/print.go:211
↓ 1 callersMethodhandleHistoryEvent
(event views.HistoryEvent, idx int)
internal/tui/app.go:319
↓ 1 callersMethodhandleInitAuthKey
(key string)
internal/tui/app.go:271
↓ 1 callersMethodhandleKey
(msg tea.KeyMsg)
internal/tui/app.go:238
↓ 1 callersMethodhandleKeyBuilderField
(key string)
internal/tui/views/pricing.go:269
↓ 1 callersMethodhandleKeyBuilderSuggestions
(key string)
internal/tui/views/pricing.go:340
↓ 1 callersMethodhandleKeyCommand
(key string)
internal/tui/views/pricing.go:242
↓ 1 callersMethodhandleKeyHeader
(key string)
internal/tui/views/pricing.go:227
↓ 1 callersMethodhandleKeyResults
(key string)
internal/tui/views/pricing.go:397
↓ 1 callersMethodhandlePricingEvent
(event views.PricingEvent)
internal/tui/app.go:305
↓ 1 callersMethodhandleSettingsEvent
(event views.SettingsEvent)
internal/tui/app.go:372
↓ 1 callersMethodhandleTabBuilder
()
internal/tui/views/pricing.go:256
↓ 1 callersFunctioninferCategoryFromAttrs
(productID string, attributeValues map[string]map[string][]string)
internal/semantic/semantic.go:70
↓ 1 callersMethodinitTables
()
internal/db/db.go:60
↓ 1 callersMethodinvokeGetAmi
invokeGetAmi infers OS from LookupAmi filters and returns a mock AMI ID. It scans all filter name/values pairs (not just name=="name") as well as the
internal/pulumi/mock_resource_collector.go:392
↓ 1 callersMethodinvokeGetAvailabilityZones
(req *pulumirpc.ResourceInvokeRequest)
internal/pulumi/mock_resource_collector.go:649
↓ 1 callersMethodinvokeGetCallerIdentity
(req *pulumirpc.ResourceInvokeRequest)
internal/pulumi/mock_resource_collector.go:638
↓ 1 callersMethodinvokeGetEcrAuthToken
--------------------------------------------------------------------------- AWS ECR invoke mocks -----------------------------------------------------
internal/pulumi/mock_resource_collector.go:534
↓ 1 callersMethodinvokeGetIamPolicy
--------------------------------------------------------------------------- AWS IAM invoke mocks -----------------------------------------------------
internal/pulumi/mock_resource_collector.go:573
↓ 1 callersMethodinvokeGetPartition
(req *pulumirpc.ResourceInvokeRequest)
internal/pulumi/mock_resource_collector.go:672
↓ 1 callersMethodinvokeGetRegion
--------------------------------------------------------------------------- AWS account / region invoke mocks ----------------------------------------
internal/pulumi/mock_resource_collector.go:619
↓ 1 callersMethodinvokeGetResource
--------------------------------------------------------------------------- pulumi:pulumi:getResource handler — resolves cross-resource Output refs --
internal/pulumi/mock_resource_collector.go:687
↓ 1 callersMethodinvokeGetS3Object
--------------------------------------------------------------------------- AWS S3 invoke mocks ------------------------------------------------------
internal/pulumi/mock_resource_collector.go:595
↓ 1 callersMethodinvokeGetSSMParameter
invokeGetSSMParameter infers OS from SSM parameter path (e.g. /aws/service/ami-amazon-linux-latest/...).
internal/pulumi/mock_resource_collector.go:440
↓ 1 callersMethodinvokeGetSecurityGroup
--------------------------------------------------------------------------- AWS Security Group invoke mock -------------------------------------------
internal/pulumi/mock_resource_collector.go:552
↓ 1 callersMethodinvokeGetSubnet
invokeGetSubnet returns a single mock subnet.
internal/pulumi/mock_resource_collector.go:506
↓ 1 callersMethodinvokeGetSubnets
invokeGetSubnets returns a mock list of subnet IDs.
internal/pulumi/mock_resource_collector.go:495
↓ 1 callersMethodinvokeGetVpc
--------------------------------------------------------------------------- AWS VPC / Networking invoke mocks ----------------------------------------
internal/pulumi/mock_resource_collector.go:471
↓ 1 callersFunctionisPricingRelevantConfigKey
isPricingRelevantConfigKey returns true if the config key affects pricing and should NOT be auto-filled with a dummy value.
cmd/pulumi.go:1433
↓ 1 callersFunctionisWindowsOSFamily
isWindowsOSFamily returns true when the osFamily string indicates a Windows container OS (e.g. "WINDOWS_SERVER_2019_FULL", "WINDOWS_SERVER_2022_CORE")
internal/pulumi/resources/aws/ecs.go:424
↓ 1 callersFunctionlbTypeToAttrs
lbTypeToAttrs maps a loadBalancerType value to its pricing productFamily and operation.
internal/pulumi/resources/aws/lb.go:34
← previousnext →101–200 of 368, ranked by callers