Documentation ¶
Index ¶
- func ParseHabSvcStatus(output string) (*[]models.ServiceDetails, error)
- type IStatusService
- type MockStatusService
- type StatusService
- func (ss *StatusService) CheckIfBENode(output string) bool
- func (ss *StatusService) GetServices() (*[]models.ServiceDetails, error)
- func (ss *StatusService) GetServicesFromAutomateStatus() (*map[string]models.ServiceDetails, error)
- func (ss *StatusService) GetServicesFromHabSvcStatus() (*[]models.ServiceDetails, error)
- func (ss *StatusService) ParseChefAutomateStatus(output string) (*map[string]models.ServiceDetails, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseHabSvcStatus ¶
func ParseHabSvcStatus(output string) (*[]models.ServiceDetails, error)
Parse the output of hab svc status TODO: We need to update the below function/regex if the output of hab svc status changes
Types ¶
type IStatusService ¶
type IStatusService interface {
GetServices() (*[]models.ServiceDetails, error)
}
type MockStatusService ¶
type MockStatusService struct {
GetServicesFunc func() (*[]models.ServiceDetails, error)
}
func (*MockStatusService) GetServices ¶
func (mss *MockStatusService) GetServices() (*[]models.ServiceDetails, error)
type StatusService ¶
type StatusService struct { ExecuteShellCommandFunc func(cmd string) ([]byte, error) Log logger.Logger }
func NewStatusService ¶
func (*StatusService) CheckIfBENode ¶
func (ss *StatusService) CheckIfBENode(output string) bool
Check if it's a backend node
func (*StatusService) GetServices ¶
func (ss *StatusService) GetServices() (*[]models.ServiceDetails, error)
func (*StatusService) GetServicesFromAutomateStatus ¶
func (ss *StatusService) GetServicesFromAutomateStatus() (*map[string]models.ServiceDetails, error)
Get the services from chef-automate status
func (*StatusService) GetServicesFromHabSvcStatus ¶
func (ss *StatusService) GetServicesFromHabSvcStatus() (*[]models.ServiceDetails, error)
Get the services from
func (*StatusService) ParseChefAutomateStatus ¶
func (ss *StatusService) ParseChefAutomateStatus(output string) (*map[string]models.ServiceDetails, error)
Parse the output of chef-automate status TODO: We need to update the below function/regex if the output of chef-automate status changes
Click to show internal directories.
Click to hide internal directories.