networkhost

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UseCase

type UseCase struct {
	// contains filtered or unexported fields
}

func New

func New(
	trm trm.Manager,
	networkHostSetupUC usecase.NetworkHostSetup,
	networkStorage storage.Network,
	networkHostStorage storage.NetworkHost,
) *UseCase

func (*UseCase) Add

func (u *UseCase) Add(
	ctx context.Context,
	networkHost *entity.NetworkHost,
) (*entity.NetworkHost, error)

func (*UseCase) Delete

func (u *UseCase) Delete(ctx context.Context, id uint64) error

func (*UseCase) ExportByNetworkIDForContext

func (u *UseCase) ExportByNetworkIDForContext(
	ctx context.Context,
	networkID uint64,
) (*entity.NetworkHostContextExportPayload, error)

ExportByNetworkIDForContext exports network hosts without including the network ID in the payload This is suitable for exports from a specific network context where the network is already known.

func (*UseCase) ImportByNetworkIDFromJSON

func (u *UseCase) ImportByNetworkIDFromJSON(
	ctx context.Context,
	networkID uint64,
	jsonData string,
) error

func (*UseCase) List

func (u *UseCase) List(
	ctx context.Context,
	filter *entity.ListNetworkHostFilter,
) ([]*entity.NetworkHost, error)

Jump to

Keyboard shortcuts

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