MCPcopy Create free account
hub / github.com/ECSTeam/cloudfoundry-top-plugin / checkIfUpdatableView

Method checkIfUpdatableView

ui/masterUi.go:369–375  ·  view source on GitHub ↗
(x interface{})

Source from the content-addressed store, hash-verified

367}
368
369func (mui *MasterUI) checkIfUpdatableView(x interface{}) bool {
370 // Declare a type object representing UpdatableView
371 updatableView := reflect.TypeOf((*masterUIInterface.UpdatableView)(nil)).Elem()
372 // Get a type object of the pointer on the object represented by the parameter
373 // and see if it implements UpdatableView
374 return reflect.TypeOf(x).Implements(updatableView)
375}
376
377func (mui *MasterUI) CloseViewByName(viewName string) error {
378 m := mui.layoutManager.GetManagerByViewName(viewName)

Callers 1

CloseViewMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected