common

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBidirectionalOneToManyGroupMapper

func NewBidirectionalOneToManyGroupMapper(source, target string, gm *api.GroupMappings, config *api.TeamLinkConfig) (groupsync.OneToManyGroupMapper, groupsync.OneToManyGroupMapper, error)

NewBidirectionalOneToManyGroupMapper creates two OneToManyGroupMapper, directions are src->target and target->src.

func NewGitHubReadWriter

func NewGitHubReadWriter(ctx context.Context, config *api.GitHubConfig, mappings *api.TeamLinkMappings) (groupsync.GroupReadWriter, error)

NewGitHubReadWriter creates a ReadWriter for github using provided config.

func NewGoogleGroupsReader

func NewGoogleGroupsReader(ctx context.Context) (groupsync.GroupReader, error)

NewGoogleGroupsReader creates a GoogleGroupsReader. Currently we only support auth using default-app login.

func NewReadWriter

func NewReadWriter(ctx context.Context, target string, config *api.TeamLinkConfig, mappings *api.TeamLinkMappings) (groupsync.GroupReadWriter, error)

NewReadWriter creates a new ReadWriter base on target system type and provided config.

func NewReader

func NewReader(ctx context.Context, source string, config *api.TeamLinkConfig) (groupsync.GroupReader, error)

NewReader creates a GroupReader base on source type and input config.

func NewUserMapper

func NewUserMapper(ctx context.Context, source, target string, mappings *api.UserMappings) (groupsync.UserMapper, error)

NewUserMapper creates a new UserMapper base on source and target system type.

func Sync

func Sync(ctx context.Context, mappingFile, configFile string) error

Sync syncs membership informations.

Types

This section is empty.

Directories

Path Synopsis
package googlegroupgithub provides mapping for GoogleGroup to GitHub.
package googlegroupgithub provides mapping for GoogleGroup to GitHub.

Jump to

Keyboard shortcuts

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