resource

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 17 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) 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 Resource

type Resource struct {
	handler.Handler
	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)

Jump to

Keyboard shortcuts

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