resource

package
v1.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

func (*IntrospectHandler) Start

func (i *IntrospectHandler) Start(_ context.Context) error

StartENICleaner starts the ENI Cleaner routine that cleans up dangling ENIs created by the controller

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func (*Manager) GetResourceHandler

func (m *Manager) GetResourceHandler(resourceName string) (handler.Handler, bool)

func (*Manager) GetResourceProviders

func (m *Manager) GetResourceProviders() map[string]provider.ResourceProvider

type Resource

type Resource struct {
	handler.Handler
	provider.ResourceProvider
}

type ResourceManager

type ResourceManager interface {
	GetResourceProviders() map[string]provider.ResourceProvider
	GetResourceHandler(resourceName string) (handler.Handler, bool)
}

func NewResourceManager

func NewResourceManager(ctx context.Context, resourceNames []string, wrapper api.Wrapper, log logr.Logger, healthzHandler *rcHealthz.HealthzHandler) (ResourceManager, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL