Documentation ¶
Index ¶
- func SendLogs(l LogsSender) error
- type LogsSender
- type LogsSenderExecuter
- func (e *LogsSenderExecuter) CreateFolderIfNotExist(folder string) error
- func (e *LogsSenderExecuter) Execute(command string, args ...string) (stdout string, stderr string, exitCode int)
- func (e *LogsSenderExecuter) ExecuteOutputToFile(outputFilePath string, command string, args ...string) (stderr string, exitCode int)
- func (e *LogsSenderExecuter) FileUploader(filePath string, clusterID strfmt.UUID, hostID strfmt.UUID, ...) error
- type MockLogsSender
- func (_m *MockLogsSender) CreateFolderIfNotExist(folder string) error
- func (_m *MockLogsSender) Execute(command string, args ...string) (string, string, int)
- func (_m *MockLogsSender) ExecuteOutputToFile(outputFilePath string, command string, args ...string) (string, int)
- func (_m *MockLogsSender) FileUploader(filePath string, clusterID strfmt.UUID, hostID strfmt.UUID, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendLogs ¶
func SendLogs(l LogsSender) error
Types ¶
type LogsSender ¶
type LogsSender interface { Execute(command string, args ...string) (stdout string, stderr string, exitCode int) ExecuteOutputToFile(outputFilePath string, command string, args ...string) (stderr string, exitCode int) CreateFolderIfNotExist(folder string) error FileUploader(filePath string, clusterID strfmt.UUID, hostID strfmt.UUID, inventoryUrl string, pullSecretToken string, agentVersion string) error }
type LogsSenderExecuter ¶
type LogsSenderExecuter struct{}
func (*LogsSenderExecuter) CreateFolderIfNotExist ¶
func (e *LogsSenderExecuter) CreateFolderIfNotExist(folder string) error
func (*LogsSenderExecuter) ExecuteOutputToFile ¶
type MockLogsSender ¶
MockLogsSender is an autogenerated mock type for the LogsSender type
func (*MockLogsSender) CreateFolderIfNotExist ¶
func (_m *MockLogsSender) CreateFolderIfNotExist(folder string) error
CreateFolderIfNotExist provides a mock function with given fields: folder
func (*MockLogsSender) ExecuteOutputToFile ¶
func (_m *MockLogsSender) ExecuteOutputToFile(outputFilePath string, command string, args ...string) (string, int)
ExecuteOutputToFile provides a mock function with given fields: outputFilePath, command, args
func (*MockLogsSender) FileUploader ¶
func (_m *MockLogsSender) FileUploader(filePath string, clusterID strfmt.UUID, hostID strfmt.UUID, inventoryUrl string, pullSecretToken string, agentVersion string) error
FileUploader provides a mock function with given fields: filePath, clusterID, hostID, inventoryUrl, pullSecretToken, agentVersion
Click to show internal directories.
Click to hide internal directories.