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, containerPath string, containerType core.ContainerType) (string, error)
- 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 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 Reader
- 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 TASConfigManager
- type TestDiscoveryService
- type TestExecutionService
- 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 (*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, containerPath string, containerType core.ContainerType) (string, error)
GetSASURL provides a mock function with given fields: ctx, containerPath, containerType
type CacheStore ¶ added in v0.5.0
CacheStore is an autogenerated mock type for the CacheStore type
func NewCacheStore ¶ added in v0.5.0
func NewCacheStore(t testing.TB) *CacheStore
NewCacheStore creates a new instance of CacheStore. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*CacheStore) CacheWorkspace ¶ added in v0.5.0
func (_m *CacheStore) CacheWorkspace(ctx context.Context, subModule string) error
CacheWorkspace provides a mock function with given fields: ctx, subModule
func (*CacheStore) Download ¶ added in v0.5.0
func (_m *CacheStore) Download(ctx context.Context, cacheKey string) error
Download provides a mock function with given fields: ctx, cacheKey
func (*CacheStore) ExtractWorkspace ¶ added in v0.5.0
func (_m *CacheStore) ExtractWorkspace(ctx context.Context, subModule string) error
ExtractWorkspace provides a mock function with given fields: ctx, subModule
type ExecutionManager ¶
ExecutionManager is an autogenerated mock type for the ExecutionManager type
func NewExecutionManager ¶ added in v0.5.0
func NewExecutionManager(t testing.TB) *ExecutionManager
NewExecutionManager creates a new instance of ExecutionManager. It also registers the testing.TB 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 SecretParser ¶
SecretParser is an autogenerated mock type for the SecretParser type
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 TASConfigManager ¶
TASConfigManager is an autogenerated mock type for the TASConfigManager type
func NewTASConfigManager ¶ added in v0.5.0
func NewTASConfigManager(t testing.TB) *TASConfigManager
NewTASConfigManager creates a new instance of TASConfigManager. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*TASConfigManager) GetVersion ¶ added in v0.5.0
func (_m *TASConfigManager) GetVersion(path string) (int, error)
GetVersion provides a mock function with given fields: path
func (*TASConfigManager) LoadAndValidate ¶ added in v0.6.5
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 TestDiscoveryService ¶ added in v0.5.0
TestDiscoveryService is an autogenerated mock type for the TestDiscoveryService type
func NewTestDiscoveryService ¶ added in v0.5.0
func NewTestDiscoveryService(t testing.TB) *TestDiscoveryService
NewTestDiscoveryService creates a new instance of TestDiscoveryService. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*TestDiscoveryService) Discover ¶ added in v0.5.0
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 ¶ added in v0.6.5
func (_m *TestDiscoveryService) SendResult(ctx context.Context, testDiscoveryResult *core.DiscoveryResult) error
SendResult provides a mock function with given fields: ctx, testDiscoveryResult
type TestExecutionService ¶ added in v0.5.0
TestExecutionService is an autogenerated mock type for the TestExecutionService type
func NewTestExecutionService ¶ added in v0.5.0
func NewTestExecutionService(t testing.TB) *TestExecutionService
NewTestExecutionService creates a new instance of TestExecutionService. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*TestExecutionService) Run ¶ added in v0.6.5
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 ¶ added in v0.5.0
func (_m *TestExecutionService) SendResults(ctx context.Context, payload *core.ExecutionResults) (*core.TestReportResponsePayload, error)
SendResults provides a mock function with given fields: ctx, payload
type ZstdCompressor ¶
ZstdCompressor is an autogenerated mock type for the ZstdCompressor type
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