{"modulePath":"github.phpd.cn/openshift/origin","version":"v1.0.8","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package interfaces\n\n## Functions\n\n```go\nfunc IsMemberLookupError(e error) bool\n```\n\n## Types\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```go\ntype MemberLookupError struct {\n\tLDAPGroupUID string\n\tLDAPUserUID  string\n\tCausedBy     error\n}\n```\n\n```go\nfunc (e *MemberLookupError) Error() string\n```\n\n","path":"github.phpd.cn/openshift/origin/pkg/cmd/experimental/syncgroups/interfaces","name":"interfaces","synopsis":"","isRedistributable":true}
