Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler exposes both an API and a UI for a set of APIPortals. The handler can be safely updated to support more APIPortals as they come and go.
type PortalAPI ¶
type PortalAPI struct {
// contains filtered or unexported fields
}
PortalAPI is a handler that exposes APIPortal information.
func NewPortalAPI ¶
NewPortalAPI creates a new PortalAPI handler.
type PortalUI ¶
type PortalUI struct {
// contains filtered or unexported fields
}
PortalUI is a handler for exposing APIPortals' UI.
func NewPortalUI ¶
NewPortalUI creates a new PortalUI handler.
type UpdatableHandler ¶
type UpdatableHandler interface {
Update(portals []portal) error
}
UpdatableHandler is an updatable HTTP handler for serving dev portals.
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher watches APIPortals resources and builds configurations out of them.
func NewWatcher ¶
func NewWatcher(handler UpdatableHandler, portals v1alpha1.APIPortalLister, gateways v1alpha1.APIGatewayLister, apis v1alpha1.APILister, collections v1alpha1.APICollectionLister, accesses v1alpha1.APIAccessLister, ) *Watcher
NewWatcher returns a new watcher to track API management resources. It calls the given UpdatableHandler when a resource is modified.
func (*Watcher) OnAdd ¶
func (w *Watcher) OnAdd(obj interface{})
OnAdd implements Kubernetes cache.ResourceEventHandler so it can be used as an informer event handler.
func (*Watcher) OnDelete ¶
func (w *Watcher) OnDelete(oldObj interface{})
OnDelete implements Kubernetes cache.ResourceEventHandler so it can be used as an informer event handler.