Documentation
¶
Index ¶
- func IsMatch(s *pb.Selector, h *pb.HostInfo) bool
- func NewServer() pb.InventoryServer
- type InvServer
- func (srv *InvServer) Add(to string, ids []string) (string, error)
- func (srv *InvServer) GetHost(req []string) ([]*server.Host, error)
- func (srv *InvServer) GetHostIDs(id string) ([]string, error)
- func (srv *InvServer) GetHostInfo(req []string) ([]*pb.HostInfo, error)
- func (srv *InvServer) Make(req []string) (string, error)
- func (srv *InvServer) Release(id string)
- func (srv *InvServer) Select(from string, selectors ...*pb.Selector) (string, error)
- func (srv *InvServer) Union(req []string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InvServer ¶
type InvServer struct { sync.RWMutex AllHosts *hostSet Sets map[string]*hostSet Session server.Session Cfg server.InventoryConfiguration }
InvServer serves the inventory through named hostsets
func NewInvServer ¶
func NewInvServer(hosts []*server.Host, cfg server.InventoryConfiguration, session server.Session) *InvServer
NewInvServer creates a new inventory server instance
func (*InvServer) GetHostIDs ¶
GetHostIDs returns the host ids for all the hosts in an inventory
func (*InvServer) GetHostInfo ¶
GetHostInfo returns information about some hosts
Click to show internal directories.
Click to hide internal directories.