Documentation ¶
Overview ¶
get json from stdin and return json with v2 objects and v2 relations
Index ¶
Constants ¶
View Source
const AppDescription = "ldap directory loader"
View Source
const AppName = "ds-load-ldap"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CLI ¶
type CLI struct { Config kong.ConfigFlag `help:"Configuration file path" short:"c"` Version VersionCmd `cmd:"" help:"version information"` Fetch FetchCmd `cmd:"" help:"fetch ldap data"` Transform TransformCmd `cmd:"" help:"transform ldap data"` ExportTransform ExportTransformCmd `cmd:"" help:"export default transform template"` Exec ExecCmd `cmd:"" help:"fetch and transform ldap data" default:"withargs"` Verbosity int `short:"v" type:"counter" help:"Use to increase output verbosity."` Verify VerifyCmd `cmd:"verify" help:"verify fetcher configuration and credentials"` }
type ExecCmd ¶
type ExecCmd struct { FetchCmd TransformCmd }
type ExportTransformCmd ¶
type ExportTransformCmd struct { }
type FetchCmd ¶
type FetchCmd struct { User string `short:"u" help:"LDAP user" env:"LDAP_USER" required:""` Password string `short:"p" help:"LDAP password" env:"LDAP_PASSWORD" required:""` Host string `short:"s" help:"LDAP host" env:"LDAP_HOST" required:""` BaseDn string `short:"b" help:"LDAP base DN" env:"LDAP_BASE_DN" required:""` UserFilter string `short:"f" help:"LDAP user filter" env:"LDAP_USER_FILTER" default:"(&(objectClass=organizationalPerson))"` GroupFilter string `short:"g" help:"LDAP group filter" env:"LDAP_GROUP_FILTER" default:"(&(objectClass=groupOfNames))"` Insecure bool `short:"i" help:"Allow insecure LDAP connection" env:"LDAP_INSECURE" default:"false"` IDField string `short:"U" help:"LDAP field to use as ID" env:"LDAP_ID_FIELD" default:"objectGUID"` }
type TransformCmd ¶
type TransformCmd struct {
Template string `name:"template" short:"t" env:"DS_TEMPLATE_FILE" help:"transformation template file path" type:"path" optional:""`
}
type VersionCmd ¶
type VersionCmd struct { }
func (*VersionCmd) Run ¶
func (cmd *VersionCmd) Run() error
Click to show internal directories.
Click to hide internal directories.