security::get_https_port (private)

 security::get_https_port

Defined in packages/acs-tcl/tcl/security-procs.tcl

Return the published HTTPS port when Docker mapping is available, otherwise the HTTPS driver's listening port.

Returns:
The HTTPS port or an empty string when HTTPS is unavailable.

Partial Call Graph (max 5 caller/called nodes):
docker::external_port docker::external_port security::driver security::driver (public) util_driver_info util_driver_info (public) security::get_https_port security::get_https_port security::get_https_port->docker::external_port security::get_https_port->security::driver security::get_https_port->util_driver_info

Testcases:
No testcase defined.
Source code:
    set sdriver [security::driver]
    if {$sdriver eq ""} {
        return ""
    }

    set d [util_driver_info -driver $sdriver]
    set port [dict get $d port]

    if {[namespace which -command ::docker::external_port] ne ""} {
        set external_port [::docker::external_port $port tcp]
        if {$external_port ne ""} {
            set port $external_port
        }
    }

    return $port
Generic XQL file:
packages/acs-tcl/tcl/security-procs.xql

PostgreSQL XQL file:
packages/acs-tcl/tcl/security-procs-postgresql.xql

Oracle XQL file:
packages/acs-tcl/tcl/security-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: