Documentation
¶
Index ¶
- type K8sApplicationRestHandler
- type K8sApplicationRestHandlerImpl
- func (handler *K8sApplicationRestHandlerImpl) ApplyResources(w http.ResponseWriter, r *http.Request)
- func (handler *K8sApplicationRestHandlerImpl) CreateEphemeralContainer(w http.ResponseWriter, r *http.Request)
- func (handler *K8sApplicationRestHandlerImpl) CreateResource(w http.ResponseWriter, r *http.Request)
- func (handler *K8sApplicationRestHandlerImpl) DeleteEphemeralContainer(w http.ResponseWriter, r *http.Request)
- func (handler *K8sApplicationRestHandlerImpl) DeleteResource(w http.ResponseWriter, r *http.Request)
- func (handler *K8sApplicationRestHandlerImpl) DownloadPodLogs(w http.ResponseWriter, r *http.Request)
- func (handler *K8sApplicationRestHandlerImpl) GetAllApiResourceGVKWithoutAuthorization(w http.ResponseWriter, r *http.Request)
- func (handler *K8sApplicationRestHandlerImpl) GetAllApiResources(w http.ResponseWriter, r *http.Request)
- func (handler *K8sApplicationRestHandlerImpl) GetHostUrlsByBatch(w http.ResponseWriter, r *http.Request)
- func (handler *K8sApplicationRestHandlerImpl) GetPodLogs(w http.ResponseWriter, r *http.Request)
- func (handler *K8sApplicationRestHandlerImpl) GetResource(w http.ResponseWriter, r *http.Request)
- func (handler *K8sApplicationRestHandlerImpl) GetResourceInfo(w http.ResponseWriter, r *http.Request)
- func (handler *K8sApplicationRestHandlerImpl) GetResourceList(w http.ResponseWriter, r *http.Request)
- func (handler *K8sApplicationRestHandlerImpl) GetTerminalSession(w http.ResponseWriter, r *http.Request)
- func (handler *K8sApplicationRestHandlerImpl) ListEvents(w http.ResponseWriter, r *http.Request)
- func (handler *K8sApplicationRestHandlerImpl) RotatePod(w http.ResponseWriter, r *http.Request)
- func (handler *K8sApplicationRestHandlerImpl) UpdateResource(w http.ResponseWriter, r *http.Request)
- type K8sApplicationRouter
- type K8sApplicationRouterImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sApplicationRestHandler ¶
type K8sApplicationRestHandler interface { GetResource(w http.ResponseWriter, r *http.Request) CreateResource(w http.ResponseWriter, r *http.Request) UpdateResource(w http.ResponseWriter, r *http.Request) DeleteResource(w http.ResponseWriter, r *http.Request) ListEvents(w http.ResponseWriter, r *http.Request) GetPodLogs(w http.ResponseWriter, r *http.Request) DownloadPodLogs(w http.ResponseWriter, r *http.Request) GetTerminalSession(w http.ResponseWriter, r *http.Request) GetResourceInfo(w http.ResponseWriter, r *http.Request) GetHostUrlsByBatch(w http.ResponseWriter, r *http.Request) GetAllApiResources(w http.ResponseWriter, r *http.Request) GetResourceList(w http.ResponseWriter, r *http.Request) ApplyResources(w http.ResponseWriter, r *http.Request) RotatePod(w http.ResponseWriter, r *http.Request) CreateEphemeralContainer(w http.ResponseWriter, r *http.Request) DeleteEphemeralContainer(w http.ResponseWriter, r *http.Request) GetAllApiResourceGVKWithoutAuthorization(w http.ResponseWriter, r *http.Request) }
type K8sApplicationRestHandlerImpl ¶
type K8sApplicationRestHandlerImpl struct {
// contains filtered or unexported fields
}
func NewK8sApplicationRestHandlerImpl ¶
func NewK8sApplicationRestHandlerImpl(logger *zap.SugaredLogger, k8sApplicationService application2.K8sApplicationService, pump connector.Pump, terminalSessionHandler terminal.TerminalSessionHandler, enforcer casbin.Enforcer, enforcerUtilHelm rbac.EnforcerUtilHelm, enforcerUtil rbac.EnforcerUtil, helmAppService client.HelmAppService, userService user.UserService, k8sCommonService k8s.K8sCommonService, validator *validator.Validate) *K8sApplicationRestHandlerImpl
func (*K8sApplicationRestHandlerImpl) ApplyResources ¶
func (handler *K8sApplicationRestHandlerImpl) ApplyResources(w http.ResponseWriter, r *http.Request)
func (*K8sApplicationRestHandlerImpl) CreateEphemeralContainer ¶
func (handler *K8sApplicationRestHandlerImpl) CreateEphemeralContainer(w http.ResponseWriter, r *http.Request)
func (*K8sApplicationRestHandlerImpl) CreateResource ¶
func (handler *K8sApplicationRestHandlerImpl) CreateResource(w http.ResponseWriter, r *http.Request)
func (*K8sApplicationRestHandlerImpl) DeleteEphemeralContainer ¶
func (handler *K8sApplicationRestHandlerImpl) DeleteEphemeralContainer(w http.ResponseWriter, r *http.Request)
func (*K8sApplicationRestHandlerImpl) DeleteResource ¶
func (handler *K8sApplicationRestHandlerImpl) DeleteResource(w http.ResponseWriter, r *http.Request)
func (*K8sApplicationRestHandlerImpl) DownloadPodLogs ¶ added in v0.6.29
func (handler *K8sApplicationRestHandlerImpl) DownloadPodLogs(w http.ResponseWriter, r *http.Request)
func (*K8sApplicationRestHandlerImpl) GetAllApiResourceGVKWithoutAuthorization ¶ added in v0.6.23
func (handler *K8sApplicationRestHandlerImpl) GetAllApiResourceGVKWithoutAuthorization(w http.ResponseWriter, r *http.Request)
GetAllApiResourceGVKWithoutAuthorization This function will the all the available api resource GVK list for specific cluster
func (*K8sApplicationRestHandlerImpl) GetAllApiResources ¶
func (handler *K8sApplicationRestHandlerImpl) GetAllApiResources(w http.ResponseWriter, r *http.Request)
func (*K8sApplicationRestHandlerImpl) GetHostUrlsByBatch ¶
func (handler *K8sApplicationRestHandlerImpl) GetHostUrlsByBatch(w http.ResponseWriter, r *http.Request)
func (*K8sApplicationRestHandlerImpl) GetPodLogs ¶
func (handler *K8sApplicationRestHandlerImpl) GetPodLogs(w http.ResponseWriter, r *http.Request)
func (*K8sApplicationRestHandlerImpl) GetResource ¶
func (handler *K8sApplicationRestHandlerImpl) GetResource(w http.ResponseWriter, r *http.Request)
func (*K8sApplicationRestHandlerImpl) GetResourceInfo ¶
func (handler *K8sApplicationRestHandlerImpl) GetResourceInfo(w http.ResponseWriter, r *http.Request)
func (*K8sApplicationRestHandlerImpl) GetResourceList ¶
func (handler *K8sApplicationRestHandlerImpl) GetResourceList(w http.ResponseWriter, r *http.Request)
func (*K8sApplicationRestHandlerImpl) GetTerminalSession ¶
func (handler *K8sApplicationRestHandlerImpl) GetTerminalSession(w http.ResponseWriter, r *http.Request)
func (*K8sApplicationRestHandlerImpl) ListEvents ¶
func (handler *K8sApplicationRestHandlerImpl) ListEvents(w http.ResponseWriter, r *http.Request)
func (*K8sApplicationRestHandlerImpl) RotatePod ¶
func (handler *K8sApplicationRestHandlerImpl) RotatePod(w http.ResponseWriter, r *http.Request)
func (*K8sApplicationRestHandlerImpl) UpdateResource ¶
func (handler *K8sApplicationRestHandlerImpl) UpdateResource(w http.ResponseWriter, r *http.Request)
type K8sApplicationRouter ¶
type K8sApplicationRouterImpl ¶
type K8sApplicationRouterImpl struct {
// contains filtered or unexported fields
}
func NewK8sApplicationRouterImpl ¶
func NewK8sApplicationRouterImpl(k8sApplicationRestHandler K8sApplicationRestHandler) *K8sApplicationRouterImpl
func (*K8sApplicationRouterImpl) InitK8sApplicationRouter ¶
func (impl *K8sApplicationRouterImpl) InitK8sApplicationRouter(k8sAppRouter *mux.Router)
Click to show internal directories.
Click to hide internal directories.