Documentation ¶
Index ¶
- type StorageWrapper
- func (n *StorageWrapper) Create(ctx context.Context, srv *model.Server) (*model.Server, error)
- func (n *StorageWrapper) Delete(ctx context.Context, id uuid.UUID) error
- func (n *StorageWrapper) GetByID(ctx context.Context, id uuid.UUID) (*model.Server, error)
- func (n *StorageWrapper) GetByName(ctx context.Context, name string) (*model.Server, error)
- func (n *StorageWrapper) List(ctx context.Context) ([]*model.Server, error)
- func (n *StorageWrapper) Save() error
- func (n *StorageWrapper) Update(ctx context.Context, srv *model.Server) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageWrapper ¶
type StorageWrapper struct {
// contains filtered or unexported fields
}
func NewStorageWrapper ¶
func NewStorageWrapper( s storage.Database, eventManager *events.EventManager, ) *StorageWrapper
func (*StorageWrapper) Save ¶
func (n *StorageWrapper) Save() error
Click to show internal directories.
Click to hide internal directories.