Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OverloadBlitz/cloudcent-cli
/ functions
Functions
368 in github.com/OverloadBlitz/cloudcent-cli
⨍
Functions
368
◇
Types & classes
75
↓ 2 callers
Function
isNonPackageMode
(pyprojectPath string)
cmd/pulumi.go:1081
↓ 2 callers
Method
loadMetadataIntoView
()
internal/tui/app.go:121
↓ 2 callers
Method
lookupProviderRegionLocked
(provider string, providers map[string]string)
internal/pulumi/mock_resource_collector.go:859
↓ 2 callers
Function
max
(a, b int)
internal/tui/views/pricing.go:1447
↓ 2 callers
Function
min
(a, b int)
internal/tui/views/pricing.go:1440
↓ 2 callers
Function
normalizePrice
(s string)
internal/tui/views/pricing.go:768
↓ 2 callers
Function
parsePyprojectDeps
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 callers
Function
pricingItemMatchesRecord
(item api.PricingItem, record resources.DecodedResource, usageSuffixMatch bool)
internal/estimate/estimator.go:535
↓ 2 callers
Function
renderPricesTableWithUsage
(prices []resources.PriceEntry, usageQty float64)
internal/estimate/print.go:403
↓ 2 callers
Function
runUserProgramTo
(projectInfo pulumiProjectInfo, dir, monitorAddr, engineAddr string, logWriter io.Writer)
cmd/pulumi.go:639
↓ 2 callers
Function
startAuthCmd
── Commands (async) ──────────────────────────────────────────────────────────
internal/tui/app.go:540
↓ 2 callers
Method
submitPricingQuery
()
internal/tui/app.go:418
↓ 2 callers
Method
suggestionCols
()
internal/tui/views/pricing.go:929
↓ 2 callers
Function
throughputQueries
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 callers
Function
tickCmd
()
internal/tui/app.go:136
↓ 2 callers
Method
toggleSuggestion
(idx int)
internal/tui/views/pricing.go:456
↓ 2 callers
Function
truncate
(s string, n int)
cmd/history.go:53
↓ 1 callers
Method
AddHistory
AddHistory records a pricing query in history.
internal/db/db.go:115
↓ 1 callers
Method
ClearCurrentTags
()
internal/tui/views/pricing.go:80
↓ 1 callers
Function
EvaluateGuardrail
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 callers
Function
Execute
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 callers
Function
FormatInputProperties
FormatInputProperties serialises a Pulumi PropertyMap to indented JSON for display/debugging purposes.
internal/pulumi/resources/aws/util.go:77
↓ 1 callers
Method
InjectECSCrossResourceAttrs
InjectECSCrossResourceAttrs performs a post-collection pass that propagates TaskDefinition attributes (cpu, memory, runtimePlatform) into the MockedPr
internal/pulumi/mock_resource_collector.go:66
↓ 1 callers
Function
MakeCacheKey
MakeCacheKey produces a deterministic cache key from query parameters.
internal/db/db.go:217
↓ 1 callers
Function
NewApp
(version string)
internal/tui/app.go:88
↓ 1 callers
Function
NewHistoryView
(width, height int)
internal/tui/views/history.go:42
↓ 1 callers
Function
NewPricingView
(width, height int)
internal/tui/views/pricing.go:179
↓ 1 callers
Function
NewResourceCollector
()
internal/pulumi/mock_resource_collector.go:37
↓ 1 callers
Function
NewSettingsView
(width, height int)
internal/tui/views/settings.go:34
↓ 1 callers
Method
PopCurrentTag
()
internal/tui/views/pricing.go:73
↓ 1 callers
Function
PrintResults
PrintResults renders per-resource pricing tables and a final cost summary.
internal/estimate/print.go:233
↓ 1 callers
Function
ProcessMetadata
ProcessMetadata builds PricingOptions from API metadata.
internal/tui/views/pricing.go:145
↓ 1 callers
Function
PropertyValueToAny
PropertyValueToAny converts a Pulumi PropertyValue to a plain Go value.
internal/pulumi/resources/aws/util.go:99
↓ 1 callers
Function
Save
Save writes config to ~/.cloudcent/config.yaml with 0600 permissions.
internal/config/config.go:68
↓ 1 callers
Function
ScoreAndSuggestProducts
ScoreAndSuggestProducts returns a scored, ranked list of product suggestions.
internal/semantic/semantic.go:87
↓ 1 callers
Method
SetCache
SetCache stores or replaces a pricing response in the cache.
internal/db/db.go:196
↓ 1 callers
Function
SuggestAttrs
SuggestAttrs returns attribute key or key=value suggestions.
internal/semantic/semantic.go:335
↓ 1 callers
Function
SuggestRegions
SuggestRegions returns filtered region suggestions.
internal/semantic/semantic.go:256
↓ 1 callers
Function
addDerivedAttrs
addDerivedAttrs applies resource-type-specific attribute enrichment that cannot be expressed in the metadata mapping alone.
internal/pulumi/mapper.go:285
↓ 1 callers
Function
allZeroRates
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 callers
Function
applyModelSelector
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 callers
Function
attrMatch
(item PricingDisplayItem, tags []string)
internal/tui/views/pricing.go:590
↓ 1 callers
Method
authHeaders
(req *http.Request)
internal/api/client.go:67
↓ 1 callers
Function
buildGuardrailConfig
buildGuardrailConfig assembles a GuardrailConfig from the parsed flags, loading the baseline estimate JSON when --baseline is given.
cmd/pulumi.go:383
↓ 1 callers
Function
buildPriceEntries
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 callers
Function
cacheTypeToMemorySize
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 callers
Function
calcTieredCost
calcTieredCost applies volume-tiered pricing to a total quantity. Each tier covers [startRange, endRange) units at its price.
internal/estimate/estimator.go:725
↓ 1 callers
Function
calcUsageMonthlyCost
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 callers
Function
checkDependencies
checkDependencies returns whether installation is needed and a human-readable description.
cmd/pulumi.go:826
↓ 1 callers
Method
computeColumnWidths
(attrKeys []string)
internal/tui/views/pricing.go:1178
↓ 1 callers
Function
consolidateS3Objects
consolidateS3Objects merges multiple S3 BucketObject/BucketObjectv2 DecodedResources that share the same region, bucket, and storage volume type into
internal/pulumi/mapper.go:99
↓ 1 callers
Function
countByProvider
(items []PricingDisplayItem)
internal/tui/views/pricing.go:1065
↓ 1 callers
Function
decodeEC2LaunchTypeService
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 callers
Function
decodeExternalService
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 callers
Function
decodeFargateService
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 callers
Function
decodeFromMapping
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 callers
Function
detectPulumiProject
(dir string)
cmd/pulumi.go:487
↓ 1 callers
Function
detectRuntime
(dir string)
cmd/pulumi.go:460
↓ 1 callers
Function
detectUsageBased
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 callers
Function
dummyValueForConfigKey
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 callers
Function
effectivePriceFilter
(value string)
internal/estimate/estimator.go:506
↓ 1 callers
Function
enrichOutputs
--------------------------------------------------------------------------- enrichOutputs injects synthetic computed fields into resource outputs ----
internal/pulumi/mock_resource_collector.go:721
↓ 1 callers
Function
ensurePythonDependenciesPip
ensurePythonDependenciesPip uses the standard library venv + pip workflow.
cmd/pulumi.go:1025
↓ 1 callers
Function
ensurePythonDependenciesUV
ensurePythonDependenciesUV uses `uv` to create the venv and install packages.
cmd/pulumi.go:970
↓ 1 callers
Function
extractMIPInstanceType
extractMIPInstanceType walks the managedInstancesProvider → instanceLaunchTemplate → instanceRequirements → allowedInstanceTypes[] path and returns th
internal/pulumi/resources/aws/ecs.go:102
↓ 1 callers
Function
extractRequiredKeys
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 callers
Function
fargateMemoryGB
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 callers
Function
fetchPricingCmd
(client *api.Client, products, regions []string, attrs map[string]string, prices []string)
internal/tui/app.go:575
↓ 1 callers
Function
findMatchingPrice
(record resources.DecodedResource, response map[string][]api.PricingItem)
internal/estimate/estimator.go:514
↓ 1 callers
Function
groupResults
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 callers
Method
handleHistoryEvent
(event views.HistoryEvent, idx int)
internal/tui/app.go:319
↓ 1 callers
Method
handleInitAuthKey
(key string)
internal/tui/app.go:271
↓ 1 callers
Method
handleKey
(msg tea.KeyMsg)
internal/tui/app.go:238
↓ 1 callers
Method
handleKeyBuilderField
(key string)
internal/tui/views/pricing.go:269
↓ 1 callers
Method
handleKeyBuilderSuggestions
(key string)
internal/tui/views/pricing.go:340
↓ 1 callers
Method
handleKeyCommand
(key string)
internal/tui/views/pricing.go:242
↓ 1 callers
Method
handleKeyHeader
(key string)
internal/tui/views/pricing.go:227
↓ 1 callers
Method
handleKeyResults
(key string)
internal/tui/views/pricing.go:397
↓ 1 callers
Method
handlePricingEvent
(event views.PricingEvent)
internal/tui/app.go:305
↓ 1 callers
Method
handleSettingsEvent
(event views.SettingsEvent)
internal/tui/app.go:372
↓ 1 callers
Method
handleTabBuilder
()
internal/tui/views/pricing.go:256
↓ 1 callers
Function
inferCategoryFromAttrs
(productID string, attributeValues map[string]map[string][]string)
internal/semantic/semantic.go:70
↓ 1 callers
Method
initTables
()
internal/db/db.go:60
↓ 1 callers
Method
invokeGetAmi
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 callers
Method
invokeGetAvailabilityZones
(req *pulumirpc.ResourceInvokeRequest)
internal/pulumi/mock_resource_collector.go:649
↓ 1 callers
Method
invokeGetCallerIdentity
(req *pulumirpc.ResourceInvokeRequest)
internal/pulumi/mock_resource_collector.go:638
↓ 1 callers
Method
invokeGetEcrAuthToken
--------------------------------------------------------------------------- AWS ECR invoke mocks -----------------------------------------------------
internal/pulumi/mock_resource_collector.go:534
↓ 1 callers
Method
invokeGetIamPolicy
--------------------------------------------------------------------------- AWS IAM invoke mocks -----------------------------------------------------
internal/pulumi/mock_resource_collector.go:573
↓ 1 callers
Method
invokeGetPartition
(req *pulumirpc.ResourceInvokeRequest)
internal/pulumi/mock_resource_collector.go:672
↓ 1 callers
Method
invokeGetRegion
--------------------------------------------------------------------------- AWS account / region invoke mocks ----------------------------------------
internal/pulumi/mock_resource_collector.go:619
↓ 1 callers
Method
invokeGetResource
--------------------------------------------------------------------------- pulumi:pulumi:getResource handler — resolves cross-resource Output refs --
internal/pulumi/mock_resource_collector.go:687
↓ 1 callers
Method
invokeGetS3Object
--------------------------------------------------------------------------- AWS S3 invoke mocks ------------------------------------------------------
internal/pulumi/mock_resource_collector.go:595
↓ 1 callers
Method
invokeGetSSMParameter
invokeGetSSMParameter infers OS from SSM parameter path (e.g. /aws/service/ami-amazon-linux-latest/...).
internal/pulumi/mock_resource_collector.go:440
↓ 1 callers
Method
invokeGetSecurityGroup
--------------------------------------------------------------------------- AWS Security Group invoke mock -------------------------------------------
internal/pulumi/mock_resource_collector.go:552
↓ 1 callers
Method
invokeGetSubnet
invokeGetSubnet returns a single mock subnet.
internal/pulumi/mock_resource_collector.go:506
↓ 1 callers
Method
invokeGetSubnets
invokeGetSubnets returns a mock list of subnet IDs.
internal/pulumi/mock_resource_collector.go:495
↓ 1 callers
Method
invokeGetVpc
--------------------------------------------------------------------------- AWS VPC / Networking invoke mocks ----------------------------------------
internal/pulumi/mock_resource_collector.go:471
↓ 1 callers
Function
isPricingRelevantConfigKey
isPricingRelevantConfigKey returns true if the config key affects pricing and should NOT be auto-filled with a dummy value.
cmd/pulumi.go:1433
↓ 1 callers
Function
isWindowsOSFamily
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 callers
Function
lbTypeToAttrs
lbTypeToAttrs maps a loadBalancerType value to its pricing productFamily and operation.
internal/pulumi/resources/aws/lb.go:34
← previous
next →
101–200 of 368, ranked by callers