Documentation ¶
Index ¶
- func AddEmail(mctx libkb.MetaContext, email keybase1.EmailAddress, ...) error
- func CreateAssertionFromEmail(ctx context.Context, email string) (libkb.AssertionURL, error)
- func DeleteEmail(mctx libkb.MetaContext, email keybase1.EmailAddress) error
- func GetEmails(mctx libkb.MetaContext) ([]keybase1.Email, error)
- func ParseSeparatedEmails(mctx libkb.MetaContext, emails string, malformed *[]string) (ret []string)
- func SendVerificationEmail(mctx libkb.MetaContext, email keybase1.EmailAddress) error
- func SetPrimaryEmail(mctx libkb.MetaContext, email keybase1.EmailAddress) error
- func SetVisibilityAllEmail(mctx libkb.MetaContext, visibility keybase1.IdentityVisibility) error
- func SetVisibilityEmail(mctx libkb.MetaContext, email keybase1.EmailAddress, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEmail ¶
func AddEmail(mctx libkb.MetaContext, email keybase1.EmailAddress, visibility keybase1.IdentityVisibility) error
func CreateAssertionFromEmail ¶
CreateAssertionFromEmail creates AssertionURL from an e-mail address. E-mail address is not validated apart from the minimal validation that assertion code does, so pretty much anything that has '@' in it will pass.
func DeleteEmail ¶
func DeleteEmail(mctx libkb.MetaContext, email keybase1.EmailAddress) error
func ParseSeparatedEmails ¶
func ParseSeparatedEmails(mctx libkb.MetaContext, emails string, malformed *[]string) (ret []string)
ParseSeparatedEmails parses a comma-or-new-line-separated email list that comes in a string. It can extract emails that conform to RFC 5322 and RFC 6532 (see net/mail documentation for more info).
Examples of a valid e-mail entities would be: - Jan Smith <jan@example.com> - alice@example.org
The "name" portion is ignored, caller will always get the raw e-mails, in this case: { "jan@example.com", "alice@example.org" }.
Individual e-mails have to be separated by comma or newline, and they can be surrounded by any amount of whitespace characters that will be ignored.
`malformed` is an optional pointer to string list to which this function can append malformed e-mails for the caller. It can be nil.
func SendVerificationEmail ¶
func SendVerificationEmail(mctx libkb.MetaContext, email keybase1.EmailAddress) error
func SetPrimaryEmail ¶
func SetPrimaryEmail(mctx libkb.MetaContext, email keybase1.EmailAddress) error
func SetVisibilityAllEmail ¶
func SetVisibilityAllEmail(mctx libkb.MetaContext, visibility keybase1.IdentityVisibility) error
func SetVisibilityEmail ¶
func SetVisibilityEmail(mctx libkb.MetaContext, email keybase1.EmailAddress, visibility keybase1.IdentityVisibility) error
Types ¶
This section is empty.