googlegroupgithub

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

package googlegroupgithub provides mapping for GoogleGroup to GitHub.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BiDirectionalGroupMapper

type BiDirectionalGroupMapper struct {
	SourceMapper *GroupMapper
	TargetMapper *GroupMapper
}

func NewBidirectionalGroupMapper

func NewBidirectionalGroupMapper(mappings *api.GroupMappings) *BiDirectionalGroupMapper

type GoogleGroupGitHubUserMapper

type GoogleGroupGitHubUserMapper struct {
	// contains filtered or unexported fields
}

GoogleGroupGitHubUserMapper implements groupsync.UserMapper.

func NewUserMapper

func NewUserMapper(ctx context.Context, mappings *api.UserMappings) *GoogleGroupGitHubUserMapper

NewUserMapper create a UserMapper for mapping from GoogleGroupUSer to GithubUser.

func (*GoogleGroupGitHubUserMapper) MappedUser

func (*GoogleGroupGitHubUserMapper) MappedUserID

func (m *GoogleGroupGitHubUserMapper) MappedUserID(ctx context.Context, userID string) (string, error)

type GroupMapper

type GroupMapper struct {
	// contains filtered or unexported fields
}

GroupMapper implements groupsync.OneToManyGroupMapper For now it was be used as Mapper between GoogleGroup and GitHubTeam. Both GoogleGroupMapper and GitHubMapper have similar variables and functions, this way we don't need to repeatly write similar function for both on them.

func (*GroupMapper) AllGroupIDs

func (m *GroupMapper) AllGroupIDs(ctx context.Context) ([]string, error)

func (*GroupMapper) ContainsGroupID

func (m *GroupMapper) ContainsGroupID(ctx context.Context, key string) (bool, error)

func (*GroupMapper) MappedGroupIDs

func (m *GroupMapper) MappedGroupIDs(ctx context.Context, key string) ([]string, error)

func (*GroupMapper) Mappings

func (m *GroupMapper) Mappings(ctx context.Context, key string) ([]groupsync.Mapping, error)

Jump to

Keyboard shortcuts

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