registry

package
v0.0.0-...-cb9e034 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Package registry is a generated GoMock package.

Package mock_registry is a generated GoMock package.

Package registry is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockVMGetter

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

MockVMGetter is a mock of VMGetter interface.

func NewMockVMGetter

func NewMockVMGetter(ctrl *gomock.Controller) *MockVMGetter

NewMockVMGetter creates a new mock instance.

func (*MockVMGetter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockVMGetter) Get

func (m *MockVMGetter) Get() (map[ids.ID]vms.Factory, map[ids.ID]vms.Factory, error)

Get mocks base method.

type MockVMGetterMockRecorder

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

MockVMGetterMockRecorder is the mock recorder for MockVMGetter.

func (*MockVMGetterMockRecorder) Get

Get indicates an expected call of Get.

type MockVMRegisterer

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

MockVMRegisterer is a mock of VMRegisterer interface.

func NewMockVMRegisterer

func NewMockVMRegisterer(ctrl *gomock.Controller) *MockVMRegisterer

NewMockVMRegisterer creates a new mock instance.

func (*MockVMRegisterer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockVMRegisterer) Register

func (m *MockVMRegisterer) Register(arg0 ids.ID, arg1 vms.Factory) error

Register mocks base method.

func (*MockVMRegisterer) RegisterWithReadLock

func (m *MockVMRegisterer) RegisterWithReadLock(arg0 ids.ID, arg1 vms.Factory) error

RegisterWithReadLock mocks base method.

type MockVMRegistererMockRecorder

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

MockVMRegistererMockRecorder is the mock recorder for MockVMRegisterer.

func (*MockVMRegistererMockRecorder) Register

func (mr *MockVMRegistererMockRecorder) Register(arg0, arg1 interface{}) *gomock.Call

Register indicates an expected call of Register.

func (*MockVMRegistererMockRecorder) RegisterWithReadLock

func (mr *MockVMRegistererMockRecorder) RegisterWithReadLock(arg0, arg1 interface{}) *gomock.Call

RegisterWithReadLock indicates an expected call of RegisterWithReadLock.

type MockVMRegistry

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

MockVMRegistry is a mock of VMRegistry interface.

func NewMockVMRegistry

func NewMockVMRegistry(ctrl *gomock.Controller) *MockVMRegistry

NewMockVMRegistry creates a new mock instance.

func (*MockVMRegistry) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockVMRegistry) Reload

func (m *MockVMRegistry) Reload() ([]ids.ID, map[ids.ID]error, error)

Reload mocks base method.

func (*MockVMRegistry) ReloadWithReadLock

func (m *MockVMRegistry) ReloadWithReadLock() ([]ids.ID, map[ids.ID]error, error)

ReloadWithReadLock mocks base method.

type MockVMRegistryMockRecorder

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

MockVMRegistryMockRecorder is the mock recorder for MockVMRegistry.

func (*MockVMRegistryMockRecorder) Reload

func (mr *MockVMRegistryMockRecorder) Reload() *gomock.Call

Reload indicates an expected call of Reload.

func (*MockVMRegistryMockRecorder) ReloadWithReadLock

func (mr *MockVMRegistryMockRecorder) ReloadWithReadLock() *gomock.Call

ReloadWithReadLock indicates an expected call of ReloadWithReadLock.

type Mockregisterer

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

Mockregisterer is a mock of registerer interface.

func NewMockregisterer

func NewMockregisterer(ctrl *gomock.Controller) *Mockregisterer

NewMockregisterer creates a new mock instance.

func (*Mockregisterer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*Mockregisterer) Register

func (m *Mockregisterer) Register(arg0 ids.ID, arg1 vms.Factory) error

Register mocks base method.

type MockregistererMockRecorder

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

MockregistererMockRecorder is the mock recorder for Mockregisterer.

func (*MockregistererMockRecorder) Register

func (mr *MockregistererMockRecorder) Register(arg0, arg1 interface{}) *gomock.Call

Register indicates an expected call of Register.

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
}

VMGetterConfig defines settings for VMGetter

type VMRegisterer

type VMRegisterer interface {

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

VMRegisterer defines functionality to install a virtual machine.

func NewVMRegisterer

func NewVMRegisterer(config VMRegistererConfig) VMRegisterer

NewVMRegisterer returns an instance of VMRegisterer

type VMRegistererConfig

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

VMRegistererConfig configures settings for VMRegisterer.

type VMRegistry

type VMRegistry interface {
	// Reload installs all non-installed vms on the node.
	Reload() ([]ids.ID, map[ids.ID]error, error)
	// ReloadWithReadLock installs all non-installed vms on the node assuming
	// the http read lock is currently held.
	ReloadWithReadLock() ([]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
	VMRegisterer VMRegisterer
}

VMRegistryConfig defines configurations for VMRegistry

Jump to

Keyboard shortcuts

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