MCPcopy Index your code

hub / github.com/brizzbuzz/opnix / functions

Functions198 in github.com/brizzbuzz/opnix

↓ 40 callersMethodError
()
internal/errors/errors.go:125
↓ 32 callersMethodRun
()
cmd/opnix/main.go:19
↓ 26 callersFunctionConfigValidationError
ConfigValidationError creates detailed validation errors with suggestions
internal/errors/errors.go:181
↓ 23 callersFunctionFileOperationError
FileOperationError creates errors for file system operations
internal/errors/errors.go:192
↓ 17 callersFunctionConfigError
Error constructors for common scenarios ConfigError creates errors related to configuration parsing and validation
internal/errors/errors.go:171
↓ 13 callersFunctionNewValidator
NewValidator creates a new validator instance
internal/validation/validator.go:18
↓ 10 callersFunctionNewHashStore
NewHashStore creates or loads a hash store from disk
internal/systemd/integration.go:85
↓ 8 callersMethodProcess
(cfg *config.Config)
internal/secrets/processor.go:49
↓ 8 callersFunctionTokenError
TokenError creates token-related errors with setup instructions
internal/errors/errors.go:315
↓ 8 callersFunctionWrapWithSuggestions
WrapWithSuggestions wraps an error and adds suggestions
internal/errors/errors.go:406
↓ 8 callersMethodhasChanged
HasChanged checks if a secret has changed since last deployment
internal/systemd/integration.go:184
↓ 7 callersMethodsave
save writes the hash store to disk
internal/systemd/integration.go:135
↓ 6 callersFunctionNewProcessor
(client SecretClient, outputDir string)
internal/secrets/processor.go:33
↓ 5 callersFunctionGetToken
GetToken retrieves token from environment or file
internal/onepass/client.go:46
↓ 5 callersFunctionLoad
Load loads a single config file
internal/config/config.go:69
↓ 5 callersMethodName
()
cmd/opnix/main.go:17
↓ 5 callersMethodProcessSecretChanges
ProcessSecretChanges processes secrets and determines which services need restart
internal/systemd/integration.go:293
↓ 5 callersFunctionUserGroupError
UserGroupError creates errors for user/group validation issues
internal/errors/errors.go:268
↓ 5 callersFunctioncontainsString
Helper functions
internal/validation/validator_test.go:625
↓ 4 callersFunctionNewManager
NewManager creates a new systemd integration manager
internal/systemd/integration.go:56
↓ 4 callersFunctionOnePasswordError
OnePasswordError creates errors for 1Password integration issues
internal/errors/errors.go:225
↓ 4 callersFunctionServiceError
ServiceError creates errors for systemd service operations
internal/errors/errors.go:370
↓ 4 callersMethodValidateConfigStruct
ValidateConfigStruct validates a config with slice of SecretData
internal/validation/validator.go:37
↓ 4 callersFunctionValidationError
ValidationError creates general validation errors
internal/errors/errors.go:301
↓ 4 callersMethodcalculateHash
calculateHash calculates SHA-256 hash of a file's content
internal/systemd/integration.go:158
↓ 4 callersFunctioncontains
Helper function to check if string contains substring
internal/secrets/processor_test.go:373
↓ 4 callersFunctiongetDirPath
Helper functions
internal/errors/errors.go:337
↓ 4 callersFunctionmockSystemdIntegration
mockSystemdIntegration creates a test systemd integration config
internal/systemd/integration_test.go:14
↓ 4 callersFunctionwriteFakeSystemctl
(t *testing.T, tempDir string)
internal/systemd/integration_test.go:686
↓ 3 callersMethodExitCode
()
internal/errors/errors.go:26
↓ 3 callersMethodExtractServiceActions
ExtractServiceActions extracts service actions from secret configuration
internal/systemd/integration.go:230
↓ 3 callersFunctionLoadMultiple
LoadMultiple loads and merges multiple config files (GitHub #3)
internal/config/config.go:99
↓ 3 callersFunctionNewClient
(tokenFile string)
internal/onepass/client.go:80
↓ 3 callersMethodResolveSecret
(reference string)
internal/onepass/client.go:100
↓ 3 callersMethodUnwrap
()
internal/errors/errors.go:164
↓ 3 callersMethodValidate
Validate checks for duplicate secret paths across all configs Deprecated: Use validation.Validator.ValidateConfigStruct() for comprehensive validation
internal/config/config.go:165
↓ 3 callersMethodconvertToValidationSecrets
convertToValidationSecrets converts config secrets to validation format
internal/config/config.go:49
↓ 3 callersFunctionmin
min returns the minimum of two integers
internal/validation/validator.go:634
↓ 2 callersMethodProcess
(*config.Config)
cmd/opnix/secret.go:20
↓ 2 callersMethodSetDryRun
SetDryRun enables dry-run mode for testing
internal/systemd/integration.go:511
↓ 2 callersMethodValidateTokenFile
ValidateTokenFile validates the token file exists and has correct permissions
internal/validation/validator.go:642
↓ 2 callersFunctionWrap
Wrap provides a simple way to wrap existing errors with OpNix context
internal/errors/errors.go:356
↓ 2 callersFunctioncontainsStringSlice
(slice []string, item string)
internal/validation/validator_test.go:654
↓ 2 callersMethodexecuteServiceAction
executeServiceAction executes a single service action with retry logic
internal/systemd/integration.go:456
↓ 2 callersMethodgetAvailableGroups
getAvailableGroups returns a list of available system groups
internal/validation/validator.go:576
↓ 2 callersMethodgetAvailableUsers
getAvailableUsers returns a list of available system users
internal/validation/validator.go:551
↓ 2 callersMethodgetServiceStatus
(serviceName string)
internal/systemd/integration.go:542
↓ 2 callersFunctiongetUserGroupCommand
(entityType string)
internal/errors/errors.go:348
↓ 2 callersFunctionhandleError
handleError provides user-friendly error output
cmd/opnix/main.go:69
↓ 2 callersFunctionisServiceGroup
isServiceGroup checks if a groupname looks like a service group
internal/validation/validator.go:617
↓ 2 callersFunctionisServiceUser
isServiceUser checks if a username looks like a service user
internal/validation/validator.go:600
↓ 2 callersFunctionparseEnvConfig
(data []byte)
cmd/opnix/main.go:376
↓ 2 callersFunctionprintUsage
(cmds []command)
cmd/opnix/main.go:32
↓ 2 callersMethodresolveSecretPath
resolveSecretPath resolves the final path for a secret based on custom path logic (legacy)
internal/secrets/processor.go:303
↓ 2 callersFunctionretryOperation
(attempts int, operation string, fn func() (T, error), shouldRetry ...func(error) bool)
internal/onepass/client.go:156
↓ 2 callersMethodshouldTrim
()
cmd/opnix/main.go:133
↓ 2 callersMethodsubstituteVariables
substituteVariables replaces template variables in a path
internal/secrets/processor.go:450
↓ 2 callersMethodsubstituteVariables
substituteVariables replaces template variables in a path
internal/validation/validator.go:120
↓ 2 callersMethodvalidateAbsolutePath
validateAbsolutePath validates absolute paths for security
internal/validation/validator.go:403
↓ 2 callersMethodvalidateGroup
validateGroup validates that a group exists
internal/validation/validator.go:469
↓ 2 callersMethodvalidateMode
validateMode validates file permission mode
internal/validation/validator.go:491
↓ 2 callersMethodvalidatePath
validatePath validates secret path and checks for duplicates
internal/validation/validator.go:348
↓ 2 callersMethodvalidateReference
validateReference validates 1Password reference format
internal/validation/validator.go:260
↓ 2 callersMethodvalidateSecretPath
validateSecretPath validates that the resolved path is secure and accessible
internal/secrets/processor.go:343
↓ 2 callersMethodvalidateUser
validateUser validates that a user exists
internal/validation/validator.go:447
↓ 1 callersFunctionExitCode
(err error)
internal/errors/errors.go:101
↓ 1 callersMethodInit
([]string)
cmd/opnix/main.go:18
↓ 1 callersMethodProcessSecretChanges
([]config.Secret, map[string]string)
cmd/opnix/secret.go:24
↓ 1 callersMethodResolveAll
(context.Context, []string)
internal/onepass/client.go:22
↓ 1 callersMethodResolveSecret
(reference string)
internal/secrets/processor_test.go:19
↓ 1 callersMethodResolveSecret
(string)
cmd/opnix/main.go:116
↓ 1 callersMethodResolveSecrets
(references []string)
internal/secrets/processor.go:18
↓ 1 callersMethodResolveSecrets
(references []string)
internal/onepass/client.go:108
↓ 1 callersMethodbuildResolver
(cfg *envConfig)
cmd/opnix/main.go:262
↓ 1 callersMethodcheckOutputDirectory
checkOutputDirectory ensures the output directory is accessible
cmd/opnix/secret.go:176
↓ 1 callersMethodcheckWritePermissions
checkWritePermissions verifies we can write to the directory
cmd/opnix/token.go:66
↓ 1 callersFunctionclassifyResolveReferenceError
(reference string, err onepassword.ResolveReferenceError)
internal/onepass/client.go:202
↓ 1 callersFunctionclassifyTopLevelProviderError
(err error)
internal/onepass/client.go:186
↓ 1 callersMethodcollectRecoveryActions
(configuredActions, _ []ServiceAction)
internal/systemd/integration.go:377
↓ 1 callersFunctioncontainsAtIndex
(s, substr string)
internal/secrets/processor_test.go:382
↓ 1 callersMethodcreateSymlinks
createSymlinks creates symlinks for a secret file
internal/secrets/processor.go:405
↓ 1 callersFunctiondotenvValue
(value string)
cmd/opnix/main.go:537
↓ 1 callersMethodensureDirectoryWritable
ensureDirectoryWritable ensures a directory exists and is writable
internal/secrets/processor.go:387
↓ 1 callersFunctionfindSubstring
(s, substr string)
internal/validation/validator_test.go:631
↓ 1 callersMethodgetAvailableGroups
getAvailableGroups returns a list of common system groups for error suggestions
internal/secrets/processor.go:287
↓ 1 callersMethodgetAvailableUsers
getAvailableUsers returns a list of common system users for error suggestions
internal/secrets/processor.go:271
↓ 1 callersFunctionisSupportedFormat
(format string)
cmd/opnix/main.go:465
↓ 1 callersMethodload
load reads the hash store from disk
internal/systemd/integration.go:112
↓ 1 callersFunctionnewEnvCommand
()
cmd/opnix/main.go:151
↓ 1 callersFunctionnewEnvProcessor
(resolver secretResolver)
cmd/opnix/main.go:271
↓ 1 callersFunctionnewSecretCommand
()
cmd/opnix/secret.go:39
↓ 1 callersFunctionnewTokenCommand
()
cmd/opnix/token.go:21
↓ 1 callersMethodprocessSecret
(secret config.Secret, secretName, value string)
internal/secrets/processor.go:119
↓ 1 callersMethodprocessServiceActions
processServiceActions executes the required service actions
internal/systemd/integration.go:411
↓ 1 callersFunctionrenderDotenv
(values map[string]string)
cmd/opnix/main.go:515
↓ 1 callersFunctionrenderOutput
(values map[string]string, format string)
cmd/opnix/main.go:480
↓ 1 callersFunctionrenderShell
(values map[string]string)
cmd/opnix/main.go:501
↓ 1 callersMethodresolveConfig
()
cmd/opnix/main.go:234
↓ 1 callersMethodresolvePath
resolvePath resolves the final path using templates and variables
internal/validation/validator.go:95
↓ 1 callersMethodresolveSecretPathWithTemplate
resolveSecretPathWithTemplate resolves the final path for a secret with template support
internal/secrets/processor.go:314
next →1–100 of 198, ranked by callers