Documentation
¶
Overview ¶
package googlegroupgithub provides mapping for GoogleGroup to GitHub.
Index ¶
- type BiDirectionalGroupMapper
- type GoogleGroupGitHubUserMapper
- type GroupMapper
- func (m *GroupMapper) AllGroupIDs(ctx context.Context) ([]string, error)
- func (m *GroupMapper) ContainsGroupID(ctx context.Context, key string) (bool, error)
- func (m *GroupMapper) MappedGroupIDs(ctx context.Context, key string) ([]string, error)
- func (m *GroupMapper) Mappings(ctx context.Context, key string) ([]groupsync.Mapping, error)
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 ¶
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 (*GroupMapper) MappedGroupIDs ¶
Click to show internal directories.
Click to hide internal directories.