Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSupportedString ¶
func GetSupportedString() string
func IsSupported ¶
Types ¶
type GitHub ¶
GitHub provider
func (*GitHub) GetGithubEmail ¶
GetGithubEmail get user email from github
type GitHubEmail ¶
type GitHubEmail struct { Verified bool `json:"verified"` Primary bool `json:"primary"` Email string `json:"email"` }
GitHubEmail represents an email registered in Github
type GitHubProfile ¶
type GitHubProfile struct { ID int `json:"id"` Login string `json:"login"` Name string `json:"name"` Email string `json:"email"` Avatar string `json:"avatar_url"` TwoFactor bool `json:"two_factor_authentication"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
GitHubProfile represents a GitHub profile
type GitLabProfile ¶
type GitLabProfile struct { ID string `json:"id"` Username string `json:"username"` Name string `json:"name"` Email string `json:"email"` TwoFactor bool `json:"two_factor_enabled"` CreatedAt time.Time `json:"created_at"` }
GitLabProfile represents a GitLabProvider profile
type GitLabProvider ¶
GitLabProvider provider
func NewGitLabProvider ¶
func NewGitLabProvider(c *http.Client, baseURL string, apiURL string) *GitLabProvider
NewGitLabProvider create a new GitLabProvider API provider
func (*GitLabProvider) GetProfile ¶
func (gl *GitLabProvider) GetProfile(accessToken string) (*Profile, error)
GetProfile returns a profile for a user from GitLabProvider
Click to show internal directories.
Click to hide internal directories.