Documentation
¶
Overview ¶
Package 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 ¶
func (m *MockVMGetter) EXPECT() *MockVMGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockVMGetterMockRecorder ¶
type MockVMGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockVMGetterMockRecorder is the mock recorder for MockVMGetter.
func (*MockVMGetterMockRecorder) Get ¶
func (mr *MockVMGetterMockRecorder) Get() *gomock.Call
Get indicates an expected call of Get.
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 ¶
func (m *MockVMRegistry) EXPECT() *MockVMRegistryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockVMRegistryMockRecorder ¶
type MockVMRegistryMockRecorder struct {
// contains filtered or unexported fields
}
MockVMRegistryMockRecorder is the mock recorder for MockVMRegistry.
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
}
VMGetterConfig defines settings for VMGetter
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 ¶
VMRegistryConfig defines configurations for VMRegistry