Documentation
¶
Index ¶
Constants ¶
View Source
const ( CODE_REDIRECT = 302 KEY_TOKEN = "oauth2_token" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AutoFlusherWriter ¶
type AutoFlusherWriter struct {
// contains filtered or unexported fields
}
AutoFlusherWrite
func NewAutoFlusherWriter ¶
func NewAutoFlusherWriter(writer http.ResponseWriter, duration time.Duration) *AutoFlusherWriter
func (*AutoFlusherWriter) Close ¶
func (a *AutoFlusherWriter) Close()
type ContainersRecord ¶
type OAuth ¶
type OAuth struct {
PathLogin string // Path to handle OAuth 2.0 logins.
PathLogout string // Path to handle OAuth 2.0 logouts.
PathCallback string // Path to handle callback from OAuth 2.0 backend
PathError string // Path to handle error cases.
OAuthConfig *oauth2.Config
Config *config.Config
sync.Mutex
// contains filtered or unexported fields
}
func (*OAuth) HandleCallback ¶
func (o *OAuth) HandleCallback(w http.ResponseWriter, r *http.Request)
func (*OAuth) HandleLogin ¶
func (o *OAuth) HandleLogin(w http.ResponseWriter, r *http.Request)
func (*OAuth) HandleLogout ¶
func (o *OAuth) HandleLogout(w http.ResponseWriter, r *http.Request)
type StatusRecord ¶
type StatusRecord struct {
LastRevisionLabel string
*core.ProjectStatus
}
type StatusResult ¶
type StatusResult struct {
Project *core.Project
Status map[string]*StatusRecord
Error []error
}
Click to show internal directories.
Click to hide internal directories.