Documentation
¶
Overview ¶
Package data provides functions to manage persistent data mappings. It is entirely inefficient and should be replaced with a proper solution.
Index ¶
- func AddBitbucketUser(accountID, email string) error
- func AddGitHubUser(username, email string) error
- func AddSlackUser(userID, email string) error
- func BitbucketUserEmailByID(accountID string) (string, error)
- func BitbucketUserIDByEmail(email string) (string, error)
- func ConvertURLToChannel(url string) (string, error)
- func GitHubUserEmailByID(username string) (string, error)
- func GitHubUserIDByEmail(email string) (string, error)
- func IsOptedIn(email string) (bool, error)
- func MapURLToChannel(url, channel string) error
- func OptInBitbucketUser(slackUserID, accountID, email string) error
- func OptInGitHubUser(slackUserID, username, email string) error
- func OptOut(email string) error
- func RemoveBitbucketUser(email string) error
- func RemoveGitHubUser(email string) error
- func RemoveSlackUser(email string) error
- func RemoveURLToChannelMapping(url string) error
- func SlackUserEmailByID(userID string) (string, error)
- func SlackUserIDByEmail(email string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBitbucketUser ¶
AddBitbucketUser saves a 2-way mapping between a Bitbucket user's account ID and email address.
func AddGitHubUser ¶
AddBitbucketUser saves a 2-way mapping between a GitHub user's username and email address.
func AddSlackUser ¶
AddBitbucketUser saves a 2-way mapping between a Slack user's user ID and email address.
func BitbucketUserEmailByID ¶
BitbucketUserEmailByID returns a Bitbucket user's email based on their account ID. Returns an empty string if the user is not found.
func BitbucketUserIDByEmail ¶
BitbucketUserIDByEmail returns a Bitbucket user's account ID based on their email. Returns an empty string if the user is not found.
func ConvertURLToChannel ¶
func GitHubUserEmailByID ¶
GitHubUserEmailByID returns a GitHub user's email based on their username. Returns an empty string if the user is not found.
func GitHubUserIDByEmail ¶
GitHubUserIDByEmail returns a GitHub user's username based on their email. Returns an empty string if the user is not found.
func MapURLToChannel ¶
func OptInBitbucketUser ¶
func OptInGitHubUser ¶
func RemoveBitbucketUser ¶
RemoveBitbucketUser forgets a Bitbucket user's account ID and email.
func RemoveGitHubUser ¶
RemoveGitHubUser forgets a GitHub user's username and email.
func RemoveSlackUser ¶
RemoveSlackUser forgets a Slack user's user ID and email.
func SlackUserEmailByID ¶
SlackUserEmailByID returns a Slack user's email based on their user ID. Returns an empty string if the user is not found.
func SlackUserIDByEmail ¶
SlackUserIDByEmail returns a Slack user's user ID based on their email. Returns an empty string if the user is not found.
Types ¶
This section is empty.