Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PiHoleShell/PiHoleShell.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ foreach ($File in $PrivateFunctions) {

Export-ModuleMember -Function @(
#Actions.ps1
'Update-PiHoleActionsGravity', 'Invoke-PiHoleFlushLog', 'Restart-PiHoleDnsService' `
'Update-PiHoleActionsGravity', 'Invoke-PiHoleFlushNetwork' `
#Authentication.ps1
'Remove-PiHoleCurrentAuthSession' , 'Get-PiHoleCurrentAuthSession', 'Remove-PiHoleAuthSession', `
#GroupManagement.ps1
Expand Down
8 changes: 4 additions & 4 deletions PiHoleShell/Public/Actions.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function Update-PiHoleActionsGravity {
<#
.SYNOPSIS
https://TODO
https://ftl.pi-hole.net/master/docs/#post-/action/gravity

#>
#Work In Progress
Expand Down Expand Up @@ -56,10 +56,10 @@ https://TODO
}
}

function Invoke-PiHoleFlushLog {
function Invoke-PiHoleFlushNetwork {
<#
.SYNOPSIS
https://dns1.local:8489/api/docs/#post-/action/flush/logs
https://ftl.pi-hole.net/master/docs/#post-/action/flush/network

.DESCRIPTION
Flushes the Pi-hole log file (/var/log/pihole/pihole.log).
Expand All @@ -77,7 +77,7 @@ Set to $true to skip SSL certificate validation
This will dump the response instead of the formatted object

.EXAMPLE
Invoke-PiHoleFlushLogs -PiHoleServer "http://pihole.domain.com:8080" -Password "fjdsjfldsjfkldjslafjskdl"
Invoke-PiHoleFlushNetwork -PiHoleServer "http://pihole.domain.com:8080" -Password "fjdsjfldsjfkldjslafjskdl"
#>
[CmdletBinding()]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '', Justification = 'Flushes PiHole logs')]
Expand Down
4 changes: 2 additions & 2 deletions PiHoleShell/Public/Authentication.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function Request-PiHoleAuth {
function Get-PiHoleCurrentAuthSession {
<#
.SYNOPSIS
https://ftl.pi-hole.net/development-v6/docs/#get-/auth
https://ftl.pi-hole.net/master/docs/#get-/auth

.PARAMETER PiHoleServer
The URL to the PiHole Server, for example "http://pihole.domain.com:8080", or "http://192.168.1.100"
Expand Down Expand Up @@ -118,7 +118,7 @@ Get-PiHoleCurrentAuthSession -PiHoleServer "http://pihole.domain.com:8080" -Pass
function Remove-PiHoleAuthSession {
<#
.SYNOPSIS
https://ftl.pi-hole.net/development-v6/docs/#get-/auth
https://ftl.pi-hole.net/master/docs/#get-/auth

.PARAMETER PiHoleServer
The URL to the PiHole Server, for example "http://pihole.domain.com:8080", or "http://192.168.1.100"
Expand Down
Loading