Documentation
¶
Index ¶
Constants ¶
View Source
const ( CODE_REDIRECT = 302 KEY_TOKEN = "oauth2_token" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
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 SockJS ¶ added in v0.2.0
func (*SockJS) AddHandler ¶ added in v0.2.0
func (s *SockJS) AddHandler(event string, handler SockJSHandler)
func (*SockJS) AddSessionAndRead ¶ added in v0.2.0
type SockJSHandler ¶ added in v0.2.0
type SockJSWriter ¶ added in v0.2.0
type SockJSWriter struct {
// contains filtered or unexported fields
}
func NewSockJSWriter ¶ added in v0.2.0
func NewSockJSWriter(sockjs *SockJS, event string) *SockJSWriter
func (*SockJSWriter) SetFormater ¶ added in v0.2.0
func (s *SockJSWriter) SetFormater(f SockJSWriterFormatter)
type SockJSWriterFormatter ¶ added in v0.2.0
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.