Documentation
¶
Index ¶
Constants ¶
View Source
const ( ColorReset = "\033[0m" ColorGreen = "\033[32m" ColorYellow = "\033[33m" ColorRed = "\033[31m" ColorBlue = "\033[34m" ColorCyan = "\033[36m" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CheckAndExecute ¶
type EnvironmentManager ¶
type EnvironmentManager struct {
// contains filtered or unexported fields
}
func NewEnvironmentManager ¶
func NewEnvironmentManager(baseDir string) (*EnvironmentManager, error)
func (*EnvironmentManager) Close ¶
func (m *EnvironmentManager) Close() error
func (*EnvironmentManager) GetEnvironments ¶
func (m *EnvironmentManager) GetEnvironments() map[string][]models.Playbook
func (*EnvironmentManager) GetPlaybooksForHost ¶
func (m *EnvironmentManager) GetPlaybooksForHost(hostname string) []models.Task
type InventoryEntry ¶
type InventoryEntry struct { Hostname string `json:"hostname"` IP string `json:"ip"` LastSeen time.Time `json:"last_seen"` FirstSeen time.Time `json:"first_seen"` Environment string `json:"environment,omitempty"` }
InventoryEntry represents a client in the inventory
type InventoryManager ¶
type InventoryManager struct {
// contains filtered or unexported fields
}
InventoryManager handles the server's inventory of clients
func NewInventoryManager ¶
func NewInventoryManager(dataDir string) (*InventoryManager, error)
NewInventoryManager creates a new inventory manager
func (*InventoryManager) GetInventory ¶
func (im *InventoryManager) GetInventory() []InventoryEntry
GetInventory returns all inventory entries
func (*InventoryManager) UpdateClient ¶
func (im *InventoryManager) UpdateClient(hostname, remoteAddr string) error
UpdateClient updates or adds a client in the inventory
Click to show internal directories.
Click to hide internal directories.