storagewrapper

package
v0.0.0-...-25dc0e1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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) Create

func (n *StorageWrapper) Create(ctx context.Context, srv *model.Server) (*model.Server, error)

func (*StorageWrapper) Delete

func (n *StorageWrapper) Delete(ctx context.Context, id uuid.UUID) error

func (*StorageWrapper) GetByID

func (n *StorageWrapper) GetByID(ctx context.Context, id uuid.UUID) (*model.Server, error)

func (*StorageWrapper) GetByName

func (n *StorageWrapper) GetByName(ctx context.Context, name string) (*model.Server, error)

func (*StorageWrapper) List

func (n *StorageWrapper) List(ctx context.Context) ([]*model.Server, error)

func (*StorageWrapper) Save

func (n *StorageWrapper) Save() error

func (*StorageWrapper) Update

func (n *StorageWrapper) Update(ctx context.Context, srv *model.Server) error

Jump to

Keyboard shortcuts

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