MCPcopy Create free account

hub / github.com/QQ3221197721/cloudai-fusion / functions

Functions4,559 in github.com/QQ3221197721/cloudai-fusion

↓ 880 callersMethodError
Error implements the error interface.
pkg/errors/errors.go:73
↓ 241 callersMethodAdd
Add adds a request to the queue (deduplication: if already queued, skip).
pkg/controller/queue.go:100
↓ 165 callersFunctionNowUTC
NowUTC returns current time in UTC
pkg/common/types.go:175
↓ 143 callersMethodSet
Set stores a value in the cache with a TTL.
pkg/cache/cache.go:58
↓ 126 callersMethodJSON
JSON returns the version information as a JSON string.
pkg/version/version.go:104
↓ 120 callersFunctionNewUUID
============================================================================ Utility Functions =======================================================
pkg/common/types.go:170
↓ 108 callersMethodget
(self, key: str, default: Optional[str] = None)
ai/tracing.py:250
↓ 96 callersMethodString
()
pkg/store/twopc.go:92
↓ 87 callersMethodContains
Contains checks if an element is in the set (add_tags - rem_tags non-empty)
pkg/edge/offline_enhanced.go:514
↓ 81 callersMethodDone
Done marks a request as done processing. If the request was re-added while being processed, it will be enqueued again.
pkg/controller/queue.go:202
↓ 79 callersMethodGet
Get retrieves a value from the cache. Returns (nil, nil) if the key is not found (cache miss).
pkg/cache/cache.go:55
↓ 64 callersMethodAdd
Add queues a record for batch insert. Flushes automatically when buffer is full.
pkg/store/query_optimizer.go:283
↓ 60 callersMethodClose
Close releases resources.
pkg/tsdb/tsdb.go:129
↓ 58 callersMethodContext
()
pkg/tracing/grpc.go:173
↓ 58 callersMethodRun
Lifecycle
pkg/scheduler/interfaces.go:14
↓ 57 callersMethodMetadata
Metadata returns the plugin's metadata.
pkg/plugin/types.go:117
↓ 47 callersFunctionRequirePermission
RequirePermission returns middleware that checks for specific permission
pkg/auth/auth.go:430
↓ 44 callersMethodStop
Stop gracefully shuts down the plugin.
pkg/plugin/types.go:127
↓ 43 callersMethodError
()
pkg/plugin/types.go:245
↓ 43 callersMethodServeHTTP
ServeHTTP starts an HTTP health check server.
pkg/resilience/health.go:202
↓ 37 callersFunctionNewEngine
NewEngine creates a new scheduling engine.
pkg/scheduler/engine.go:96
↓ 37 callersFunctionSuccessResult
SuccessResult returns a success result for the given plugin.
pkg/plugin/types.go:195
↓ 34 callersMethodIsZero
IsZero returns true if the result indicates no requeue is needed.
pkg/controller/types.go:103
↓ 31 callersMethodQuery
Query retrieves time-series data matching the query parameters.
pkg/tsdb/tsdb.go:120
↓ 30 callersMethodClose
Close releases cache resources.
pkg/cache/cache.go:70
↓ 30 callersMethodHasErrors
HasErrors returns true if there are validation errors.
pkg/validation/validator.go:43
↓ 30 callersMethodRun
Run starts the leader election loop. Blocks until ctx is cancelled. Calls the OnStartedLeading callback when this instance becomes the leader.
pkg/election/election.go:34
↓ 30 callersFunctioncreateTestTenant
(t *testing.T, m *Manager, name string, tier TenantTier)
pkg/tenant/tenant_test.go:18
↓ 29 callersFunctionnewTestManager
()
pkg/tenant/tenant_test.go:9
↓ 28 callersMethodError
Error implements the error interface.
pkg/validation/validator.go:57
↓ 28 callersMethodIsSuccess
IsSuccess returns true if the result indicates success.
pkg/plugin/types.go:177
↓ 28 callersFunctionNewResult
NewResult creates a new empty validation result.
pkg/validation/validator.go:26
↓ 27 callersFunctionDefaultSelfHealConfig
DefaultSelfHealConfig returns sensible defaults.
pkg/aiops/selfheal.go:45
↓ 26 callersMethodAdd
Add adds an element with a unique tag
pkg/edge/offline_enhanced.go:487
↓ 26 callersFunctionNewSelfHealingEngine
============================================================================ Constructor & Core Operations ===========================================
pkg/aiops/selfheal.go:231
↓ 26 callersMethodSetCondition
SetCondition adds or updates a condition in the status.
pkg/controller/types.go:262
↓ 26 callersMethodString
()
pkg/cluster/raft.go:49
↓ 26 callersFunctionnewTestLogger
============================================================================ Controller Manager tests ================================================
pkg/controller/controller_test.go:526
↓ 25 callersMethodRegister
============================================================================ Registration ============================================================
pkg/plugin/registry.go:39
↓ 25 callersMethodStart
Start is called after Init to begin the plugin's operation.
pkg/plugin/types.go:124
↓ 24 callersFunctionNewCycleState
NewCycleState creates an empty CycleState.
pkg/plugin/scheduler_ext.go:60
↓ 24 callersMethoddo
(t *testing.T, method, path, body string)
tests/e2e/e2e_test.go:77
↓ 23 callersFunctionnewTestManager
()
pkg/disaster/disaster_test.go:10
↓ 22 callersMethodState
State returns the current circuit breaker state.
pkg/resilience/circuit.go:113
↓ 22 callersMethodWrite
Write writes metric samples to the time-series database.
pkg/tsdb/tsdb.go:117
↓ 22 callersFunctionmakeTestFactory
============================================================================ Registry Tests ==========================================================
pkg/plugin/plugin_test.go:184
↓ 21 callersMethodDelete
Delete removes a key from the cache.
pkg/cache/cache.go:61
↓ 21 callersFunctionNewEvent
NewEvent creates a new event with the given topic, type, source, and payload.
pkg/eventbus/types.go:52
↓ 21 callersFunctionNewManager
NewManager creates a new feature flag manager with built-in defaults. Load order (later overrides earlier): 1. Built-in defaults (ProfileStandard) 2.
pkg/feature/flags.go:96
↓ 21 callersFunctionNewRegistry
NewRegistry creates an empty Registry.
pkg/plugin/registry.go:24
↓ 21 callersMethodStats
Stats returns cache statistics.
pkg/cache/cache.go:73
↓ 21 callersFunctionmin
min returns the smaller of two ints.
pkg/gitops/manager.go:613
↓ 21 callersFunctionnewTestManager
()
pkg/enterprise/enterprise_test.go:9
↓ 20 callersMethodClose
Close shuts down the event bus and releases resources.
pkg/eventbus/bus.go:36
↓ 20 callersFunctionDefaultAutoscaleConfig
DefaultAutoscaleConfig returns sensible defaults.
pkg/aiops/autoscale.go:49
↓ 20 callersMethodWithContext
WithContext returns a logrus.Entry enriched with trace/request IDs from context.
pkg/logging/logger.go:122
↓ 19 callersFunctionDefaultManagerConfig
DefaultManagerConfig returns sensible defaults.
pkg/observability/manager.go:27
↓ 19 callersFunctionNewManager
NewManager creates a new observability manager.
pkg/observability/manager.go:55
↓ 19 callersFunctionNewPredictiveAutoscaler
NewPredictiveAutoscaler creates a new predictive auto-scaler.
pkg/aiops/autoscale.go:161
↓ 19 callersMethodUse
Use adds a middleware to the bus.
pkg/eventbus/nats.go:171
↓ 18 callersFunctionDefaultManagerConfig
DefaultManagerConfig returns sensible defaults.
pkg/multicluster/manager.go:29
↓ 18 callersMethodExecute
Execute runs fn through the circuit breaker. Returns ErrCircuitOpen if the circuit is open.
pkg/resilience/circuit.go:101
↓ 18 callersFunctionNew
New creates a new control plane service.
pkg/controlplane/service.go:78
↓ 18 callersFunctionNewBasePlugin
NewBasePlugin creates a BasePlugin with the given metadata.
pkg/plugin/types.go:215
↓ 18 callersFunctionNewManager
NewManager creates a new multi-cluster manager.
pkg/multicluster/manager.go:56
↓ 18 callersMethoddo
(method, path, body string)
tests/integration/integration_test.go:69
↓ 17 callersMethodCreate
Create creates a new workload.
pkg/workload/interfaces.go:14
↓ 17 callersMethodexpectStatus
(t *testing.T, w *httptest.ResponseRecorder, expected int)
tests/e2e/e2e_test.go:91
↓ 17 callersFunctionnewTestCentralizedManager
()
pkg/logging/centralized_test.go:10
↓ 17 callersFunctionnewTestHardeningManager
()
pkg/security/hardening_test.go:8
↓ 17 callersFunctionnewTestRouter
newTestRouter creates a router wired with all mock services.
pkg/api/router_test.go:20
↓ 16 callersMethodAddError
AddError appends a field validation error.
pkg/validation/validator.go:31
↓ 16 callersFunctionDefaultCanaryConfig
DefaultCanaryConfig returns production-grade canary defaults.
pkg/deploy/deploy.go:98
↓ 16 callersFunctionEncodeState
============================================================================ State / Action Encoding =================================================
pkg/scheduler/rl_optimizer.go:100
↓ 16 callersMethodGetByExtension
GetByExtension returns all plugins registered for the given extension point, ordered by priority (ascending).
pkg/plugin/registry.go:162
↓ 16 callersFunctionNewAliyunProvider
(cfg config.CloudProviderConfig)
pkg/cloud/providers.go:21
↓ 15 callersMethodDB
DB returns the underlying GORM DB (for advanced queries)
pkg/store/store.go:103
↓ 15 callersFunctionNewAzureProvider
(cfg config.CloudProviderConfig)
pkg/cloud/providers.go:446
↓ 15 callersFunctionNewCanaryController
NewCanaryController creates a new canary deployment controller.
pkg/deploy/deploy.go:149
↓ 15 callersFunctionNewMemoryCache
NewMemoryCache creates an in-memory LRU cache.
pkg/cache/cache.go:149
↓ 15 callersMethodRegisterReconciler
RegisterReconciler adds a reconciler to the manager. Must be called before Start().
pkg/controller/manager.go:104
↓ 15 callersMethodSubmitWorkload
SubmitWorkload adds a workload directly to the scheduling queue (for programmatic use / tests).
pkg/scheduler/engine.go:672
↓ 15 callersFunctionassertCode
============================================================================ Helpers =================================================================
pkg/errors/errors_test.go:267
↓ 15 callersFunctionnewTestManager
()
pkg/ha/ha_test.go:11
↓ 14 callersMethodListPods
Pod operations
pkg/k8s/interfaces.go:20
↓ 14 callersFunctionNewAWSProvider
(cfg config.CloudProviderConfig)
pkg/cloud/providers.go:228
↓ 14 callersFunctionNewHuaweiProvider
(cfg config.CloudProviderConfig)
pkg/cloud/providers_extended.go:219
↓ 14 callersFunctionNewManager
NewManager creates a new security manager with real sub-engines
pkg/security/manager.go:203
↓ 14 callersFunctionNewRouter
NewRouter creates the main API router with all routes configured
pkg/api/router.go:57
↓ 14 callersFunctionNewTencentProvider
(cfg config.CloudProviderConfig)
pkg/cloud/providers_extended.go:27
↓ 14 callersFunctionNewTestRouterConfig
============================================================================ NewTestRouterConfig returns a RouterConfig with all mocks pre-populated.
pkg/testutil/mocks.go:750
↓ 14 callersMethodRecordEvent
RecordEvent stores an audit event.
pkg/audit/audit.go:157
↓ 14 callersMethodRegisterEventTrigger
RegisterEventTrigger maps an event bus topic to a controller name. When an event matching the topic arrives, the control plane will enqueue a reconcil
pkg/controlplane/service.go:117
↓ 14 callersMethodTracer
Tracer returns the named tracer.
pkg/tracing/tracing.go:159
↓ 14 callersMethodreset
Reset environment to initial state.
ai/scheduler/train.py:64
↓ 13 callersMethodCount
Count returns total stored events.
pkg/auth/audit.go:344
↓ 13 callersMethodCreateApplication
============================================================================ Application Lifecycle ===================================================
pkg/gitops/manager.go:83
↓ 13 callersMethodCreateBackup
============================================================================ Backup Operations =======================================================
pkg/disaster/disaster.go:252
↓ 13 callersFunctionDefaultCapacityPlanConfig
DefaultCapacityPlanConfig returns sensible defaults.
pkg/aiops/capacity.go:46
↓ 13 callersFunctionDefaultManagerConfig
DefaultManagerConfig returns sensible defaults.
pkg/gitops/manager.go:34
next →1–100 of 4,559, ranked by callers