Documentation ¶
Index ¶
- func BuildHistory(client *ghint.Client, lang string) router.Handle
- func GetToken(db *reform.DB, logger logrus.FieldLogger, username string) (token string, cert string)
- func Home(db *reform.DB, log logrus.FieldLogger, k8sToken string) router.Handle
- func NotFound(log logrus.FieldLogger) router.Handle
- func Signout() router.Handle
- type GitHubOAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetToken ¶
func GetToken(db *reform.DB, logger logrus.FieldLogger, username string) (token string, cert string)
Types ¶
type GitHubOAuth ¶
type GitHubOAuth struct {
// contains filtered or unexported fields
}
GitHubOAuth is a handler set to use GitHubOAuth features
func NewGitHubOAuth ¶
func NewGitHubOAuth(log logrus.FieldLogger, umClient *umClient.Client, state, ghClientID, ghClientSecret string) *GitHubOAuth
NewGitHubOAuth create new GitHubOAuth handler set: - state is a token to protect the user from CSRF attacks - clientID and clientSecret are the parameters from github.com/settings/developers
func (*GitHubOAuth) Callback ¶
func (h *GitHubOAuth) Callback(c *router.Control)
Callback is a handler to process authorization callback from GitHub
func (*GitHubOAuth) Login ¶
func (h *GitHubOAuth) Login(c *router.Control)
Login is a handler to redirect to GitHub authorization page
Click to show internal directories.
Click to hide internal directories.