MCPcopy Create free account

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

Functions368 in github.com/OverloadBlitz/cloudcent-cli

↓ 69 callersFunctionExtractInput
ExtractInput reads a value from a Pulumi PropertyMap, supporting dot-path notation for nested objects (e.g. "hardwareProfile.vmSize", "sku.name").
internal/pulumi/resources/aws/util.go:14
↓ 59 callersMethodString
()
internal/api/models.go:22
↓ 57 callersMethodRender
(active bool, version string)
internal/tui/views/pulumi.go:66
↓ 39 callersMethodRender
Render returns the full string representation of the pricing view. It uses a two-pass strategy: render all fixed-height sections first, measure their
internal/tui/views/pricing.go:805
↓ 33 callersFunctionstyleHelpKey
(k string)
internal/tui/views/pricing.go:1436
↓ 21 callersMethodget
(endpoint string, requireAuth bool)
internal/api/client.go:106
↓ 14 callersMethodUpdateSuggestions
UpdateSuggestions rebuilds the suggestion cache.
internal/tui/views/pricing.go:509
↓ 14 callersFunctionboxWithTitle
boxWithTitle renders content in a rounded-border box whose title is embedded in the top border line: ╭─ Title ─────────────────────────────╮ │ cont
internal/tui/views/utils.go:42
↓ 14 callersFunctionfileExists
fileExists reports whether the named file exists and is not a directory.
cmd/pulumi.go:1191
↓ 14 callersFunctionmustNewStruct
mustNewStruct wraps structpb.NewStruct and logs any conversion error. This catches silent failures where NewStruct returns nil (e.g. unsupported value
internal/pulumi/mock_resource_collector.go:840
↓ 12 callersFunctionDecodeAllResources
DecodeAllResources decodes collected Pulumi resources using the metadata-driven mapping. It replaces the old per-resource decoder approach — no Go cod
internal/pulumi/mapper.go:41
↓ 12 callersFunctionddbEntry
ddbEntry is a helper to build a DecodedResource for DynamoDB pricing queries.
internal/pulumi/resources/aws/dynamodb.go:18
↓ 12 callersFunctionlineCount
lineCount returns the number of terminal lines in s.
internal/tui/views/utils.go:26
↓ 12 callersFunctionmustAttrValue
(t *testing.T, raw string)
internal/estimate/estimator_test.go:224
↓ 8 callersMethodClose
Close closes the database connection.
internal/db/db.go:56
↓ 8 callersFunctionecsEntry
ecsEntry is a helper that builds a DecodedResource for an ECS pricing query.
internal/pulumi/resources/aws/ecs.go:19
↓ 8 callersFunctionresolveUsageQty
resolveUsageQty returns the monthly quantity to use for a resource. Priority: usageMap (user-supplied) > rawType key > service/subLabel key > service
internal/estimate/estimator.go:642
↓ 8 callersFunctionsnsEntry
snsEntry builds a DecodedResource for an SNS pricing query.
internal/pulumi/resources/aws/sns.go:15
↓ 7 callersMethodFilterItems
FilterItems filters items based on current builder tags.
internal/tui/views/pricing.go:547
↓ 7 callersFunctions3Entry
s3Entry builds a DecodedResource for an S3 pricing query.
internal/pulumi/resources/aws/s3.go:15
↓ 6 callersFunctionappSyncEntry
appSyncEntry builds a DecodedResource for an AppSync pricing query.
internal/pulumi/resources/aws/appsync.go:15
↓ 6 callersFunctioncopyProps
copyProps returns a shallow copy of a string map.
internal/pulumi/resources/aws/dynamodb.go:335
↓ 6 callersFunctionequalFoldTrim
(a, b string)
internal/estimate/estimator.go:587
↓ 6 callersFunctionmoney
(x)
scripts/render_comment.py:14
↓ 6 callersFunctionnewTestClient
(t *testing.T, withAuth bool, fn roundTripFunc)
internal/api/client_test.go:21
↓ 6 callersFunctionresponse
(status int, body string)
internal/api/client_test.go:37
↓ 6 callersFunctionstringPtr
(v string)
internal/estimate/estimator_test.go:235
↓ 5 callersMethodError
()
cmd/pulumi.go:808
↓ 5 callersMethodGetHistory
GetHistory returns the most recent n history entries.
internal/db/db.go:137
↓ 5 callersFunctionNew
New creates a new Client and loads config from disk.
internal/api/client.go:31
↓ 5 callersFunctionbillingMode
billingMode returns "PROVISIONED" or "PAY_PER_REQUEST" from inputs, defaulting to PROVISIONED.
internal/pulumi/resources/aws/dynamodb.go:66
↓ 5 callersFunctionboxWithTitleMinHeight
boxWithTitleMinHeight is like boxWithTitle but forces the box to be at least minHeight terminal lines tall (including the two border lines). Content s
internal/tui/views/utils.go:57
↓ 5 callersFunctionmockedProp
mockedProp safely reads a value from MockedProperties, returning "" if absent.
internal/pulumi/resources/aws/ecs.go:401
↓ 5 callersMethodpost
(endpoint string, payload any, requireAuth bool)
internal/api/client.go:110
↓ 5 callersFunctionpropertyString
(v resource.PropertyValue)
internal/pulumi/mock_resource_collector.go:848
↓ 5 callersFunctionpythonVenvDir
pythonVenvDir returns the effective venv directory name for a Python project.
cmd/pulumi.go:818
↓ 5 callersFunctiontableClass
tableClass returns "STANDARD" or "STANDARD_IA" from inputs, defaulting to STANDARD.
internal/pulumi/resources/aws/dynamodb.go:37
↓ 5 callersFunctiontruncate
(s string, n int)
internal/tui/views/utils.go:15
↓ 4 callersFunctionEstimateAllResources
EstimateAllResources estimates costs for all resources. usageMap maps resource name → monthly quantity for usage-based resources. modelMap maps resour
internal/estimate/estimator.go:208
↓ 4 callersMethodIsInitialized
IsInitialized returns true if credentials are present.
internal/api/client.go:44
↓ 4 callersFunctionNew
New opens (or creates) the SQLite database and runs migrations.
internal/db/db.go:38
↓ 4 callersFunctionPath
Path returns the full path to config.yaml.
internal/config/config.go:31
↓ 4 callersFunctionamortizedHourlyRate
amortizedHourlyRate returns the effective hourly rate for a PriceEntry, spreading any upfront fee evenly over the term hours. For entries with no upfr
internal/estimate/estimator.go:131
↓ 4 callersFunctiondisplayProduct
(provider, product string)
internal/estimate/estimator.go:612
↓ 4 callersFunctionelbEntry
elbEntry builds a DecodedResource for an ELB pricing query.
internal/pulumi/resources/aws/lb.go:15
↓ 4 callersFunctionlowered
(ss []string)
internal/tui/views/pricing.go:573
↓ 4 callersFunctionproviderReference
(urn, id string)
internal/pulumi/mock_resource_collector.go:855
↓ 4 callersFunctionrenderNavHeader
renderNavHeader builds the shared navigation header box used by every view. activeView is the name of the currently active view (must match an entry i
internal/tui/views/utils.go:106
↓ 4 callersFunctionsplitNonEmpty
── Helpers ───────────────────────────────────────────────────────────────────
internal/tui/app.go:584
↓ 3 callersFunctionConvertResponse
ConvertResponse transforms an API response into display items.
internal/tui/views/pricing.go:648
↓ 3 callersFunctionDir
Dir returns ~/.cloudcent, creating it if needed.
internal/config/config.go:18
↓ 3 callersMethodDownloadMetadataGz
DownloadMetadataGz downloads /pricing/metadata and saves as metadata.json.gz.
internal/api/client.go:192
↓ 3 callersMethodFetchPricing
FetchPricing calls POST /pricing with the given filters.
internal/api/client.go:128
↓ 3 callersMethodGenerateToken
GenerateToken calls POST /api/auth/generate-token.
internal/api/client.go:237
↓ 3 callersMethodHandleKey
(key string)
internal/tui/views/pulumi.go:42
↓ 3 callersFunctionLoad
Load reads ~/.cloudcent/config.yaml. Returns nil, nil if missing. If the CLOUDCENT_API_KEY environment variable is set, it takes precedence over the c
internal/config/config.go:42
↓ 3 callersFunctionLoadMetadataFromFile
LoadMetadataFromFile reads and decompresses ~/.cloudcent/metadata.json.gz.
internal/api/client.go:209
↓ 3 callersMethodSetCurrentTags
(tags []string)
internal/tui/views/pricing.go:60
↓ 3 callersFunctionbuildFargateQtyLabel
--------------------------------------------------------------------------- Helpers ------------------------------------------------------------------
internal/pulumi/resources/aws/ecs.go:389
↓ 3 callersMethodclampListOffset
clampListOffset ensures ListOffset keeps Selected in the visible window. It uses the listVisible value set during the last Render().
internal/tui/views/history.go:53
↓ 3 callersFunctionensureDependenciesTo
ensureDependenciesTo installs missing dependencies, writing progress to w.
cmd/pulumi.go:897
↓ 3 callersFunctionformatUsageQty
formatUsageQty formats a usage quantity for display (e.g. 1000000 → "1,000,000").
internal/estimate/estimator.go:775
↓ 3 callersFunctionindent
(s, prefix string)
internal/estimate/print.go:905
↓ 3 callersFunctionisHourlyUnit
isHourlyUnit returns true when the unit string represents time-based pricing.
internal/estimate/estimator.go:103
↓ 3 callersFunctionnormalizeType
normalizeType strips Azure version segments so versioned types match the unversioned entries in the metadata map.
internal/pulumi/mapper.go:30
↓ 3 callersFunctionprotoToPropertyMap
protoToPropertyMap converts a protobuf Struct to a resource.PropertyMap.
internal/pulumi/mock_resource_collector.go:1021
↓ 3 callersMethodrenderPriceTable
(prices []PriceInfo)
internal/tui/views/pricing.go:1322
↓ 3 callersMethodswitchViewNext
()
internal/tui/app.go:384
↓ 3 callersMethodswitchViewPrev
()
internal/tui/app.go:401
↓ 2 callersMethodClearAll
ClearAll deletes all history and pricing cache.
internal/db/db.go:166
↓ 2 callersFunctionComputeTotals
ComputeTotals sums the hourly and usage-based costs across all results into a JSONTotals summary. It is the single source of truth for the monthly tot
internal/estimate/print.go:76
↓ 2 callersMethodCurrentTags
()
internal/tui/views/pricing.go:47
↓ 2 callersFunctionDBPath
DBPath returns ~/.cloudcent/cloudcent.db
internal/config/config.go:93
↓ 2 callersMethodEnabled
Enabled reports whether any threshold is configured. When false the guardrail only reports numbers and never fails.
internal/estimate/guardrail.go:27
↓ 2 callersMethodExchangeToken
ExchangeToken calls POST /api/auth/exchange.
internal/api/client.go:254
↓ 2 callersMethodFetchPricingBatch
(api.BatchPricingRequest)
internal/estimate/estimator.go:15
↓ 2 callersMethodGetCache
GetCache returns a cached pricing response for the given key if not expired.
internal/db/db.go:175
↓ 2 callersMethodGetCacheStats
GetCacheStats returns (count, totalBytes) for pricing_cache.
internal/db/db.go:210
↓ 2 callersFunctionMetadataGzPath
MetadataGzPath returns ~/.cloudcent/metadata.json.gz
internal/config/config.go:84
↓ 2 callersFunctionNewCommandBuilderState
()
internal/tui/views/pricing.go:43
↓ 2 callersFunctionPrintResultsJSONWithGuardrail
PrintResultsJSONWithGuardrail writes the estimate results as JSON, optionally embedding a guardrail verdict under the top-level "guardrail" key. Passi
internal/estimate/print.go:109
↓ 2 callersFunctionPropertyMapToAny
PropertyMapToAny converts a Pulumi PropertyMap to a plain map[string]any.
internal/pulumi/resources/aws/util.go:90
↓ 2 callersFunctionPropertyToString
PropertyToString converts a Pulumi PropertyValue to a string.
internal/pulumi/resources/aws/util.go:42
↓ 2 callersMethodSaveConfig
SaveConfig persists credentials and updates the in-memory copy.
internal/api/client.go:49
↓ 2 callersMethodSetStackConfig
SetStackConfig provides the resolved Pulumi stack config so the collector can fall back to config values (e.g. "aws:region") when provider inputs don'
internal/pulumi/mock_resource_collector.go:50
↓ 2 callersMethodStop
()
internal/pulumi/mock_resource_collector.go:1015
↓ 2 callersMethodWait
Wait blocks until SignalAndWaitForShutdown is called by the user program.
internal/pulumi/mock_resource_collector.go:921
↓ 2 callersMethodbuildResultRow
buildResultRow renders one table row. Layout: [No.] [Product] [Region] ... scrollable attrs ... [Min Price] [Max Price] The "no / product / region"
internal/tui/views/pricing.go:1225
↓ 2 callersFunctioncompactAttrs
(attrs map[string]string)
internal/estimate/estimator.go:591
↓ 2 callersFunctioncontainsAny
(s string, tags []string)
internal/tui/views/pricing.go:581
↓ 2 callersMethoddoRequest
(method, endpoint string, body io.Reader, contentType string, requireAuth bool)
internal/api/client.go:79
↓ 2 callersFunctiondownloadMetadataCmd
(client *api.Client)
internal/tui/app.go:568
↓ 2 callersFunctionensurePythonDependenciesTo
ensurePythonDependenciesTo is the writer-aware version of ensurePythonDependencies.
cmd/pulumi.go:959
↓ 2 callersFunctionextractReplicas
extractReplicas returns the list of regionName values from the replicas[] array input.
internal/pulumi/resources/aws/dynamodb.go:109
↓ 2 callersFunctionfargateDesiredCount
fargateDesiredCount reads the desiredCount input from the ECS Service record. Returns 1 when not set or unparseable.
internal/pulumi/resources/aws/ecs.go:290
↓ 2 callersFunctionfargateVCPUs
fargateVCPUs converts a Fargate CPU string (millicpu, e.g. "256") to vCPUs. Returns 1 when the value is missing or unparseable so costs are never zero
internal/pulumi/resources/aws/ecs.go:264
↓ 2 callersFunctionformatDecimal
formatDecimal formats a decimal.Decimal for display, trimming trailing zeros but keeping at least `minDecimals` decimal places.
internal/estimate/print.go:889
↓ 2 callersFunctionformatRange
formatRange formats a range value for display, turning "Inf" into "∞" and adding thousand separators for large numbers.
internal/estimate/print.go:680
↓ 2 callersFunctionhasUV
hasUV reports whether the `uv` package manager is available on PATH.
cmd/pulumi.go:812
↓ 2 callersFunctioninjectBorderTitle
injectBorderTitle replaces the first line (top border) of a lipgloss-rendered box with a new top border containing styledTitle.
internal/tui/views/utils.go:76
next →1–100 of 368, ranked by callers