Versions in this module Expand all Collapse all v0 v0.0.1 Jun 28, 2024 Changes in this version + type Database struct + func NewInstalledVMs(db database.Database) *Database[InstallInfo] + func NewRegistry(db database.Database) *Database[RepoList] + func NewSourceInfo(db database.Database) *Database[SourceInfo] + func NewSubnet(db database.Database) *Database[Definition[types.Subnet]] + func NewVM(db database.Database) *Database[Definition[types.VM]] + func (c *Database[V]) Delete(key []byte) error + func (c *Database[V]) Get(key []byte) (V, error) + func (c *Database[V]) Has(key []byte) (bool, error) + func (c *Database[V]) Iterator() Iterator[V] + func (c *Database[V]) Put(key []byte, value V) error + type Definition struct + Commit plumbing.Hash + Definition T + type InstallInfo struct + ID string + Version version.Semantic + type Iterator struct + func NewIterator[V any](itr database.Iterator) *Iterator[V] + func (i *Iterator[V]) Error() error + func (i *Iterator[V]) Key() []byte + func (i *Iterator[V]) Next() bool + func (i *Iterator[V]) Release() + func (i *Iterator[V]) Value() (V, error) + type MockRepositoryFactory struct + func NewMockRepositoryFactory(ctrl *gomock.Controller) *MockRepositoryFactory + func (m *MockRepositoryFactory) EXPECT() *MockRepositoryFactoryMockRecorder + func (m *MockRepositoryFactory) GetRepository(alias []byte) Repository + type MockRepositoryFactoryMockRecorder struct + func (mr *MockRepositoryFactoryMockRecorder) GetRepository(alias interface{}) *gomock.Call + type MockStorage struct + func NewMockStorage[V any](ctrl *gomock.Controller) *MockStorage[V] + func (m *MockStorage[V]) Delete(key []byte) error + func (m *MockStorage[V]) EXPECT() *MockStorageMockRecorder[V] + func (m *MockStorage[V]) Get(key []byte) (V, error) + func (m *MockStorage[V]) Has(key []byte) (bool, error) + func (m *MockStorage[V]) Iterator() Iterator[V] + func (m *MockStorage[V]) Put(key []byte, value V) error + type MockStorageMockRecorder struct + func (mr *MockStorageMockRecorder[V]) Delete(key interface{}) *gomock.Call + func (mr *MockStorageMockRecorder[V]) Get(key interface{}) *gomock.Call + func (mr *MockStorageMockRecorder[V]) Has(key interface{}) *gomock.Call + func (mr *MockStorageMockRecorder[V]) Iterator() *gomock.Call + func (mr *MockStorageMockRecorder[V]) Put(key, value interface{}) *gomock.Call + type RepoList struct + Repositories []string + type Repository struct + Subnets Storage[Definition[types.Subnet]] + VMs Storage[Definition[types.VM]] + type RepositoryFactory interface + GetRepository func(alias []byte) Repository + func NewRepositoryFactory(db database.Database) RepositoryFactory + type SourceInfo struct + Alias string + Branch plumbing.ReferenceName + Commit plumbing.Hash + URL string + type Storage interface + Delete func(key []byte) error + Get func(key []byte) (V, error) + Has func(key []byte) (bool, error) + Iterator func() Iterator[V] + Put func(key []byte, value V) error