Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/container-registry/harbor-satellite
/ functions
Functions
1,011 in github.com/container-registry/harbor-satellite
⨍
Functions
1,011
◇
Types & classes
204
↓ 247 callers
Method
Run
(ctx context.Context)
internal/satellite/satellite.go:29
↓ 176 callers
Function
HandleAppError
handle AppError and senda structured JSON response.
ground-control/internal/server/handleResponse.go:54
↓ 115 callers
Method
Error
()
ground-control/internal/server/handleResponse.go:15
↓ 79 callers
Method
Close
()
ground-control/internal/spiffe/provider_stub.go:22
↓ 48 callers
Function
WriteJSONError
write JSON error response with given status code and message.
ground-control/internal/server/handleResponse.go:20
↓ 41 callers
Method
HandleFunc
HandleFunc registers a new route with the given pattern and handler function on the router mux
internal/server/router.go:9
↓ 38 callers
Function
newMockServer
(t *testing.T)
ground-control/internal/server/cached_images_test.go:20
↓ 37 callers
Method
String
String implements flag.Value for mirrorFlags
cmd/main.go:29
↓ 35 callers
Function
WriteJSONResponse
write JSON response with given status code and data.
ground-control/internal/server/handleResponse.go:38
↓ 34 callers
Method
QueryRowContext
(context.Context, string, ...interface{})
ground-control/internal/database/db.go:16
↓ 24 callers
Method
ExecContext
(context.Context, string, ...interface{})
ground-control/internal/database/db.go:13
↓ 24 callers
Method
Set
(value string)
cmd/main.go:33
↓ 23 callers
Method
With
(mutators ...func(*Config))
pkg/config/manager.go:63
↓ 22 callers
Function
testContext
()
internal/state/catalog_test.go:19
↓ 21 callers
Function
newTestRegistry
newTestRegistry starts an in-memory OCI registry and returns the server and its host:port address.
internal/state/replicator_test.go:21
↓ 20 callers
Function
NewMockDeviceIdentity
NewMockDeviceIdentity creates a MockDeviceIdentity with default values.
internal/identity/mock.go:21
↓ 19 callers
Function
ValidateAndEnforceDefaults
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 callers
Method
Name
Name returns the name of the process
internal/scheduler/process.go:10
↓ 18 callers
Function
NewAESProvider
NewAESProvider creates a new AESProvider instance.
internal/crypto/aes_provider.go:34
↓ 18 callers
Function
newMockServerWithAuth
(t *testing.T)
ground-control/internal/server/user_handlers_test.go:21
↓ 16 callers
Method
QueryContext
(context.Context, string, ...interface{})
ground-control/internal/database/db.go:15
↓ 15 callers
Method
EncryptConfig
EncryptConfig encrypts a configuration struct and returns encrypted bytes.
internal/secure/config.go:49
↓ 15 callers
Function
FromContext
FromContext extracts the main logger from the context.
internal/logger/logger.go:85
↓ 14 callers
Function
HashSecret
HashSecret computes an argon2id hash of the secret using a random salt.
ground-control/pkg/crypto/argon2.go:22
↓ 14 callers
Function
NewMockProvider
NewMockProvider creates a MockProvider with sensible defaults.
internal/crypto/mock.go:23
↓ 12 callers
Function
pushImage
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 callers
Method
GetName
()
internal/state/artifact.go:11
↓ 11 callers
Function
NewBasicReplicator
(sourceUsername, sourcePassword, sourceRegistry, remoteURL, remoteUsername, remotePassword string, useUnsecure
internal/state/replicator.go:39
↓ 11 callers
Function
VerifySecret
VerifySecret checks if the given secret matches the stored hash.
ground-control/pkg/crypto/argon2.go:35
↓ 11 callers
Method
WithTx
(tx *sql.Tx)
ground-control/internal/database/db.go:27
↓ 11 callers
Function
generateTestCert
(t *testing.T, notBefore, notAfter time.Time)
internal/tls/config_test.go:19
↓ 10 callers
Function
GenerateToken
GenerateToken creates a new join token.
internal/token/token.go:38
↓ 10 callers
Function
GetClient
Returns Harbor v2 client
ground-control/reg/harbor/client.go:18
↓ 10 callers
Function
HashPassword
HashPassword creates an Argon2id hash of the password.
ground-control/internal/auth/password.go:12
↓ 10 callers
Method
SetPendingCRIResults
SetPendingCRIResults stores CRI config results to be sent in the first heartbeat.
internal/state/reporting_process.go:55
↓ 10 callers
Function
newTestEncryptor
()
internal/secure/config_test.go:19
↓ 9 callers
Method
Decrypt
(ciphertext, key []byte)
internal/crypto/aes_provider.go:64
↓ 9 callers
Method
Encrypt
(plaintext, key []byte)
internal/crypto/aes_provider.go:38
↓ 9 callers
Method
GetSatelliteByName
(w http.ResponseWriter, r *http.Request)
ground-control/internal/server/satellite_handlers.go:911
↓ 9 callers
Function
NewMemoryTokenStore
NewMemoryTokenStore creates a new in-memory token store.
internal/token/store.go:30
↓ 9 callers
Function
NewSchedulerWithInterval
NewSchedulerWithInterval creates a new scheduler with a parsed interval string
internal/scheduler/scheduler.go:25
↓ 9 callers
Method
ServeHTTP
ServeHTTP would dispatch the request to the default mux
internal/server/router.go:11
↓ 8 callers
Function
DecodeRequestBody
(r *http.Request, v any)
ground-control/internal/server/helpers.go:203
↓ 8 callers
Method
DecryptConfig
DecryptConfig decrypts encrypted bytes and unmarshals into the provided struct.
internal/secure/config.go:80
↓ 8 callers
Method
DeriveKey
(input, salt []byte, keyLen int)
internal/crypto/aes_provider.go:96
↓ 8 callers
Method
Encode
Encode encodes the token to a string suitable for transmission.
internal/token/token.go:62
↓ 8 callers
Method
Handle
Handle registers a new route with the given pattern and handler on the router mux
internal/server/router.go:7
↓ 8 callers
Function
NewConfigEncryptor
NewConfigEncryptor creates a new ConfigEncryptor.
internal/secure/config.go:34
↓ 8 callers
Function
ReplaceURLHost
ReplaceURLHost replaces the scheme and host:port in raw with those from override.
pkg/config/modifiers.go:128
↓ 8 callers
Method
Replicate
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 callers
Method
Stop
Stop signals the scheduler to stop and waits for all goroutines to complete
internal/scheduler/scheduler.go:120
↓ 8 callers
Function
colorize
Helper function to colorize text
internal/logger/logger.go:97
↓ 7 callers
Function
CreateOrUpdateSatStateArtifact
(ctx context.Context, satelliteName string, states []string, config string)
ground-control/internal/utils/helper.go:202
↓ 7 callers
Function
DefaultConfig
DefaultConfig returns a secure default TLS configuration.
internal/tls/config.go:37
↓ 7 callers
Method
GetFingerprint
()
internal/identity/mock.go:32
↓ 7 callers
Method
GetRepository
()
internal/state/artifact.go:4
↓ 7 callers
Method
GetRobotAccBySatelliteID
(ctx context.Context, satelliteID int32)
ground-control/internal/database/robot_accounts.sql.go:70
↓ 7 callers
Function
NewAESProvider
()
internal/crypto/provider_stub.go:15
↓ 7 callers
Function
NewConfigManager
(configPath, prevConfigPath, token, defaultGroundControlURL string, jsonLog bool, config *Config)
pkg/config/manager.go:46
↓ 7 callers
Method
RequireRole
RequireRole creates middleware that checks if user has the required role
ground-control/internal/server/middleware.go:71
↓ 7 callers
Function
VerifyPassword
VerifyPassword compares a password against an Argon2id hash.
ground-control/internal/auth/password.go:17
↓ 6 callers
Function
AssembleGroupState
(groupName string)
ground-control/internal/utils/helper.go:89
↓ 6 callers
Function
DecodeToken
DecodeToken decodes a token string into a JoinToken.
internal/token/token.go:71
↓ 6 callers
Method
Execute
(ctx context.Context)
internal/state/reporting_process.go:61
↓ 6 callers
Function
FormatRegistryURL
FormatRegistryURL formats the registry URL by trimming the "https://" or "http://" prefix if present
internal/utils/utils.go:91
↓ 6 callers
Method
GetArtifacts
GetArtifacts returns the list of artifacts that needs to be pulled
internal/state/state.go:13
↓ 6 callers
Method
GetChanges
(newState StateReader, log *zerolog.Logger, oldEntites []Entity)
internal/state/state_process.go:182
↓ 6 callers
Method
GetConfigByName
(ctx context.Context, configName string)
ground-control/internal/database/configs.sql.go:73
↓ 6 callers
Method
GetHarborRegistryURL
()
pkg/config/getters.go:181
↓ 6 callers
Method
GetUserByUsername
(ctx context.Context, username string)
ground-control/internal/database/users.sql.go:73
↓ 6 callers
Function
LoadCertificate
LoadCertificate loads a certificate and key from files.
internal/tls/config.go:105
↓ 6 callers
Method
MarkUsed
(tokenID string)
internal/token/store.go:39
↓ 6 callers
Function
NewLinuxDeviceIdentity
()
internal/identity/device_stub.go:12
↓ 6 callers
Function
ResolveCRIConfigs
ResolveCRIConfigs determines which CRI configs to apply. Priority: explicitMirrors (--mirrors flag) > explicit runtimes > auto-detect.
internal/container_runtime/detect-cri.go:24
↓ 6 callers
Method
SatelliteGroupList
(ctx context.Context, satelliteID int32)
ground-control/internal/database/satellite_groups.sql.go:96
↓ 6 callers
Method
Start
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 callers
Function
fetchSatelliteConfig
(ctx context.Context, dbQueries *database.Queries, satelliteID int32)
ground-control/internal/server/helpers.go:260
↓ 6 callers
Method
loadDigestMap
()
internal/state/direct_delivery.go:213
↓ 6 callers
Function
newTestConfigManager
(t *testing.T, cfg *config.Config)
cmd/main_test.go:13
↓ 6 callers
Function
restoreBackup
restoreBackup copies a backup file back to the original path.
internal/container_runtime/backup.go:51
↓ 6 callers
Method
syncHandler
(w http.ResponseWriter, r *http.Request)
ground-control/internal/server/satellite_handlers.go:562
↓ 6 callers
Function
writeJSON
(t *testing.T, w http.ResponseWriter, v any)
internal/state/catalog_test.go:24
↓ 5 callers
Method
Cleanup
Cleanup removes expired tokens and rate limit entries.
internal/token/store.go:97
↓ 5 callers
Function
DeleteRobotAccount
(ctx context.Context, robotID int64)
ground-control/reg/harbor/robot.go:64
↓ 5 callers
Method
DeriveKey
(input, salt []byte, keyLen int)
internal/crypto/mock.go:61
↓ 5 callers
Method
Encrypt
(plaintext, key []byte)
internal/crypto/mock.go:29
↓ 5 callers
Method
GenerateKeyPair
()
internal/crypto/aes_provider.go:137
↓ 5 callers
Method
GetGroupByID
(ctx context.Context, id int32)
ground-control/internal/database/groups.sql.go:71
↓ 5 callers
Method
GetGroupByName
(ctx context.Context, groupName string)
ground-control/internal/database/groups.sql.go:90
↓ 5 callers
Method
IsUsed
(tokenID string)
internal/token/store.go:51
↓ 5 callers
Function
IsValidName
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 callers
Function
LoadCAPool
LoadCAPool loads a CA certificate pool from a file.
internal/tls/config.go:122
↓ 5 callers
Method
RecordAttempt
(ip string)
internal/token/store.go:80
↓ 5 callers
Method
ResolveGroundControlURL
You MUST use ResolveGroundControlURL to get the ground control URL.
pkg/config/getters.go:122
↓ 5 callers
Function
SaveState
SaveState writes the current stateMap and configDigest to disk.
internal/state/state_persistence.go:24
↓ 5 callers
Method
Stop
Stop gracefully stops the SPIRE server subprocess.
ground-control/internal/spiffe/embedded_server.go:83
↓ 5 callers
Function
UpdateRobotProjects
Update robot account
ground-control/internal/utils/helper.go:65
↓ 5 callers
Method
Use
Use adds middleware to the default router
internal/server/router.go:13
↓ 5 callers
Method
Validate
Validate checks if the token is valid.
internal/token/token.go:95
↓ 5 callers
Function
backupFile
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