Posh-SecretRotation.psm1
|
$script:ModuleRoot = $PSScriptRoot # Debug < Information < Warning < Error - used by Write-SecretRotationLog to compare an entry's # Level against the configured MinimumLevel. $script:LogLevelSeverity = @{ Debug = 0 Information = 1 Warning = 2 Error = 3 } # "Warn once per session" flags for logging config/sink failures - see Get-SecretRotationLoggingConfig # and Write-SecretRotationLog / Write-SecretRotationFileLogEntry / Write-SecretRotationEventLogEntry. $script:LoggingConfigWarned = $false $script:LoggingSinkFailed = $false foreach ($layer in Get-ChildItem -Path (Join-Path $script:ModuleRoot 'Private') -Filter '*.ps1' -Recurse -File -ErrorAction SilentlyContinue) { . $layer.FullName } foreach ($cmdlet in Get-ChildItem -Path (Join-Path $script:ModuleRoot 'Public') -Filter '*.ps1' -File -ErrorAction SilentlyContinue) { . $cmdlet.FullName } Export-ModuleMember -Function @( 'Update-SecretRotationAccountPassword' ) |