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) GetProfile ¶
GetProfile returns a profile for a user from GitHub
func (*GitHub) GetUserOrganizations ¶
GetUserOrganizations using the API "List your organizations" https://developer.github.com/v3/orgs/#list-your-organizations
type GitHubProfile ¶
type GitHubProfile struct { ID int `json:"id"` Login string `json:"login"` Name string `json:"name"` Email string `json:"email"` 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 int `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
type Organization ¶
Click to show internal directories.
Click to hide internal directories.