adaptorinterface

package
v0.0.0-...-57fbcf5 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HwMgrAdaptor

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

func NewHwMgrAdaptor

func NewHwMgrAdaptor(config *HwMgrAdaptorConfig) (hwmgr *HwMgrAdaptor, err error)

type HwMgrAdaptorConfig

type HwMgrAdaptorConfig struct {
	client.Client
	// contains filtered or unexported fields
}

Define the HwMgrAdaptor structures

type HwMgrAdaptorIntf

type HwMgrAdaptorIntf interface {
	SetupAdaptor(mgr ctrl.Manager) error
	HandleNodePool(ctx context.Context, hwmgr *pluginv1alpha1.HardwareManager, nodepool *hwmgmtv1alpha1.NodePool) (ctrl.Result, error)
	HandleNodePoolDeletion(ctx context.Context, hwmgr *pluginv1alpha1.HardwareManager, nodepool *hwmgmtv1alpha1.NodePool) error
	GetResourcePools(ctx context.Context, hwmgr *pluginv1alpha1.HardwareManager) ([]invserver.ResourcePoolInfo, int, error)
	GetResources(ctx context.Context, hwmgr *pluginv1alpha1.HardwareManager) ([]invserver.ResourceInfo, int, error)
}

Jump to

Keyboard shortcuts

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