providers

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IPv4 = "IPv4"
	IPv6 = "IPv6"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressPersister

type AddressPersister interface {
	Save(address domain.Address) error
}

type InventoryExtractor

type InventoryExtractor interface {
	ByUUID(uuid string) (domain.Inventory, error)
	ByID(id domain.InventoryID) (domain.Inventory, error)
}

type InventoryPersister

type InventoryPersister interface {
	Save(inventory domain.Inventory) error
}

type LoopbackAddressExtractor

type LoopbackAddressExtractor interface {
	Try(times int) LoopbackAddressExtractor
	IPv4ByMachineUUID(uuid string) (ipdomain.Address, error)
	IPv6ByMachineUUID(uuid string) (ipdomain.Address, error)
}

type LoopbackSubnetExtractor

type LoopbackSubnetExtractor interface {
	ByType(ipType string) (dto.SubnetInfo, error)
	IPv6ByName(name string) (dto.SubnetInfo, error)
}

type MachineExtractor

type MachineExtractor interface {
	ByID(machineID domain.MachineID) (domain.Machine, error)
	ByUUID(uuid string) (domain.Machine, error)
}

type MachinePersister

type MachinePersister interface {
	Save(machine domain.Machine) error
	Create(machine domain.Machine) error
	Update(machine domain.Machine) error
}

type ServerExecutor

type ServerExecutor interface {
	Enable(info domain.Server) error
}

type ServerExtractor

type ServerExtractor interface {
	ByUUID(uuid string) (domain.Server, error)
	Get(request dto.Request) (domain.Server, error)
}

type SubnetPersister

type SubnetPersister interface {
	Save(info dto.SubnetInfo) error
}

type SwitchExtractor

type SwitchExtractor interface {
	ByChassisID(chassisID string) (dto.SwitchInfo, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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