Documentation
¶
Index ¶
- type AzureClient
- func (_m *AzureClient) Create(ctx context.Context, path string, reader io.Reader, mimeType string) (string, error)
- func (_m *AzureClient) CreateUsingSASURL(ctx context.Context, sasURL string, reader io.Reader, mimeType string) (string, error)
- func (_m *AzureClient) Exists(ctx context.Context, path string) (bool, error)
- func (_m *AzureClient) Find(ctx context.Context, path string) (io.ReadCloser, error)
- func (_m *AzureClient) FindUsingSASUrl(ctx context.Context, sasURL string) (io.ReadCloser, error)
- func (_m *AzureClient) GetSASURL(ctx context.Context, purpose core.SASURLPurpose, query map[string]interface{}) (string, error)
- type BlockTestService
- type Builder
- type CacheStore
- func (_m *CacheStore) CacheWorkspace(ctx context.Context, subModule string) error
- func (_m *CacheStore) Download(ctx context.Context, cacheKey string) error
- func (_m *CacheStore) ExtractWorkspace(ctx context.Context, subModule string) error
- func (_m *CacheStore) Upload(ctx context.Context, cacheKey string, itemsToCompress ...string) error
- type CoverageService
- type DiffManager
- type DockerRunner
- func (_m *DockerRunner) Create(_a0 context.Context, _a1 *core.RunnerOptions) core.ContainerStatus
- func (_m *DockerRunner) Destroy(ctx context.Context, r *core.RunnerOptions) error
- func (_m *DockerRunner) GetInfo(_a0 context.Context) (float32, int64)
- func (_m *DockerRunner) Initiate(_a0 context.Context, _a1 *core.RunnerOptions, _a2 chan core.ContainerStatus)
- func (_m *DockerRunner) KillRunningDocker(ctx context.Context)
- func (_m *DockerRunner) PullImage(containerImageConfig *core.ContainerImageConfig, r *core.RunnerOptions) error
- func (_m *DockerRunner) Run(_a0 context.Context, _a1 *core.RunnerOptions) core.ContainerStatus
- func (_m *DockerRunner) WaitForCompletion(ctx context.Context, r *core.RunnerOptions) error
- type Driver
- type ExecutionManager
- func (_m *ExecutionManager) ExecuteInternalCommands(ctx context.Context, commandType core.CommandType, commands []string, ...) error
- func (_m *ExecutionManager) ExecuteUserCommands(ctx context.Context, commandType core.CommandType, payload *core.Payload, ...) error
- func (_m *ExecutionManager) GetEnvVariables(envMap map[string]string, secretData map[string]string) ([]string, error)
- type GitManager
- type ListSubModuleService
- type LogWriterStrategy
- type Logger
- func (_m *Logger) Debugf(format string, args ...interface{})
- func (_m *Logger) Errorf(format string, args ...interface{})
- func (_m *Logger) Fatalf(format string, args ...interface{})
- func (_m *Logger) Infof(format string, args ...interface{})
- func (_m *Logger) Panicf(format string, args ...interface{})
- func (_m *Logger) Warnf(format string, args ...interface{})
- func (_m *Logger) WithFields(keyValues lumber.Fields) lumber.Logger
- type PayloadManager
- type Requests
- type SecretParser
- func (_m *SecretParser) Expired(token *core.Oauth) bool
- func (_m *SecretParser) GetOauthSecret(filepath string) (*core.Oauth, error)
- func (_m *SecretParser) GetRepoSecret(_a0 string) (map[string]string, error)
- func (_m *SecretParser) SubstituteSecret(command string, secretData map[string]string) (string, error)
- type SecretsManager
- func (_m *SecretsManager) GetDockerSecrets(r *core.RunnerOptions) (core.ContainerImageConfig, error)
- func (_m *SecretsManager) GetLambdatestSecrets() *config.LambdatestConfig
- func (_m *SecretsManager) GetSynapseName() string
- func (_m *SecretsManager) WriteGitSecrets(path string) error
- func (_m *SecretsManager) WriteRepoSecrets(repo string, path string) error
- type SynapseManager
- type TASConfigManager
- type Task
- type TestDiscoveryService
- type TestExecutionService
- type TestStats
- type ZstdCompressor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureClient ¶
AzureClient is an autogenerated mock type for the AzureClient type
func NewAzureClient ¶
func NewAzureClient(t mockConstructorTestingTNewAzureClient) *AzureClient
NewAzureClient creates a new instance of AzureClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AzureClient) Create ¶
func (_m *AzureClient) Create(ctx context.Context, path string, reader io.Reader, mimeType string) (string, error)
Create provides a mock function with given fields: ctx, path, reader, mimeType
func (*AzureClient) CreateUsingSASURL ¶
func (_m *AzureClient) CreateUsingSASURL(ctx context.Context, sasURL string, reader io.Reader, mimeType string) (string, error)
CreateUsingSASURL provides a mock function with given fields: ctx, sasURL, reader, mimeType
func (*AzureClient) Find ¶
func (_m *AzureClient) Find(ctx context.Context, path string) (io.ReadCloser, error)
Find provides a mock function with given fields: ctx, path
func (*AzureClient) FindUsingSASUrl ¶
func (_m *AzureClient) FindUsingSASUrl(ctx context.Context, sasURL string) (io.ReadCloser, error)
FindUsingSASUrl provides a mock function with given fields: ctx, sasURL
func (*AzureClient) GetSASURL ¶
func (_m *AzureClient) GetSASURL(ctx context.Context, purpose core.SASURLPurpose, query map[string]interface{}) (string, error)
GetSASURL provides a mock function with given fields: ctx, purpose, query
type BlockTestService ¶
BlockTestService is an autogenerated mock type for the BlockTestService type
func NewBlockTestService ¶
func NewBlockTestService(t mockConstructorTestingTNewBlockTestService) *BlockTestService
NewBlockTestService creates a new instance of BlockTestService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BlockTestService) GetBlockTests ¶
func (_m *BlockTestService) GetBlockTests(ctx context.Context, blocklistYAML []string, branch string) error
GetBlockTests provides a mock function with given fields: ctx, blocklistYAML, branch
type Builder ¶
Builder is an autogenerated mock type for the Builder type
func NewBuilder ¶
func NewBuilder(t mockConstructorTestingTNewBuilder) *Builder
NewBuilder creates a new instance of Builder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type CacheStore ¶
CacheStore is an autogenerated mock type for the CacheStore type
func NewCacheStore ¶
func NewCacheStore(t mockConstructorTestingTNewCacheStore) *CacheStore
NewCacheStore creates a new instance of CacheStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CacheStore) CacheWorkspace ¶
func (_m *CacheStore) CacheWorkspace(ctx context.Context, subModule string) error
CacheWorkspace provides a mock function with given fields: ctx, subModule
func (*CacheStore) Download ¶
func (_m *CacheStore) Download(ctx context.Context, cacheKey string) error
Download provides a mock function with given fields: ctx, cacheKey
func (*CacheStore) ExtractWorkspace ¶
func (_m *CacheStore) ExtractWorkspace(ctx context.Context, subModule string) error
ExtractWorkspace provides a mock function with given fields: ctx, subModule
type CoverageService ¶
CoverageService is an autogenerated mock type for the CoverageService type
func NewCoverageService ¶
func NewCoverageService(t mockConstructorTestingTNewCoverageService) *CoverageService
NewCoverageService creates a new instance of CoverageService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CoverageService) MergeAndUpload ¶
MergeAndUpload provides a mock function with given fields: ctx, payload
type DiffManager ¶
DiffManager is an autogenerated mock type for the DiffManager type
func NewDiffManager ¶
func NewDiffManager(t mockConstructorTestingTNewDiffManager) *DiffManager
NewDiffManager creates a new instance of DiffManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type DockerRunner ¶
DockerRunner is an autogenerated mock type for the DockerRunner type
func NewDockerRunner ¶
func NewDockerRunner(t mockConstructorTestingTNewDockerRunner) *DockerRunner
NewDockerRunner creates a new instance of DockerRunner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DockerRunner) Create ¶
func (_m *DockerRunner) Create(_a0 context.Context, _a1 *core.RunnerOptions) core.ContainerStatus
Create provides a mock function with given fields: _a0, _a1
func (*DockerRunner) Destroy ¶
func (_m *DockerRunner) Destroy(ctx context.Context, r *core.RunnerOptions) error
Destroy provides a mock function with given fields: ctx, r
func (*DockerRunner) GetInfo ¶
func (_m *DockerRunner) GetInfo(_a0 context.Context) (float32, int64)
GetInfo provides a mock function with given fields: _a0
func (*DockerRunner) Initiate ¶
func (_m *DockerRunner) Initiate(_a0 context.Context, _a1 *core.RunnerOptions, _a2 chan core.ContainerStatus)
Initiate provides a mock function with given fields: _a0, _a1, _a2
func (*DockerRunner) KillRunningDocker ¶
func (_m *DockerRunner) KillRunningDocker(ctx context.Context)
KillRunningDocker provides a mock function with given fields: ctx
func (*DockerRunner) PullImage ¶
func (_m *DockerRunner) PullImage(containerImageConfig *core.ContainerImageConfig, r *core.RunnerOptions) error
PullImage provides a mock function with given fields: containerImageConfig, r
func (*DockerRunner) Run ¶
func (_m *DockerRunner) Run(_a0 context.Context, _a1 *core.RunnerOptions) core.ContainerStatus
Run provides a mock function with given fields: _a0, _a1
func (*DockerRunner) WaitForCompletion ¶
func (_m *DockerRunner) WaitForCompletion(ctx context.Context, r *core.RunnerOptions) error
WaitForCompletion provides a mock function with given fields: ctx, r
type Driver ¶
Driver is an autogenerated mock type for the Driver type
func NewDriver ¶
func NewDriver(t mockConstructorTestingTNewDriver) *Driver
NewDriver creates a new instance of Driver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Driver) RunDiscovery ¶
func (_m *Driver) RunDiscovery(ctx context.Context, payload *core.Payload, taskPayload *core.TaskPayload, oauth *core.Oauth, coverageDir string, secretMap map[string]string) error
RunDiscovery provides a mock function with given fields: ctx, payload, taskPayload, oauth, coverageDir, secretMap
func (*Driver) RunExecution ¶
func (_m *Driver) RunExecution(ctx context.Context, payload *core.Payload, taskPayload *core.TaskPayload, oauth *core.Oauth, coverageDir string, secretMap map[string]string) error
RunExecution provides a mock function with given fields: ctx, payload, taskPayload, oauth, coverageDir, secretMap
type ExecutionManager ¶
ExecutionManager is an autogenerated mock type for the ExecutionManager type
func NewExecutionManager ¶
func NewExecutionManager(t mockConstructorTestingTNewExecutionManager) *ExecutionManager
NewExecutionManager creates a new instance of ExecutionManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ExecutionManager) ExecuteInternalCommands ¶
func (_m *ExecutionManager) ExecuteInternalCommands(ctx context.Context, commandType core.CommandType, commands []string, cwd string, envMap map[string]string, secretData map[string]string) error
ExecuteInternalCommands provides a mock function with given fields: ctx, commandType, commands, cwd, envMap, secretData
func (*ExecutionManager) ExecuteUserCommands ¶
func (_m *ExecutionManager) ExecuteUserCommands(ctx context.Context, commandType core.CommandType, payload *core.Payload, runConfig *core.Run, secretData map[string]string, logwriter core.LogWriterStrategy, cwd string) error
ExecuteUserCommands provides a mock function with given fields: ctx, commandType, payload, runConfig, secretData, logwriter, cwd
func (*ExecutionManager) GetEnvVariables ¶
func (_m *ExecutionManager) GetEnvVariables(envMap map[string]string, secretData map[string]string) ([]string, error)
GetEnvVariables provides a mock function with given fields: envMap, secretData
type GitManager ¶
GitManager is an autogenerated mock type for the GitManager type
func NewGitManager ¶
func NewGitManager(t mockConstructorTestingTNewGitManager) *GitManager
NewGitManager creates a new instance of GitManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type ListSubModuleService ¶
ListSubModuleService is an autogenerated mock type for the ListSubModuleService type
func NewListSubModuleService ¶
func NewListSubModuleService(t mockConstructorTestingTNewListSubModuleService) *ListSubModuleService
NewListSubModuleService creates a new instance of ListSubModuleService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type LogWriterStrategy ¶
LogWriterStrategy is an autogenerated mock type for the LogWriterStrategy type
func NewLogWriterStrategy ¶
func NewLogWriterStrategy(t mockConstructorTestingTNewLogWriterStrategy) *LogWriterStrategy
NewLogWriterStrategy creates a new instance of LogWriterStrategy. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type Logger ¶
Logger is an autogenerated mock type for the Logger type
func NewLogger ¶
func NewLogger(t mockConstructorTestingTNewLogger) *Logger
NewLogger creates a new instance of Logger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type PayloadManager ¶
PayloadManager is an autogenerated mock type for the PayloadManager type
func NewPayloadManager ¶
func NewPayloadManager(t mockConstructorTestingTNewPayloadManager) *PayloadManager
NewPayloadManager creates a new instance of PayloadManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PayloadManager) FetchPayload ¶
func (_m *PayloadManager) FetchPayload(ctx context.Context, payloadAddress string) (*core.Payload, error)
FetchPayload provides a mock function with given fields: ctx, payloadAddress
func (*PayloadManager) ValidatePayload ¶
ValidatePayload provides a mock function with given fields: ctx, payload
type Requests ¶
Requests is an autogenerated mock type for the Requests type
func NewRequests ¶
func NewRequests(t mockConstructorTestingTNewRequests) *Requests
NewRequests creates a new instance of Requests. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Requests) MakeAPIRequest ¶
func (_m *Requests) MakeAPIRequest(ctx context.Context, httpMethod string, endpoint string, body []byte, params map[string]interface{}, headers map[string]string) ([]byte, int, error)
MakeAPIRequest provides a mock function with given fields: ctx, httpMethod, endpoint, body, params, headers
type SecretParser ¶
SecretParser is an autogenerated mock type for the SecretParser type
func NewSecretParser ¶
func NewSecretParser(t mockConstructorTestingTNewSecretParser) *SecretParser
NewSecretParser creates a new instance of SecretParser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SecretParser) Expired ¶
func (_m *SecretParser) Expired(token *core.Oauth) bool
Expired provides a mock function with given fields: token
func (*SecretParser) GetOauthSecret ¶
func (_m *SecretParser) GetOauthSecret(filepath string) (*core.Oauth, error)
GetOauthSecret provides a mock function with given fields: filepath
func (*SecretParser) GetRepoSecret ¶
func (_m *SecretParser) GetRepoSecret(_a0 string) (map[string]string, error)
GetRepoSecret provides a mock function with given fields: _a0
func (*SecretParser) SubstituteSecret ¶
func (_m *SecretParser) SubstituteSecret(command string, secretData map[string]string) (string, error)
SubstituteSecret provides a mock function with given fields: command, secretData
type SecretsManager ¶
SecretsManager is an autogenerated mock type for the SecretsManager type
func NewSecretsManager ¶
func NewSecretsManager(t mockConstructorTestingTNewSecretsManager) *SecretsManager
NewSecretsManager creates a new instance of SecretsManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SecretsManager) GetDockerSecrets ¶
func (_m *SecretsManager) GetDockerSecrets(r *core.RunnerOptions) (core.ContainerImageConfig, error)
GetDockerSecrets provides a mock function with given fields: r
func (*SecretsManager) GetLambdatestSecrets ¶
func (_m *SecretsManager) GetLambdatestSecrets() *config.LambdatestConfig
GetLambdatestSecrets provides a mock function with given fields:
func (*SecretsManager) GetSynapseName ¶
func (_m *SecretsManager) GetSynapseName() string
GetSynapseName provides a mock function with given fields:
func (*SecretsManager) WriteGitSecrets ¶
func (_m *SecretsManager) WriteGitSecrets(path string) error
WriteGitSecrets provides a mock function with given fields: path
func (*SecretsManager) WriteRepoSecrets ¶
func (_m *SecretsManager) WriteRepoSecrets(repo string, path string) error
WriteRepoSecrets provides a mock function with given fields: repo, path
type SynapseManager ¶
SynapseManager is an autogenerated mock type for the SynapseManager type
func NewSynapseManager ¶
func NewSynapseManager(t mockConstructorTestingTNewSynapseManager) *SynapseManager
NewSynapseManager creates a new instance of SynapseManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SynapseManager) InitiateConnection ¶
func (_m *SynapseManager) InitiateConnection(ctx context.Context, wg *sync.WaitGroup, connectionFailed chan struct{})
InitiateConnection provides a mock function with given fields: ctx, wg, connectionFailed
type TASConfigManager ¶
TASConfigManager is an autogenerated mock type for the TASConfigManager type
func NewTASConfigManager ¶
func NewTASConfigManager(t mockConstructorTestingTNewTASConfigManager) *TASConfigManager
NewTASConfigManager creates a new instance of TASConfigManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TASConfigManager) GetVersion ¶
func (_m *TASConfigManager) GetVersion(path string) (int, error)
GetVersion provides a mock function with given fields: path
func (*TASConfigManager) LoadAndValidate ¶
func (_m *TASConfigManager) LoadAndValidate(ctx context.Context, version int, path string, eventType core.EventType, licenseTier core.Tier) (interface{}, error)
LoadAndValidate provides a mock function with given fields: ctx, version, path, eventType, licenseTier
type Task ¶
Task is an autogenerated mock type for the Task type
func NewTask ¶
func NewTask(t mockConstructorTestingTNewTask) *Task
NewTask creates a new instance of Task. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Task) UpdateStatus ¶
UpdateStatus provides a mock function with given fields: ctx, payload
type TestDiscoveryService ¶
TestDiscoveryService is an autogenerated mock type for the TestDiscoveryService type
func NewTestDiscoveryService ¶
func NewTestDiscoveryService(t mockConstructorTestingTNewTestDiscoveryService) *TestDiscoveryService
NewTestDiscoveryService creates a new instance of TestDiscoveryService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TestDiscoveryService) Discover ¶
func (_m *TestDiscoveryService) Discover(ctx context.Context, args *core.DiscoveyArgs) (*core.DiscoveryResult, error)
Discover provides a mock function with given fields: ctx, args
func (*TestDiscoveryService) SendResult ¶
func (_m *TestDiscoveryService) SendResult(ctx context.Context, testDiscoveryResult *core.DiscoveryResult) error
SendResult provides a mock function with given fields: ctx, testDiscoveryResult
type TestExecutionService ¶
TestExecutionService is an autogenerated mock type for the TestExecutionService type
func NewTestExecutionService ¶
func NewTestExecutionService(t mockConstructorTestingTNewTestExecutionService) *TestExecutionService
NewTestExecutionService creates a new instance of TestExecutionService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TestExecutionService) Run ¶
func (_m *TestExecutionService) Run(ctx context.Context, testExecutionArgs *core.TestExecutionArgs) (*core.ExecutionResults, error)
Run provides a mock function with given fields: ctx, testExecutionArgs
func (*TestExecutionService) SendResults ¶
func (_m *TestExecutionService) SendResults(ctx context.Context, payload *core.ExecutionResults) (*core.TestReportResponsePayload, error)
SendResults provides a mock function with given fields: ctx, payload
type TestStats ¶
TestStats is an autogenerated mock type for the TestStats type
func NewTestStats ¶
func NewTestStats(t mockConstructorTestingTNewTestStats) *TestStats
NewTestStats creates a new instance of TestStats. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type ZstdCompressor ¶
ZstdCompressor is an autogenerated mock type for the ZstdCompressor type
func NewZstdCompressor ¶
func NewZstdCompressor(t mockConstructorTestingTNewZstdCompressor) *ZstdCompressor
NewZstdCompressor creates a new instance of ZstdCompressor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ZstdCompressor) Compress ¶
func (_m *ZstdCompressor) Compress(ctx context.Context, compressedFileName string, preservePath bool, workingDirectory string, filesToCompress ...string) error
Compress provides a mock function with given fields: ctx, compressedFileName, preservePath, workingDirectory, filesToCompress
func (*ZstdCompressor) Decompress ¶
func (_m *ZstdCompressor) Decompress(ctx context.Context, filePath string, preservePath bool, workingDirectory string) error
Decompress provides a mock function with given fields: ctx, filePath, preservePath, workingDirectory
Source Files
¶
- AzureClient.go
- BlockTestService.go
- Builder.go
- CacheStore.go
- CoverageService.go
- DiffManager.go
- DockerRunner.go
- Driver.go
- ExecutionManager.go
- GitManager.go
- ListSubModuleService.go
- LogWriterStrategy.go
- Logger.go
- PayloadManager.go
- Requests.go
- SecretParser.go
- SecretsManager.go
- SynapseManager.go
- TASConfigManager.go
- Task.go
- TestDiscoveryService.go
- TestExecutionService.go
- TestStats.go
- ZstdCompressor.go