Documentation ¶
Index ¶
- func Watch(topologyRepository, localRepositoryDir, topologyDir string, ...) (<-chan *Topology, error)
- type Directory
- type Subnet
- type Topology
- func (t *Topology) CheckIfIpIsReserved(ipAddr string) bool
- func (t *Topology) CheckIfMachineHasSubnet(name, subnetId string) (bool, error)
- func (t *Topology) FindDirectory(dirname string) (*Directory, error)
- func (t *Topology) GetLocationOfMachine(name string) (string, error)
- func (t *Topology) GetNumMachines() uint
- func (t *Topology) GetSubnetsForMachine(name string) ([]*Subnet, error)
- func (t *Topology) ListMachines(dirname string) ([]*fm_proto.Machine, error)
- func (t *Topology) Walk(fn func(*Directory) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Directory ¶
type Subnet ¶
type Subnet struct { hyper_proto.Subnet FirstAutoIP net.IP `json:",omitempty"` LastAutoIP net.IP `json:",omitempty"` ReservedIPs []net.IP `json:",omitempty"` // contains filtered or unexported fields }
func (*Subnet) CheckIfIpIsReserved ¶
type Topology ¶
type Topology struct { Root *Directory // contains filtered or unexported fields }
func (*Topology) CheckIfIpIsReserved ¶
func (*Topology) CheckIfMachineHasSubnet ¶
func (*Topology) FindDirectory ¶
func (*Topology) GetLocationOfMachine ¶
func (*Topology) GetNumMachines ¶
func (*Topology) GetSubnetsForMachine ¶
func (*Topology) ListMachines ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.