{"modulePath":"github.phpd.cn/openshift/origin","version":"v4.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package interfaces\n\n## Types\n\n```go\ntype LDAPGroupDetector interface {\n\tExists(ldapGroupUID string) (exists bool, err error)\n}\n```\nLDAPGroupDetector determines if a group identified by an LDAP group UID exists on the LDAP server\n\n```go\ntype LDAPGroupGetter interface {\n\tGroupEntryFor(ldapGroupUID string) (group *ldap.Entry, err error)\n}\n```\nLDAPGroupGetter maps a ldapGroupUID to a first-class LDAP group entry\n\n```go\ntype LDAPGroupLister interface {\n\tListGroups() (ldapGroupUIDs []string, err error)\n}\n```\nLDAPGroupLister lists the LDAP groups that need to be synced by a job. The LDAPGroupLister needs to be paired with an LDAPMemberExtractor that understands the format of the unique identifiers returned to represent the LDAP groups to be synced.\n\n```go\ntype LDAPGroupListerNameMapper interface {\n\tLDAPGroupLister\n\tLDAPGroupNameMapper\n}\n```\n\n```go\ntype LDAPGroupNameMapper interface {\n\tGroupNameFor(ldapGroupUID string) (openShiftGroupName string, err error)\n}\n```\nLDAPGroupNameMapper maps a ldapGroupUID representing an LDAP group to the OpenShift Group name for the resource\n\n```go\ntype LDAPMemberExtractor interface {\n\t// ExtractMembers returns the list of LDAP first-class user entries that are members of the LDAP group\n\t// specified by the ldapGroupUID\n\tExtractMembers(ldapGroupUID string) (members []*ldap.Entry, err error)\n}\n```\nLDAPMemberExtractor retrieves member data about an LDAP group from the LDAP server.\n\n```go\ntype LDAPUserNameMapper interface {\n\tUserNameFor(ldapUser *ldap.Entry) (openShiftUserName string, err error)\n}\n```\nLDAPUserNameMapper maps an LDAP entry representing an LDAP user to the OpenShift User name for the resource\n\n","path":"github.phpd.cn/openshift/origin/pkg/oc/lib/groupsync/interfaces","name":"interfaces","synopsis":"","isRedistributable":true}
