MCPcopy Index your code

hub / github.com/container-registry/harbor-satellite / functions

Functions1,011 in github.com/container-registry/harbor-satellite

↓ 247 callersMethodRun
(ctx context.Context)
internal/satellite/satellite.go:29
↓ 176 callersFunctionHandleAppError
handle AppError and senda structured JSON response.
ground-control/internal/server/handleResponse.go:54
↓ 115 callersMethodError
()
ground-control/internal/server/handleResponse.go:15
↓ 79 callersMethodClose
()
ground-control/internal/spiffe/provider_stub.go:22
↓ 48 callersFunctionWriteJSONError
write JSON error response with given status code and message.
ground-control/internal/server/handleResponse.go:20
↓ 41 callersMethodHandleFunc
HandleFunc registers a new route with the given pattern and handler function on the router mux
internal/server/router.go:9
↓ 38 callersFunctionnewMockServer
(t *testing.T)
ground-control/internal/server/cached_images_test.go:20
↓ 37 callersMethodString
String implements flag.Value for mirrorFlags
cmd/main.go:29
↓ 35 callersFunctionWriteJSONResponse
write JSON response with given status code and data.
ground-control/internal/server/handleResponse.go:38
↓ 34 callersMethodQueryRowContext
(context.Context, string, ...interface{})
ground-control/internal/database/db.go:16
↓ 24 callersMethodExecContext
(context.Context, string, ...interface{})
ground-control/internal/database/db.go:13
↓ 24 callersMethodSet
(value string)
cmd/main.go:33
↓ 23 callersMethodWith
(mutators ...func(*Config))
pkg/config/manager.go:63
↓ 22 callersFunctiontestContext
()
internal/state/catalog_test.go:19
↓ 21 callersFunctionnewTestRegistry
newTestRegistry starts an in-memory OCI registry and returns the server and its host:port address.
internal/state/replicator_test.go:21
↓ 20 callersFunctionNewMockDeviceIdentity
NewMockDeviceIdentity creates a MockDeviceIdentity with default values.
internal/identity/mock.go:21
↓ 19 callersFunctionValidateAndEnforceDefaults
ValidateAndEnforceDefaults validates and normalizes the given config. It applies default values where required, verifies URLs, cron expressions, and h
pkg/config/validate.go:19
↓ 18 callersMethodName
Name returns the name of the process
internal/scheduler/process.go:10
↓ 18 callersFunctionNewAESProvider
NewAESProvider creates a new AESProvider instance.
internal/crypto/aes_provider.go:34
↓ 18 callersFunctionnewMockServerWithAuth
(t *testing.T)
ground-control/internal/server/user_handlers_test.go:21
↓ 16 callersMethodQueryContext
(context.Context, string, ...interface{})
ground-control/internal/database/db.go:15
↓ 15 callersMethodEncryptConfig
EncryptConfig encrypts a configuration struct and returns encrypted bytes.
internal/secure/config.go:49
↓ 15 callersFunctionFromContext
FromContext extracts the main logger from the context.
internal/logger/logger.go:85
↓ 14 callersFunctionHashSecret
HashSecret computes an argon2id hash of the secret using a random salt.
ground-control/pkg/crypto/argon2.go:22
↓ 14 callersFunctionNewMockProvider
NewMockProvider creates a MockProvider with sensible defaults.
internal/crypto/mock.go:23
↓ 12 callersFunctionpushImage
pushImage pushes a random image with the given number of layers to the registry at the specified reference. Returns the pushed image.
internal/state/replicator_test.go:30
↓ 11 callersMethodGetName
()
internal/state/artifact.go:11
↓ 11 callersFunctionNewBasicReplicator
(sourceUsername, sourcePassword, sourceRegistry, remoteURL, remoteUsername, remotePassword string, useUnsecure
internal/state/replicator.go:39
↓ 11 callersFunctionVerifySecret
VerifySecret checks if the given secret matches the stored hash.
ground-control/pkg/crypto/argon2.go:35
↓ 11 callersMethodWithTx
(tx *sql.Tx)
ground-control/internal/database/db.go:27
↓ 11 callersFunctiongenerateTestCert
(t *testing.T, notBefore, notAfter time.Time)
internal/tls/config_test.go:19
↓ 10 callersFunctionGenerateToken
GenerateToken creates a new join token.
internal/token/token.go:38
↓ 10 callersFunctionGetClient
Returns Harbor v2 client
ground-control/reg/harbor/client.go:18
↓ 10 callersFunctionHashPassword
HashPassword creates an Argon2id hash of the password.
ground-control/internal/auth/password.go:12
↓ 10 callersMethodSetPendingCRIResults
SetPendingCRIResults stores CRI config results to be sent in the first heartbeat.
internal/state/reporting_process.go:55
↓ 10 callersFunctionnewTestEncryptor
()
internal/secure/config_test.go:19
↓ 9 callersMethodDecrypt
(ciphertext, key []byte)
internal/crypto/aes_provider.go:64
↓ 9 callersMethodEncrypt
(plaintext, key []byte)
internal/crypto/aes_provider.go:38
↓ 9 callersMethodGetSatelliteByName
(w http.ResponseWriter, r *http.Request)
ground-control/internal/server/satellite_handlers.go:911
↓ 9 callersFunctionNewMemoryTokenStore
NewMemoryTokenStore creates a new in-memory token store.
internal/token/store.go:30
↓ 9 callersFunctionNewSchedulerWithInterval
NewSchedulerWithInterval creates a new scheduler with a parsed interval string
internal/scheduler/scheduler.go:25
↓ 9 callersMethodServeHTTP
ServeHTTP would dispatch the request to the default mux
internal/server/router.go:11
↓ 8 callersFunctionDecodeRequestBody
(r *http.Request, v any)
ground-control/internal/server/helpers.go:203
↓ 8 callersMethodDecryptConfig
DecryptConfig decrypts encrypted bytes and unmarshals into the provided struct.
internal/secure/config.go:80
↓ 8 callersMethodDeriveKey
(input, salt []byte, keyLen int)
internal/crypto/aes_provider.go:96
↓ 8 callersMethodEncode
Encode encodes the token to a string suitable for transmission.
internal/token/token.go:62
↓ 8 callersMethodHandle
Handle registers a new route with the given pattern and handler on the router mux
internal/server/router.go:7
↓ 8 callersFunctionNewConfigEncryptor
NewConfigEncryptor creates a new ConfigEncryptor.
internal/secure/config.go:34
↓ 8 callersFunctionReplaceURLHost
ReplaceURLHost replaces the scheme and host:port in raw with those from override.
pkg/config/modifiers.go:128
↓ 8 callersMethodReplicate
Replicate replicates images from the source registry to the local registry. Before pulling, it checks which blobs already exist at the destination and
internal/state/replicator.go:79
↓ 8 callersMethodStop
Stop signals the scheduler to stop and waits for all goroutines to complete
internal/scheduler/scheduler.go:120
↓ 8 callersFunctioncolorize
Helper function to colorize text
internal/logger/logger.go:97
↓ 7 callersFunctionCreateOrUpdateSatStateArtifact
(ctx context.Context, satelliteName string, states []string, config string)
ground-control/internal/utils/helper.go:202
↓ 7 callersFunctionDefaultConfig
DefaultConfig returns a secure default TLS configuration.
internal/tls/config.go:37
↓ 7 callersMethodGetFingerprint
()
internal/identity/mock.go:32
↓ 7 callersMethodGetRepository
()
internal/state/artifact.go:4
↓ 7 callersMethodGetRobotAccBySatelliteID
(ctx context.Context, satelliteID int32)
ground-control/internal/database/robot_accounts.sql.go:70
↓ 7 callersFunctionNewAESProvider
()
internal/crypto/provider_stub.go:15
↓ 7 callersFunctionNewConfigManager
(configPath, prevConfigPath, token, defaultGroundControlURL string, jsonLog bool, config *Config)
pkg/config/manager.go:46
↓ 7 callersMethodRequireRole
RequireRole creates middleware that checks if user has the required role
ground-control/internal/server/middleware.go:71
↓ 7 callersFunctionVerifyPassword
VerifyPassword compares a password against an Argon2id hash.
ground-control/internal/auth/password.go:17
↓ 6 callersFunctionAssembleGroupState
(groupName string)
ground-control/internal/utils/helper.go:89
↓ 6 callersFunctionDecodeToken
DecodeToken decodes a token string into a JoinToken.
internal/token/token.go:71
↓ 6 callersMethodExecute
(ctx context.Context)
internal/state/reporting_process.go:61
↓ 6 callersFunctionFormatRegistryURL
FormatRegistryURL formats the registry URL by trimming the "https://" or "http://" prefix if present
internal/utils/utils.go:91
↓ 6 callersMethodGetArtifacts
GetArtifacts returns the list of artifacts that needs to be pulled
internal/state/state.go:13
↓ 6 callersMethodGetChanges
(newState StateReader, log *zerolog.Logger, oldEntites []Entity)
internal/state/state_process.go:182
↓ 6 callersMethodGetConfigByName
(ctx context.Context, configName string)
ground-control/internal/database/configs.sql.go:73
↓ 6 callersMethodGetHarborRegistryURL
()
pkg/config/getters.go:181
↓ 6 callersMethodGetUserByUsername
(ctx context.Context, username string)
ground-control/internal/database/users.sql.go:73
↓ 6 callersFunctionLoadCertificate
LoadCertificate loads a certificate and key from files.
internal/tls/config.go:105
↓ 6 callersMethodMarkUsed
(tokenID string)
internal/token/store.go:39
↓ 6 callersFunctionNewLinuxDeviceIdentity
()
internal/identity/device_stub.go:12
↓ 6 callersFunctionResolveCRIConfigs
ResolveCRIConfigs determines which CRI configs to apply. Priority: explicitMirrors (--mirrors flag) > explicit runtimes > auto-detect.
internal/container_runtime/detect-cri.go:24
↓ 6 callersMethodSatelliteGroupList
(ctx context.Context, satelliteID int32)
ground-control/internal/database/satellite_groups.sql.go:96
↓ 6 callersMethodStart
Start launches Run in a goroutine with proper WaitGroup tracking. wg.Add must happen before the goroutine to avoid a race with Stop.
internal/scheduler/scheduler.go:45
↓ 6 callersFunctionfetchSatelliteConfig
(ctx context.Context, dbQueries *database.Queries, satelliteID int32)
ground-control/internal/server/helpers.go:260
↓ 6 callersMethodloadDigestMap
()
internal/state/direct_delivery.go:213
↓ 6 callersFunctionnewTestConfigManager
(t *testing.T, cfg *config.Config)
cmd/main_test.go:13
↓ 6 callersFunctionrestoreBackup
restoreBackup copies a backup file back to the original path.
internal/container_runtime/backup.go:51
↓ 6 callersMethodsyncHandler
(w http.ResponseWriter, r *http.Request)
ground-control/internal/server/satellite_handlers.go:562
↓ 6 callersFunctionwriteJSON
(t *testing.T, w http.ResponseWriter, v any)
internal/state/catalog_test.go:24
↓ 5 callersMethodCleanup
Cleanup removes expired tokens and rate limit entries.
internal/token/store.go:97
↓ 5 callersFunctionDeleteRobotAccount
(ctx context.Context, robotID int64)
ground-control/reg/harbor/robot.go:64
↓ 5 callersMethodDeriveKey
(input, salt []byte, keyLen int)
internal/crypto/mock.go:61
↓ 5 callersMethodEncrypt
(plaintext, key []byte)
internal/crypto/mock.go:29
↓ 5 callersMethodGenerateKeyPair
()
internal/crypto/aes_provider.go:137
↓ 5 callersMethodGetGroupByID
(ctx context.Context, id int32)
ground-control/internal/database/groups.sql.go:71
↓ 5 callersMethodGetGroupByName
(ctx context.Context, groupName string)
ground-control/internal/database/groups.sql.go:90
↓ 5 callersMethodIsUsed
(tokenID string)
internal/token/store.go:51
↓ 5 callersFunctionIsValidName
IsValidName validates if a name meets the requirements: 1. 1-255 characters long 2. Only lowercase characters, numbers, and ._- are allowed 3. Must st
ground-control/internal/utils/helper.go:312
↓ 5 callersFunctionLoadCAPool
LoadCAPool loads a CA certificate pool from a file.
internal/tls/config.go:122
↓ 5 callersMethodRecordAttempt
(ip string)
internal/token/store.go:80
↓ 5 callersMethodResolveGroundControlURL
You MUST use ResolveGroundControlURL to get the ground control URL.
pkg/config/getters.go:122
↓ 5 callersFunctionSaveState
SaveState writes the current stateMap and configDigest to disk.
internal/state/state_persistence.go:24
↓ 5 callersMethodStop
Stop gracefully stops the SPIRE server subprocess.
ground-control/internal/spiffe/embedded_server.go:83
↓ 5 callersFunctionUpdateRobotProjects
Update robot account
ground-control/internal/utils/helper.go:65
↓ 5 callersMethodUse
Use adds middleware to the default router
internal/server/router.go:13
↓ 5 callersMethodValidate
Validate checks if the token is valid.
internal/token/token.go:95
↓ 5 callersFunctionbackupFile
backupFile creates a timestamped backup of the given file. Returns the backup path, or empty string if the source does not exist.
internal/container_runtime/backup.go:15
next →1–100 of 1,011, ranked by callers