mocks

package
v0.3.22 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureClient

type AzureClient struct {
	mock.Mock
}

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) Exists

func (_m *AzureClient) Exists(ctx context.Context, path string) (bool, error)

Exists provides a mock function with given fields: ctx, path

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 ExecutionManager

type ExecutionManager struct {
	mock.Mock
}

ExecutionManager is an autogenerated mock type for the ExecutionManager type

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) error

ExecuteUserCommands provides a mock function with given fields: ctx, commandType, payload, runConfig, secretData

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

func (*ExecutionManager) StoreCommandLogs

func (_m *ExecutionManager) StoreCommandLogs(ctx context.Context, blobPath string, reader io.Reader) <-chan error

StoreCommandLogs provides a mock function with given fields: ctx, blobPath, reader

type Reader

type Reader struct {
	mock.Mock
}

Reader is an autogenerated mock type for the Reader type

func (*Reader) Read

func (_m *Reader) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

type SecretParser

type SecretParser struct {
	mock.Mock
}

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

type TASConfigManager struct {
	mock.Mock
}

TASConfigManager is an autogenerated mock type for the TASConfigManager type

func (*TASConfigManager) LoadConfig

func (_m *TASConfigManager) LoadConfig(ctx context.Context, path string, eventType core.EventType, parseMode bool) (*core.TASConfig, error)

LoadConfig provides a mock function with given fields: ctx, path, eventType, parseMode

type ZstdCompressor

type ZstdCompressor struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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