{"modulePath":"github.com/openshift/origin","version":"v1.0.8","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cli\n\n## Constants\n\n```go\nconst (\n\tSyncGroupsRecommendedName = \"sync-groups\"\n)\n```\n\n## Variables\n\n```go\nvar AllowedSourceTypes = []string{string(GroupSyncSourceLDAP), string(GroupSyncSourceOpenShift)}\n```\n\n## Functions\n\n```go\nfunc NewCmdSyncGroups(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\n\n```go\nfunc ValidateSource(source GroupSyncSource) bool\n```\n\n## Types\n\n```go\ntype ADSyncBuilder struct {\n\tClientConfig *ldaputil.LDAPClientConfig\n\tConfig       *api.ActiveDirectoryConfig\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (b *ADSyncBuilder) GetGroupLister() (interfaces.LDAPGroupLister, error)\n```\n\n```go\nfunc (b *ADSyncBuilder) GetGroupMemberExtractor() (interfaces.LDAPMemberExtractor, error)\n```\n\n```go\nfunc (b *ADSyncBuilder) GetGroupNameMapper() (interfaces.LDAPGroupNameMapper, error)\n```\n\n```go\nfunc (b *ADSyncBuilder) GetUserNameMapper() (interfaces.LDAPUserNameMapper, error)\n```\n\n```go\ntype AugmentedADSyncBuilder struct {\n\tClientConfig *ldaputil.LDAPClientConfig\n\tConfig       *api.AugmentedActiveDirectoryConfig\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (b *AugmentedADSyncBuilder) GetGroupLister() (interfaces.LDAPGroupLister, error)\n```\n\n```go\nfunc (b *AugmentedADSyncBuilder) GetGroupMemberExtractor() (interfaces.LDAPMemberExtractor, error)\n```\n\n```go\nfunc (b *AugmentedADSyncBuilder) GetGroupNameMapper() (interfaces.LDAPGroupNameMapper, error)\n```\n\n```go\nfunc (b *AugmentedADSyncBuilder) GetUserNameMapper() (interfaces.LDAPUserNameMapper, error)\n```\n\n```go\ntype GroupSyncSource string\n```\nGroupSyncSource determines the source of the groups to be synced\n\n```go\nconst (\n\t// GroupSyncSourceLDAP determines that the groups to be synced are determined from an LDAP record\n\tGroupSyncSourceLDAP GroupSyncSource = \"ldap\"\n\t// GroupSyncSourceOpenShift determines that the groups to be synced are determined from OpenShift records\n\tGroupSyncSourceOpenShift GroupSyncSource = \"openshift\"\n)\n```\n\n```go\ntype RFC2307SyncBuilder struct {\n\tClientConfig *ldaputil.LDAPClientConfig\n\tConfig       *api.RFC2307Config\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (b *RFC2307SyncBuilder) GetGroupLister() (interfaces.LDAPGroupLister, error)\n```\n\n```go\nfunc (b *RFC2307SyncBuilder) GetGroupMemberExtractor() (interfaces.LDAPMemberExtractor, error)\n```\n\n```go\nfunc (b *RFC2307SyncBuilder) GetGroupNameMapper() (interfaces.LDAPGroupNameMapper, error)\n```\n\n```go\nfunc (b *RFC2307SyncBuilder) GetUserNameMapper() (interfaces.LDAPUserNameMapper, error)\n```\n\n```go\ntype SyncBuilder interface {\n\tGetGroupLister() (interfaces.LDAPGroupLister, error)\n\tGetGroupNameMapper() (interfaces.LDAPGroupNameMapper, error)\n\tGetUserNameMapper() (interfaces.LDAPUserNameMapper, error)\n\tGetGroupMemberExtractor() (interfaces.LDAPMemberExtractor, error)\n}\n```\n\n```go\ntype SyncGroupsOptions struct {\n\t// Source determines the source of the list of groups to sync\n\tSource GroupSyncSource\n\n\t// Config is the LDAP sync config read from file\n\tConfig api.LDAPSyncConfig\n\n\t// Whitelist are the names of OpenShift group or LDAP group UIDs to use for syncing\n\tWhitelist []string\n\n\t// Blacklist are the names of OpenShift group or LDAP group UIDs to exclude\n\tBlacklist []string\n\n\t// Confirm determines whether not to write to openshift\n\tConfirm bool\n\n\t// GroupsInterface is the interface used to interact with OpenShift Group objects\n\tGroupInterface osclient.GroupInterface\n\n\t// Stderr is the writer to write warnings and errors to\n\tStderr io.Writer\n\n\t// Out is the writer to write output to\n\tOut io.Writer\n}\n```\n\n```go\nfunc NewSyncGroupsOptions() *SyncGroupsOptions\n```\n\n```go\nfunc (o *SyncGroupsOptions) Complete(typeArg, whitelistFile, blacklistFile, configFile string, args []string, f *clientcmd.Factory) error\n```\n\n```go\nfunc (o *SyncGroupsOptions) GetGroupNameMapper(syncBuilder SyncBuilder) (interfaces.LDAPGroupNameMapper, error)\n```\n\n```go\nfunc (o *SyncGroupsOptions) GetLDAPGroupLister(syncBuilder SyncBuilder) (interfaces.LDAPGroupLister, error)\n```\n\n```go\nfunc (o *SyncGroupsOptions) GetOpenShiftGroupListerMapper(syncBuilder SyncBuilder, clientConfig *ldaputil.LDAPClientConfig) (interfaces.LDAPGroupListerNameMapper, error)\n```\n\n```go\nfunc (o *SyncGroupsOptions) Run(cmd *cobra.Command, f *clientcmd.Factory) error\n```\nRun creates the GroupSyncer specified and runs it to sync groups the arguments are only here because its the only way to get the printer we need\n\n```go\nfunc (o *SyncGroupsOptions) Validate() error\n```\n\n","path":"github.com/openshift/origin/pkg/cmd/experimental/syncgroups/cli","name":"cli","synopsis":"","isRedistributable":true}
