fsstorer

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 16 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IP

type IP [4]byte

func (IP) String

func (ip IP) String() string

type Storer

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

func New

func New(topDir string, logger log.DebugLogger) (*Storer, error)

func (*Storer) AddIPsForHypervisor

func (s *Storer) AddIPsForHypervisor(hypervisor net.IP,
	addrs []net.IP) error

func (*Storer) CheckIpIsRegistered

func (s *Storer) CheckIpIsRegistered(addr net.IP) (bool, error)

func (*Storer) DeleteVm

func (s *Storer) DeleteVm(hypervisor net.IP, ipAddr string) error

func (*Storer) GetHypervisorForIp

func (s *Storer) GetHypervisorForIp(addr net.IP) (net.IP, error)

func (*Storer) GetIPsForHypervisor

func (s *Storer) GetIPsForHypervisor(hypervisor net.IP) ([]net.IP, error)

func (*Storer) ListVMs

func (s *Storer) ListVMs(hypervisor net.IP) ([]string, error)

func (*Storer) ReadMachineSerialNumber

func (s *Storer) ReadMachineSerialNumber(hypervisor net.IP) (string, error)

func (*Storer) ReadMachineTags

func (s *Storer) ReadMachineTags(hypervisor net.IP) (tags.Tags, error)

func (*Storer) ReadVm

func (s *Storer) ReadVm(hypervisor net.IP,
	ipAddr string) (*proto.VmInfo, error)

func (*Storer) SetIPsForHypervisor

func (s *Storer) SetIPsForHypervisor(hypervisor net.IP,
	addrs []net.IP) error

func (*Storer) UnregisterHypervisor

func (s *Storer) UnregisterHypervisor(hypervisor net.IP) error

func (*Storer) WriteMachineSerialNumber

func (s *Storer) WriteMachineSerialNumber(hypervisor net.IP,
	serialNumber string) error

func (*Storer) WriteMachineTags

func (s *Storer) WriteMachineTags(hypervisor net.IP, tgs tags.Tags) error

func (*Storer) WriteVm

func (s *Storer) WriteVm(hypervisor net.IP, ipAddr string,
	vmInfo proto.VmInfo) error

Jump to

Keyboard shortcuts

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