Documentation ¶
Index ¶
- Constants
- type IntrospectHandler
- func (i *IntrospectHandler) NodeResourceHandler(w http.ResponseWriter, r *http.Request)
- func (i *IntrospectHandler) ResourceHandler(w http.ResponseWriter, _ *http.Request)
- func (i *IntrospectHandler) SetupWithManager(mgr ctrl.Manager, healthzHanlder *rcHealthz.HealthzHandler) error
- func (i *IntrospectHandler) Start(_ context.Context) error
- type Manager
- type Resource
- type ResourceManager
Constants ¶
View Source
const ( GetNodeResourcesPath = "/node/" GetAllResourcesPath = "/resources" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntrospectHandler ¶
type IntrospectHandler struct { Log logr.Logger BindAddress string ResourceManager ResourceManager }
func (*IntrospectHandler) NodeResourceHandler ¶
func (i *IntrospectHandler) NodeResourceHandler(w http.ResponseWriter, r *http.Request)
NodeResourceHandler returns all the resources associated with the Node
func (*IntrospectHandler) ResourceHandler ¶
func (i *IntrospectHandler) ResourceHandler(w http.ResponseWriter, _ *http.Request)
ResourceHandler returns all the nodes associated with the resource
func (*IntrospectHandler) SetupWithManager ¶
func (i *IntrospectHandler) SetupWithManager(mgr ctrl.Manager, healthzHanlder *rcHealthz.HealthzHandler) error
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) GetResourceHandler ¶
func (*Manager) GetResourceProvider ¶ added in v1.1.8
func (m *Manager) GetResourceProvider(resourceName string) (provider.ResourceProvider, bool)
func (*Manager) GetResourceProviders ¶
func (m *Manager) GetResourceProviders() map[string]provider.ResourceProvider
type ResourceManager ¶
type ResourceManager interface { GetResourceProviders() map[string]provider.ResourceProvider GetResourceProvider(resourceName string) (provider.ResourceProvider, bool) GetResourceHandler(resourceName string) (handler.Handler, bool) }
func NewResourceManager ¶
func NewResourceManager(ctx context.Context, resourceNames []string, wrapper api.Wrapper, log logr.Logger, healthzHandler *rcHealthz.HealthzHandler, conditions condition.Conditions) (ResourceManager, error)
Click to show internal directories.
Click to hide internal directories.