Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/brizzbuzz/opnix
/ functions
Functions
198 in github.com/brizzbuzz/opnix
⨍
Functions
198
◇
Types & classes
39
↓ 40 callers
Method
Error
()
internal/errors/errors.go:125
↓ 32 callers
Method
Run
()
cmd/opnix/main.go:19
↓ 26 callers
Function
ConfigValidationError
ConfigValidationError creates detailed validation errors with suggestions
internal/errors/errors.go:181
↓ 23 callers
Function
FileOperationError
FileOperationError creates errors for file system operations
internal/errors/errors.go:192
↓ 17 callers
Function
ConfigError
Error constructors for common scenarios ConfigError creates errors related to configuration parsing and validation
internal/errors/errors.go:171
↓ 13 callers
Function
NewValidator
NewValidator creates a new validator instance
internal/validation/validator.go:18
↓ 10 callers
Function
NewHashStore
NewHashStore creates or loads a hash store from disk
internal/systemd/integration.go:85
↓ 8 callers
Method
Process
(cfg *config.Config)
internal/secrets/processor.go:49
↓ 8 callers
Function
TokenError
TokenError creates token-related errors with setup instructions
internal/errors/errors.go:315
↓ 8 callers
Function
WrapWithSuggestions
WrapWithSuggestions wraps an error and adds suggestions
internal/errors/errors.go:406
↓ 8 callers
Method
hasChanged
HasChanged checks if a secret has changed since last deployment
internal/systemd/integration.go:184
↓ 7 callers
Method
save
save writes the hash store to disk
internal/systemd/integration.go:135
↓ 6 callers
Function
NewProcessor
(client SecretClient, outputDir string)
internal/secrets/processor.go:33
↓ 5 callers
Function
GetToken
GetToken retrieves token from environment or file
internal/onepass/client.go:46
↓ 5 callers
Function
Load
Load loads a single config file
internal/config/config.go:69
↓ 5 callers
Method
Name
()
cmd/opnix/main.go:17
↓ 5 callers
Method
ProcessSecretChanges
ProcessSecretChanges processes secrets and determines which services need restart
internal/systemd/integration.go:293
↓ 5 callers
Function
UserGroupError
UserGroupError creates errors for user/group validation issues
internal/errors/errors.go:268
↓ 5 callers
Function
containsString
Helper functions
internal/validation/validator_test.go:625
↓ 4 callers
Function
NewManager
NewManager creates a new systemd integration manager
internal/systemd/integration.go:56
↓ 4 callers
Function
OnePasswordError
OnePasswordError creates errors for 1Password integration issues
internal/errors/errors.go:225
↓ 4 callers
Function
ServiceError
ServiceError creates errors for systemd service operations
internal/errors/errors.go:370
↓ 4 callers
Method
ValidateConfigStruct
ValidateConfigStruct validates a config with slice of SecretData
internal/validation/validator.go:37
↓ 4 callers
Function
ValidationError
ValidationError creates general validation errors
internal/errors/errors.go:301
↓ 4 callers
Method
calculateHash
calculateHash calculates SHA-256 hash of a file's content
internal/systemd/integration.go:158
↓ 4 callers
Function
contains
Helper function to check if string contains substring
internal/secrets/processor_test.go:373
↓ 4 callers
Function
getDirPath
Helper functions
internal/errors/errors.go:337
↓ 4 callers
Function
mockSystemdIntegration
mockSystemdIntegration creates a test systemd integration config
internal/systemd/integration_test.go:14
↓ 4 callers
Function
writeFakeSystemctl
(t *testing.T, tempDir string)
internal/systemd/integration_test.go:686
↓ 3 callers
Method
ExitCode
()
internal/errors/errors.go:26
↓ 3 callers
Method
ExtractServiceActions
ExtractServiceActions extracts service actions from secret configuration
internal/systemd/integration.go:230
↓ 3 callers
Function
LoadMultiple
LoadMultiple loads and merges multiple config files (GitHub #3)
internal/config/config.go:99
↓ 3 callers
Function
NewClient
(tokenFile string)
internal/onepass/client.go:80
↓ 3 callers
Method
ResolveSecret
(reference string)
internal/onepass/client.go:100
↓ 3 callers
Method
Unwrap
()
internal/errors/errors.go:164
↓ 3 callers
Method
Validate
Validate checks for duplicate secret paths across all configs Deprecated: Use validation.Validator.ValidateConfigStruct() for comprehensive validation
internal/config/config.go:165
↓ 3 callers
Method
convertToValidationSecrets
convertToValidationSecrets converts config secrets to validation format
internal/config/config.go:49
↓ 3 callers
Function
min
min returns the minimum of two integers
internal/validation/validator.go:634
↓ 2 callers
Method
Process
(*config.Config)
cmd/opnix/secret.go:20
↓ 2 callers
Method
SetDryRun
SetDryRun enables dry-run mode for testing
internal/systemd/integration.go:511
↓ 2 callers
Method
ValidateTokenFile
ValidateTokenFile validates the token file exists and has correct permissions
internal/validation/validator.go:642
↓ 2 callers
Function
Wrap
Wrap provides a simple way to wrap existing errors with OpNix context
internal/errors/errors.go:356
↓ 2 callers
Function
containsStringSlice
(slice []string, item string)
internal/validation/validator_test.go:654
↓ 2 callers
Method
executeServiceAction
executeServiceAction executes a single service action with retry logic
internal/systemd/integration.go:456
↓ 2 callers
Method
getAvailableGroups
getAvailableGroups returns a list of available system groups
internal/validation/validator.go:576
↓ 2 callers
Method
getAvailableUsers
getAvailableUsers returns a list of available system users
internal/validation/validator.go:551
↓ 2 callers
Method
getServiceStatus
(serviceName string)
internal/systemd/integration.go:542
↓ 2 callers
Function
getUserGroupCommand
(entityType string)
internal/errors/errors.go:348
↓ 2 callers
Function
handleError
handleError provides user-friendly error output
cmd/opnix/main.go:69
↓ 2 callers
Function
isServiceGroup
isServiceGroup checks if a groupname looks like a service group
internal/validation/validator.go:617
↓ 2 callers
Function
isServiceUser
isServiceUser checks if a username looks like a service user
internal/validation/validator.go:600
↓ 2 callers
Function
parseEnvConfig
(data []byte)
cmd/opnix/main.go:376
↓ 2 callers
Function
printUsage
(cmds []command)
cmd/opnix/main.go:32
↓ 2 callers
Method
resolveSecretPath
resolveSecretPath resolves the final path for a secret based on custom path logic (legacy)
internal/secrets/processor.go:303
↓ 2 callers
Function
retryOperation
(attempts int, operation string, fn func() (T, error), shouldRetry ...func(error) bool)
internal/onepass/client.go:156
↓ 2 callers
Method
shouldTrim
()
cmd/opnix/main.go:133
↓ 2 callers
Method
substituteVariables
substituteVariables replaces template variables in a path
internal/secrets/processor.go:450
↓ 2 callers
Method
substituteVariables
substituteVariables replaces template variables in a path
internal/validation/validator.go:120
↓ 2 callers
Method
validateAbsolutePath
validateAbsolutePath validates absolute paths for security
internal/validation/validator.go:403
↓ 2 callers
Method
validateGroup
validateGroup validates that a group exists
internal/validation/validator.go:469
↓ 2 callers
Method
validateMode
validateMode validates file permission mode
internal/validation/validator.go:491
↓ 2 callers
Method
validatePath
validatePath validates secret path and checks for duplicates
internal/validation/validator.go:348
↓ 2 callers
Method
validateReference
validateReference validates 1Password reference format
internal/validation/validator.go:260
↓ 2 callers
Method
validateSecretPath
validateSecretPath validates that the resolved path is secure and accessible
internal/secrets/processor.go:343
↓ 2 callers
Method
validateUser
validateUser validates that a user exists
internal/validation/validator.go:447
↓ 1 callers
Function
ExitCode
(err error)
internal/errors/errors.go:101
↓ 1 callers
Method
Init
([]string)
cmd/opnix/main.go:18
↓ 1 callers
Method
ProcessSecretChanges
([]config.Secret, map[string]string)
cmd/opnix/secret.go:24
↓ 1 callers
Method
ResolveAll
(context.Context, []string)
internal/onepass/client.go:22
↓ 1 callers
Method
ResolveSecret
(reference string)
internal/secrets/processor_test.go:19
↓ 1 callers
Method
ResolveSecret
(string)
cmd/opnix/main.go:116
↓ 1 callers
Method
ResolveSecrets
(references []string)
internal/secrets/processor.go:18
↓ 1 callers
Method
ResolveSecrets
(references []string)
internal/onepass/client.go:108
↓ 1 callers
Method
buildResolver
(cfg *envConfig)
cmd/opnix/main.go:262
↓ 1 callers
Method
checkOutputDirectory
checkOutputDirectory ensures the output directory is accessible
cmd/opnix/secret.go:176
↓ 1 callers
Method
checkWritePermissions
checkWritePermissions verifies we can write to the directory
cmd/opnix/token.go:66
↓ 1 callers
Function
classifyResolveReferenceError
(reference string, err onepassword.ResolveReferenceError)
internal/onepass/client.go:202
↓ 1 callers
Function
classifyTopLevelProviderError
(err error)
internal/onepass/client.go:186
↓ 1 callers
Method
collectRecoveryActions
(configuredActions, _ []ServiceAction)
internal/systemd/integration.go:377
↓ 1 callers
Function
containsAtIndex
(s, substr string)
internal/secrets/processor_test.go:382
↓ 1 callers
Method
createSymlinks
createSymlinks creates symlinks for a secret file
internal/secrets/processor.go:405
↓ 1 callers
Function
dotenvValue
(value string)
cmd/opnix/main.go:537
↓ 1 callers
Method
ensureDirectoryWritable
ensureDirectoryWritable ensures a directory exists and is writable
internal/secrets/processor.go:387
↓ 1 callers
Function
findSubstring
(s, substr string)
internal/validation/validator_test.go:631
↓ 1 callers
Method
getAvailableGroups
getAvailableGroups returns a list of common system groups for error suggestions
internal/secrets/processor.go:287
↓ 1 callers
Method
getAvailableUsers
getAvailableUsers returns a list of common system users for error suggestions
internal/secrets/processor.go:271
↓ 1 callers
Function
isSupportedFormat
(format string)
cmd/opnix/main.go:465
↓ 1 callers
Method
load
load reads the hash store from disk
internal/systemd/integration.go:112
↓ 1 callers
Function
newEnvCommand
()
cmd/opnix/main.go:151
↓ 1 callers
Function
newEnvProcessor
(resolver secretResolver)
cmd/opnix/main.go:271
↓ 1 callers
Function
newSecretCommand
()
cmd/opnix/secret.go:39
↓ 1 callers
Function
newTokenCommand
()
cmd/opnix/token.go:21
↓ 1 callers
Method
processSecret
(secret config.Secret, secretName, value string)
internal/secrets/processor.go:119
↓ 1 callers
Method
processServiceActions
processServiceActions executes the required service actions
internal/systemd/integration.go:411
↓ 1 callers
Function
renderDotenv
(values map[string]string)
cmd/opnix/main.go:515
↓ 1 callers
Function
renderOutput
(values map[string]string, format string)
cmd/opnix/main.go:480
↓ 1 callers
Function
renderShell
(values map[string]string)
cmd/opnix/main.go:501
↓ 1 callers
Method
resolveConfig
()
cmd/opnix/main.go:234
↓ 1 callers
Method
resolvePath
resolvePath resolves the final path using templates and variables
internal/validation/validator.go:95
↓ 1 callers
Method
resolveSecretPathWithTemplate
resolveSecretPathWithTemplate resolves the final path for a secret with template support
internal/secrets/processor.go:314
next →
1–100 of 198, ranked by callers