cmd

package
v0.0.0-...-a97f612 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package cmd commands

Package cmd commands

Package cmd commands

Package cmd commands

Package cmd commands

Index

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

func Execute

func Execute()

Execute run application

func GetVersion

func GetVersion(print bool) (txt string)

GetVersion extract compiled version info

Types

type TWorkStatus

type TWorkStatus map[string]int

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL