cloudwatch

package
v0.0.0-...-955c50f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package cloudwatch implements cloudwatch plugin and its configuration

Package cloudwatch implements cloudwatch plugin and its configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock struct {
	mock.Mock
}

Mock stands for a mocked cloudwatch.

func NewMockDefault

func NewMockDefault() *Mock

NewMockDefault returns an instance of Mock with default expectations set.

func (*Mock) GetPidOfCloudWatchExe

func (m *Mock) GetPidOfCloudWatchExe(orchestrationDir, workingDirectory string, cancelFlag task.CancelFlag) (int, error)

IsCloudWatchExeRunning runs a powershell script to determine if the given process is running - returns nil for testing

func (*Mock) IsCloudWatchExeRunning

func (m *Mock) IsCloudWatchExeRunning(workingDirectory, orchestrationDir string, cancelFlag task.CancelFlag) (err error)

IsCloudWatchExeRunning runs a powershell script to determine if the given process is running - returns nil for testing

func (*Mock) IsRunning

func (m *Mock) IsRunning() bool

IsRunning returns if the said plugin is running or not - returns true for testing

func (*Mock) Start

func (m *Mock) Start(configuration string, orchestrationDir string, cancelFlag task.CancelFlag, out iohandler.IOHandler) (err error)

Start starts the executable file and returns encountered errors - returns nil for testing

func (*Mock) Stop

func (m *Mock) Stop(cancelFlag task.CancelFlag) (err error)

StopCloudWatchExe returns true if it successfully killed the cloudwatch exe or else it returns false - returns nil for testing

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL