Documentation ¶
Index ¶
- Variables
- type UserTerminalAccessRestHandler
- type UserTerminalAccessRestHandlerImpl
- func (handler UserTerminalAccessRestHandlerImpl) DisconnectAllTerminalSessionAndRetry(w http.ResponseWriter, r *http.Request)
- func (handler UserTerminalAccessRestHandlerImpl) DisconnectTerminalSession(w http.ResponseWriter, r *http.Request)
- func (handler UserTerminalAccessRestHandlerImpl) EditPodManifest(w http.ResponseWriter, r *http.Request)
- func (handler UserTerminalAccessRestHandlerImpl) FetchTerminalPodEvents(w http.ResponseWriter, r *http.Request)
- func (handler UserTerminalAccessRestHandlerImpl) FetchTerminalPodManifest(w http.ResponseWriter, r *http.Request)
- func (handler UserTerminalAccessRestHandlerImpl) FetchTerminalStatus(w http.ResponseWriter, r *http.Request)
- func (handler UserTerminalAccessRestHandlerImpl) StartTerminalSession(w http.ResponseWriter, r *http.Request)
- func (handler UserTerminalAccessRestHandlerImpl) StopTerminalSession(w http.ResponseWriter, r *http.Request)
- func (handler UserTerminalAccessRestHandlerImpl) UpdateTerminalSession(w http.ResponseWriter, r *http.Request)
- func (handler UserTerminalAccessRestHandlerImpl) UpdateTerminalShellSession(w http.ResponseWriter, r *http.Request)
- func (handler UserTerminalAccessRestHandlerImpl) ValidateShell(w http.ResponseWriter, r *http.Request)
- type UserTerminalAccessRouter
- type UserTerminalAccessRouterImpl
Constants ¶
This section is empty.
Variables ¶
View Source
var TerminalWireSet = wire.NewSet( NewUserTerminalAccessRouterImpl, wire.Bind(new(UserTerminalAccessRouter), new(*UserTerminalAccessRouterImpl)), NewUserTerminalAccessRestHandlerImpl, wire.Bind(new(UserTerminalAccessRestHandler), new(*UserTerminalAccessRestHandlerImpl)), clusterTerminalAccess.GetTerminalAccessConfig, clusterTerminalAccess.NewUserTerminalAccessServiceImpl, wire.Bind(new(clusterTerminalAccess.UserTerminalAccessService), new(*clusterTerminalAccess.UserTerminalAccessServiceImpl)), repository.NewTerminalAccessRepositoryImpl, wire.Bind(new(repository.TerminalAccessRepository), new(*repository.TerminalAccessRepositoryImpl)), )
Functions ¶
This section is empty.
Types ¶
type UserTerminalAccessRestHandler ¶
type UserTerminalAccessRestHandler interface { StartTerminalSession(w http.ResponseWriter, r *http.Request) UpdateTerminalSession(w http.ResponseWriter, r *http.Request) UpdateTerminalShellSession(w http.ResponseWriter, r *http.Request) FetchTerminalStatus(w http.ResponseWriter, r *http.Request) StopTerminalSession(w http.ResponseWriter, r *http.Request) DisconnectTerminalSession(w http.ResponseWriter, r *http.Request) DisconnectAllTerminalSessionAndRetry(w http.ResponseWriter, r *http.Request) FetchTerminalPodEvents(w http.ResponseWriter, r *http.Request) FetchTerminalPodManifest(w http.ResponseWriter, r *http.Request) ValidateShell(w http.ResponseWriter, r *http.Request) EditPodManifest(w http.ResponseWriter, r *http.Request) }
type UserTerminalAccessRestHandlerImpl ¶
type UserTerminalAccessRestHandlerImpl struct { Logger *zap.SugaredLogger UserTerminalAccessService clusterTerminalAccess.UserTerminalAccessService Enforcer casbin.Enforcer UserService user.UserService // contains filtered or unexported fields }
func NewUserTerminalAccessRestHandlerImpl ¶
func NewUserTerminalAccessRestHandlerImpl(logger *zap.SugaredLogger, userTerminalAccessService clusterTerminalAccess.UserTerminalAccessService, Enforcer casbin.Enforcer, UserService user.UserService, validator *validator.Validate, clusterRbacService rbac.ClusterRbacService) *UserTerminalAccessRestHandlerImpl
func (UserTerminalAccessRestHandlerImpl) DisconnectAllTerminalSessionAndRetry ¶
func (handler UserTerminalAccessRestHandlerImpl) DisconnectAllTerminalSessionAndRetry(w http.ResponseWriter, r *http.Request)
func (UserTerminalAccessRestHandlerImpl) DisconnectTerminalSession ¶
func (handler UserTerminalAccessRestHandlerImpl) DisconnectTerminalSession(w http.ResponseWriter, r *http.Request)
func (UserTerminalAccessRestHandlerImpl) EditPodManifest ¶ added in v0.6.19
func (handler UserTerminalAccessRestHandlerImpl) EditPodManifest(w http.ResponseWriter, r *http.Request)
func (UserTerminalAccessRestHandlerImpl) FetchTerminalPodEvents ¶
func (handler UserTerminalAccessRestHandlerImpl) FetchTerminalPodEvents(w http.ResponseWriter, r *http.Request)
func (UserTerminalAccessRestHandlerImpl) FetchTerminalPodManifest ¶
func (handler UserTerminalAccessRestHandlerImpl) FetchTerminalPodManifest(w http.ResponseWriter, r *http.Request)
func (UserTerminalAccessRestHandlerImpl) FetchTerminalStatus ¶
func (handler UserTerminalAccessRestHandlerImpl) FetchTerminalStatus(w http.ResponseWriter, r *http.Request)
func (UserTerminalAccessRestHandlerImpl) StartTerminalSession ¶
func (handler UserTerminalAccessRestHandlerImpl) StartTerminalSession(w http.ResponseWriter, r *http.Request)
func (UserTerminalAccessRestHandlerImpl) StopTerminalSession ¶
func (handler UserTerminalAccessRestHandlerImpl) StopTerminalSession(w http.ResponseWriter, r *http.Request)
func (UserTerminalAccessRestHandlerImpl) UpdateTerminalSession ¶
func (handler UserTerminalAccessRestHandlerImpl) UpdateTerminalSession(w http.ResponseWriter, r *http.Request)
func (UserTerminalAccessRestHandlerImpl) UpdateTerminalShellSession ¶
func (handler UserTerminalAccessRestHandlerImpl) UpdateTerminalShellSession(w http.ResponseWriter, r *http.Request)
func (UserTerminalAccessRestHandlerImpl) ValidateShell ¶ added in v0.6.15
func (handler UserTerminalAccessRestHandlerImpl) ValidateShell(w http.ResponseWriter, r *http.Request)
type UserTerminalAccessRouterImpl ¶
type UserTerminalAccessRouterImpl struct {
// contains filtered or unexported fields
}
func NewUserTerminalAccessRouterImpl ¶
func NewUserTerminalAccessRouterImpl(userTerminalAccessRestHandler UserTerminalAccessRestHandler) *UserTerminalAccessRouterImpl
func (UserTerminalAccessRouterImpl) InitTerminalAccessRouter ¶
func (router UserTerminalAccessRouterImpl) InitTerminalAccessRouter(userTerminalAccessRouter *mux.Router)
Click to show internal directories.
Click to hide internal directories.