serve

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ExitCodeStartupError = 64
)

Variables

View Source
var (
	DefaultLogTimestamp  = true
	DefaultLogLevel      = "info"
	DefaultSystemdNotify = false

	DefaultLDAPHandler = "ldif"

	DefaultLDAPListenAddr  = "127.0.0.1:10389"
	DefaultLDAPSListenAddr = ""

	DefaultTLSCertFile = ""
	DefaultTLSKeyFile  = ""

	DefaultLDAPBaseDN  = ""
	DefaultLDAPAdminDN = ""

	DefaultLDAPAllowLocalAnonymousBind = false

	DefaultBoltDBFile = "idmbolt.db"
	DefaultLDIFMain   = ""
	DefaultLDIFConfig = ""

	DefaultLDIFCompany    = "Default"
	DefaultLDIFMailDomain = ""

	DefaultWithPprof       = false
	DefaultPprofListenAddr = "127.0.0.1:6060"

	DefaultWithMetrics       = false
	DefaultMetricsListenAddr = "127.0.0.1:6389"

	DefaultEnvBase = "IDMD_"
)

Functions

func CommandServe

func CommandServe() *cobra.Command

func StartupError

func StartupError(err error) error

func WrapErrorWithExitCode

func WrapErrorWithExitCode(err error, code int) error

Types

type ErrorWithExitCode

type ErrorWithExitCode struct {
	Code int
	Err  error
}

func (*ErrorWithExitCode) Error

func (e *ErrorWithExitCode) Error() string

func (*ErrorWithExitCode) Unwrap

func (e *ErrorWithExitCode) Unwrap() error

Jump to

Keyboard shortcuts

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