storage

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrPrefixUniqueViolation     = "UNIQUE constraint failed"
	ErrPrefixForeignKeyViolation = "FOREIGN KEY constraint failed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host interface {
	Add(ctx context.Context, host *entity.Host) (*entity.Host, error)
	List(ctx context.Context, filter *entity.ListHostFilter) ([]*entity.Host, error)
	Delete(ctx context.Context, id uint64) error
}

type Network

type Network interface {
	Add(ctx context.Context, network *entity.Network) (*entity.Network, error)
	Get(ctx context.Context, id uint64) (*entity.Network, error)
	List(ctx context.Context, filter *entity.ListNetworkFilter) ([]*entity.Network, error)
	Delete(ctx context.Context, id uint64) error
}

type NetworkHost

type NetworkHost interface {
	Add(ctx context.Context, networkHost *entity.NetworkHost) (*entity.NetworkHost, error)
	Get(ctx context.Context, id uint64) (*entity.NetworkHost, error)
	List(ctx context.Context, filter *entity.ListNetworkHostFilter) ([]*entity.NetworkHost, error)
	Delete(ctx context.Context, id uint64) error
}

type NetworkHostSetup

type NetworkHostSetup interface {
	AddBatch(ctx context.Context, batch []*entity.NetworkHostSetup) error
	DeleteBatchByNetworkHostIDs(ctx context.Context, networkHostIDs []uint64) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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