Help us shape the future of Go! Take the 2026 Go Developer Survey

registry

package
v1.22.82 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VMGetter

type VMGetter interface {
	// Get fetches the VMs that are registered and the VMs that are not
	// registered but available to be installed on the node.
	Get() (
		registeredVMs map[ids.ID]vms.Factory,
		unregisteredVMs map[ids.ID]vms.Factory,
		err error,
	)
}

VMGetter defines functionality to get the plugins on the node.

func NewVMGetter

func NewVMGetter(config VMGetterConfig) VMGetter

NewVMGetter returns a new instance of a VMGetter

type VMGetterConfig

type VMGetterConfig struct {
	FileReader      filesystem.Reader
	Manager         vms.Manager
	PluginDirectory string
	CPUTracker      resource.ProcessTracker
	RuntimeTracker  runtime.Tracker
	MetricsGatherer metrics.MultiGatherer
}

VMGetterConfig defines settings for VMGetter

type VMRegisterer added in v1.1.11

type VMRegisterer interface {

	// RegisterWithReadLock installs the VM assuming that the http read-lock is
	// held.
	RegisterWithReadLock(context.Context, ids.ID, vms.Factory) error
	// contains filtered or unexported methods
}

VMRegisterer defines functionality to install a virtual machine.

func NewVMRegisterer added in v1.1.11

func NewVMRegisterer(config VMRegistererConfig) VMRegisterer

NewVMRegisterer returns an instance of VMRegisterer

type VMRegistererConfig added in v1.1.11

type VMRegistererConfig struct {
	APIServer    server.Server
	Log          log.Logger
	VMFactoryLog log.Logger
	VMManager    vms.Manager
}

VMRegistererConfig configures settings for VMRegisterer.

type VMRegistry

type VMRegistry interface {
	// Reload installs all non-installed vms on the node.
	Reload(ctx context.Context) ([]ids.ID, map[ids.ID]error, error)
}

VMRegistry defines functionality to get any new virtual machines on the node, and install them if they're not already installed.

func NewVMRegistry

func NewVMRegistry(config VMRegistryConfig) VMRegistry

NewVMRegistry returns a VMRegistry

type VMRegistryConfig

type VMRegistryConfig struct {
	VMGetter  VMGetter
	VMManager vms.Manager
}

VMRegistryConfig defines configurations for VMRegistry

Directories

Path Synopsis
Package registrymock is a generated GoMock package.
Package registrymock is a generated GoMock package.

Jump to

Keyboard shortcuts

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