Documentation
¶
Overview ¶
Package cmd commands
Package cmd commands ¶
Package cmd commands ¶
Package cmd commands ¶
Package cmd commands
Index ¶
- Variables
- func CheckWithOracle(dbuser string, dbpass string, tnsDesc string, timeout int) (ok bool, elapsed time.Duration, hostval string, err error)
- func ClearLdapTns(lc *ldaplib.LdapConfigType, contextDN string) (ok int, fail int)
- func Execute()
- func GetVersion(print bool) (txt string)
- type TWorkStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = configName Version = "- not set -" Commit = "snapshot" Date = "" )
Version, Build Commit and Date are filled in during build by the Makefile noinspection GoUnusedGlobalVariable
View Source
var ( // RootCmd function to execute in tests RootCmd = &cobra.Command{ Use: "tnscli", Short: "tnscli – Small Oracle TNS Service and Connect Test Tool", Long: ``, } )
Functions ¶
func CheckWithOracle ¶
func CheckWithOracle(dbuser string, dbpass string, tnsDesc string, timeout int) (ok bool, elapsed time.Duration, hostval string, err error)
CheckWithOracle try connecting to oracle with dummy creds to get an ORA error. If this happens, the connection is working
func ClearLdapTns ¶
func ClearLdapTns(lc *ldaplib.LdapConfigType, contextDN string) (ok int, fail int)
ClearLdapTns deletes all oraclenet entries below given context
Types ¶
type TWorkStatus ¶
TWorkStatus structure to handover statistics
func WriteLdapTns ¶
func WriteLdapTns(lc *ldaplib.LdapConfigType, tnsEntries dblib.TNSEntries, domain string, contextDN string) (TWorkStatus, error)
WriteLdapTns writes a set of TNS entries to Ldap
Click to show internal directories.
Click to hide internal directories.