Documentation ¶
Index ¶
- Constants
- func ConfigFormatter(apiContext *types.APIContext, resource *types.RawResource)
- func FormGithubRedirectURL(githubConfig *v3.GithubConfig) string
- func URLEncoded(str string) string
- type Account
- type GClient
- type GProvider
- func (g *GProvider) AuthenticateUser(input interface{}) (v3.Principal, []v3.Principal, map[string]string, int, error)
- func (g *GProvider) ConfigActionHandler(actionName string, action *types.Action, request *types.APIContext) error
- func (g *GProvider) GetName() string
- func (g *GProvider) LoginUser(githubCredential *v3public.GithubLogin, config *v3.GithubConfig) (v3.Principal, []v3.Principal, map[string]string, int, error)
- func (g *GProvider) SaveGithubConfig(config *v3.GithubConfig) error
- func (g *GProvider) SearchPrincipals(searchKey string, myToken v3.Token) ([]v3.Principal, int, error)
- type Team
Constants ¶
View Source
const (
Github = "github"
)
Constants for github
Variables ¶
This section is empty.
Functions ¶
func ConfigFormatter ¶
func ConfigFormatter(apiContext *types.APIContext, resource *types.RawResource)
func FormGithubRedirectURL ¶
func FormGithubRedirectURL(githubConfig *v3.GithubConfig) string
Types ¶
type Account ¶
type Account struct { ID int `json:"id,omitempty"` Login string `json:"login,omitempty"` Name string `json:"name,omitempty"` AvatarURL string `json:"avatar_url,omitempty"` HTMLURL string `json:"html_url,omitempty"` }
Account defines properties an account on github has
type GClient ¶
type GClient struct {
// contains filtered or unexported fields
}
GClient implements a httpclient for github
type GProvider ¶
type GProvider struct {
// contains filtered or unexported fields
}
GProvider implements an PrincipalProvider for github
func Configure ¶
func Configure(ctx context.Context, mgmtCtx *config.ManagementContext, userMGR common.UserManager) *GProvider
func (*GProvider) AuthenticateUser ¶
func (*GProvider) ConfigActionHandler ¶
func (*GProvider) SaveGithubConfig ¶
func (g *GProvider) SaveGithubConfig(config *v3.GithubConfig) error
Click to show internal directories.
Click to hide internal directories.