Documentation ¶
Overview ¶
Package vms is a generated GoMock package.
Index ¶
- Variables
- type Factory
- type Manager
- type MockFactory
- type MockFactoryMockRecorder
- type MockManager
- func (m *MockManager) Alias(arg0 ids.ID, arg1 string) error
- func (m *MockManager) Aliases(arg0 ids.ID) ([]string, error)
- func (m *MockManager) EXPECT() *MockManagerMockRecorder
- func (m *MockManager) GetFactory(arg0 ids.ID) (Factory, error)
- func (m *MockManager) ListFactories() ([]ids.ID, error)
- func (m *MockManager) Lookup(arg0 string) (ids.ID, error)
- func (m *MockManager) PrimaryAlias(arg0 ids.ID) (string, error)
- func (m *MockManager) PrimaryAliasOrDefault(arg0 ids.ID) string
- func (m *MockManager) RegisterFactory(arg0 context.Context, arg1 ids.ID, arg2 Factory) error
- func (m *MockManager) RemoveAliases(arg0 ids.ID)
- func (m *MockManager) Versions() (map[string]string, error)
- type MockManagerMockRecorder
- func (mr *MockManagerMockRecorder) Alias(arg0, arg1 any) *gomock.Call
- func (mr *MockManagerMockRecorder) Aliases(arg0 any) *gomock.Call
- func (mr *MockManagerMockRecorder) GetFactory(arg0 any) *gomock.Call
- func (mr *MockManagerMockRecorder) ListFactories() *gomock.Call
- func (mr *MockManagerMockRecorder) Lookup(arg0 any) *gomock.Call
- func (mr *MockManagerMockRecorder) PrimaryAlias(arg0 any) *gomock.Call
- func (mr *MockManagerMockRecorder) PrimaryAliasOrDefault(arg0 any) *gomock.Call
- func (mr *MockManagerMockRecorder) RegisterFactory(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockManagerMockRecorder) RemoveAliases(arg0 any) *gomock.Call
- func (mr *MockManagerMockRecorder) Versions() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { ids.Aliaser // Return a factory that can create new instances of the vm whose ID is // [vmID] GetFactory(vmID ids.ID) (Factory, error) // Map [vmID] to [factory]. [factory] creates new instances of the vm whose // ID is [vmID] RegisterFactory(ctx context.Context, vmID ids.ID, factory Factory) error // ListFactories returns all the IDs that have had factories registered. ListFactories() ([]ids.ID, error) // Versions returns the primary alias of the VM mapped to the reported // version of the VM for all the registered VMs that reported versions. Versions() (map[string]string, error) }
Manager tracks a collection of VM factories, their aliases, and their versions. It has the following functionality:
- Register a VM factory. To register a VM is to associate its ID with a VMFactory which, when New() is called upon it, creates a new instance of that VM.
- Get a VM factory. Given the ID of a VM that has been registered, return the factory that the ID is associated with.
- Manage the aliases of VMs
- Manage the versions of VMs
type MockFactory ¶
type MockFactory struct {
// contains filtered or unexported fields
}
MockFactory is a mock of Factory interface.
func NewMockFactory ¶
func NewMockFactory(ctrl *gomock.Controller) *MockFactory
NewMockFactory creates a new mock instance.
func (*MockFactory) EXPECT ¶
func (m *MockFactory) EXPECT() *MockFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockFactoryMockRecorder ¶
type MockFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockFactoryMockRecorder is the mock recorder for MockFactory.
type MockManager ¶
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface.
func NewMockManager ¶
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance.
func (*MockManager) Alias ¶
func (m *MockManager) Alias(arg0 ids.ID, arg1 string) error
Alias mocks base method.
func (*MockManager) Aliases ¶
func (m *MockManager) Aliases(arg0 ids.ID) ([]string, error)
Aliases mocks base method.
func (*MockManager) EXPECT ¶
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManager) GetFactory ¶
func (m *MockManager) GetFactory(arg0 ids.ID) (Factory, error)
GetFactory mocks base method.
func (*MockManager) ListFactories ¶
func (m *MockManager) ListFactories() ([]ids.ID, error)
ListFactories mocks base method.
func (*MockManager) Lookup ¶
func (m *MockManager) Lookup(arg0 string) (ids.ID, error)
Lookup mocks base method.
func (*MockManager) PrimaryAlias ¶
func (m *MockManager) PrimaryAlias(arg0 ids.ID) (string, error)
PrimaryAlias mocks base method.
func (*MockManager) PrimaryAliasOrDefault ¶
func (m *MockManager) PrimaryAliasOrDefault(arg0 ids.ID) string
PrimaryAliasOrDefault mocks base method.
func (*MockManager) RegisterFactory ¶
RegisterFactory mocks base method.
func (*MockManager) RemoveAliases ¶
func (m *MockManager) RemoveAliases(arg0 ids.ID)
RemoveAliases mocks base method.
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) Alias ¶
func (mr *MockManagerMockRecorder) Alias(arg0, arg1 any) *gomock.Call
Alias indicates an expected call of Alias.
func (*MockManagerMockRecorder) Aliases ¶
func (mr *MockManagerMockRecorder) Aliases(arg0 any) *gomock.Call
Aliases indicates an expected call of Aliases.
func (*MockManagerMockRecorder) GetFactory ¶
func (mr *MockManagerMockRecorder) GetFactory(arg0 any) *gomock.Call
GetFactory indicates an expected call of GetFactory.
func (*MockManagerMockRecorder) ListFactories ¶
func (mr *MockManagerMockRecorder) ListFactories() *gomock.Call
ListFactories indicates an expected call of ListFactories.
func (*MockManagerMockRecorder) Lookup ¶
func (mr *MockManagerMockRecorder) Lookup(arg0 any) *gomock.Call
Lookup indicates an expected call of Lookup.
func (*MockManagerMockRecorder) PrimaryAlias ¶
func (mr *MockManagerMockRecorder) PrimaryAlias(arg0 any) *gomock.Call
PrimaryAlias indicates an expected call of PrimaryAlias.
func (*MockManagerMockRecorder) PrimaryAliasOrDefault ¶
func (mr *MockManagerMockRecorder) PrimaryAliasOrDefault(arg0 any) *gomock.Call
PrimaryAliasOrDefault indicates an expected call of PrimaryAliasOrDefault.
func (*MockManagerMockRecorder) RegisterFactory ¶
func (mr *MockManagerMockRecorder) RegisterFactory(arg0, arg1, arg2 any) *gomock.Call
RegisterFactory indicates an expected call of RegisterFactory.
func (*MockManagerMockRecorder) RemoveAliases ¶
func (mr *MockManagerMockRecorder) RemoveAliases(arg0 any) *gomock.Call
RemoveAliases indicates an expected call of RemoveAliases.
func (*MockManagerMockRecorder) Versions ¶
func (mr *MockManagerMockRecorder) Versions() *gomock.Call
Versions indicates an expected call of Versions.
Directories ¶
Path | Synopsis |
---|---|
block
Package block is a generated GoMock package.
|
Package block is a generated GoMock package. |
block/executor
Package executor is a generated GoMock package.
|
Package executor is a generated GoMock package. |
metrics
Package metrics is a generated GoMock package.
|
Package metrics is a generated GoMock package. |
state
Package state is a generated GoMock package.
|
Package state is a generated GoMock package. |
txs
Package txs is a generated GoMock package.
|
Package txs is a generated GoMock package. |
txs/mempool
Package mempool is a generated GoMock package.
|
Package mempool is a generated GoMock package. |
components
|
|
cryft
Package cryft is a generated GoMock package.
|
Package cryft is a generated GoMock package. |
verify
Package verify is a generated GoMock package.
|
Package verify is a generated GoMock package. |
example
|
|
block
Package block is a generated GoMock package.
|
Package block is a generated GoMock package. |
block/executor
Package executor is a generated GoMock package.
|
Package executor is a generated GoMock package. |
fx
Package fx is a generated GoMock package.
|
Package fx is a generated GoMock package. |
state
Package state is a generated GoMock package.
|
Package state is a generated GoMock package. |
txs
Package txs is a generated GoMock package.
|
Package txs is a generated GoMock package. |
txs/mempool
Package mempool is a generated GoMock package.
|
Package mempool is a generated GoMock package. |
utxo
Package utxo is a generated GoMock package.
|
Package utxo is a generated GoMock package. |
Package proposervm is a generated GoMock package.
|
Package proposervm is a generated GoMock package. |
proposer
Package proposer is a generated GoMock package.
|
Package proposer is a generated GoMock package. |
scheduler
Package scheduler is a generated GoMock package.
|
Package scheduler is a generated GoMock package. |
state
Package state is a generated GoMock package.
|
Package state is a generated GoMock package. |
Package registry is a generated GoMock package.
|
Package registry is a generated GoMock package. |
txs
|
|