Documentation
¶
Index ¶
- type ChdirExpectation
- type ChdirExpectations
- type CommandsExpectation
- type FileSystemExpectation
- type FileSystemExpectations
- func (e FileSystemExpectations) AssertDirExists(path string, exists bool, err error) FileSystemExpectations
- func (e FileSystemExpectations) AssertFileExists(path string, exists bool, err error) FileSystemExpectations
- func (e FileSystemExpectations) AssertIsDirEmpty(path string, empty bool, err error) FileSystemExpectations
- func (e FileSystemExpectations) AssertPwdEmpty(empty bool, err error) FileSystemExpectations
- type MockBuildSource
- type MockBuildTarget
- type MockDockerCredential
- type MockFileSystem
- func (m *MockFileSystem) Chdir(path string) error
- func (m *MockFileSystem) DoesDirExist(path string) (bool, error)
- func (m *MockFileSystem) DoesFileExist(path string) (bool, error)
- func (m *MockFileSystem) GetContext() *build.BuilderContext
- func (m *MockFileSystem) Getwd() (string, error)
- func (m *MockFileSystem) IsDirEmpty(path string) (bool, error)
- func (m *MockFileSystem) PrepareChdir(expectations ChdirExpectations)
- func (m *MockFileSystem) PrepareFileSystem(commands FileSystemExpectations)
- func (m *MockFileSystem) SetContext(context *build.BuilderContext)
- type MockRunner
- func (m *MockRunner) ExecuteCmd(cmdExe string, cmdArgs []string, reader io.Reader) error
- func (m *MockRunner) ExecuteCmdWithObfuscation(obfuscate func([]string), cmdExe string, cmdArgs []string) error
- func (m *MockRunner) GetContext() *build.BuilderContext
- func (m *MockRunner) GetFileSystem() build.FileSystem
- func (m *MockRunner) PrepareCommandExpectation(commands []CommandsExpectation)
- func (m *MockRunner) PrepareDigestQuery(expectedDependencies []build.ImageDependencies, queryCmdErr map[string]error)
- func (m *MockRunner) QueryCmd(cmdExe string, cmdArgs []string) (string, error)
- func (m *MockRunner) SetContext(context *build.BuilderContext)
- func (m *MockRunner) SetFileSystem(fs build.FileSystem)
- func (m *MockRunner) UseDefaultFileSystem()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChdirExpectation ¶
type ChdirExpectations ¶
type ChdirExpectations []ChdirExpectation
type CommandsExpectation ¶
type FileSystemExpectation ¶
type FileSystemExpectation struct {
// contains filtered or unexported fields
}
type FileSystemExpectations ¶
type FileSystemExpectations []FileSystemExpectation
func (FileSystemExpectations) AssertDirExists ¶
func (e FileSystemExpectations) AssertDirExists(path string, exists bool, err error) FileSystemExpectations
func (FileSystemExpectations) AssertFileExists ¶
func (e FileSystemExpectations) AssertFileExists(path string, exists bool, err error) FileSystemExpectations
func (FileSystemExpectations) AssertIsDirEmpty ¶
func (e FileSystemExpectations) AssertIsDirEmpty(path string, empty bool, err error) FileSystemExpectations
func (FileSystemExpectations) AssertPwdEmpty ¶
func (e FileSystemExpectations) AssertPwdEmpty(empty bool, err error) FileSystemExpectations
type MockBuildSource ¶
func (*MockBuildSource) Export ¶
func (m *MockBuildSource) Export() []build.EnvVar
type MockBuildTarget ¶
func (*MockBuildTarget) Export ¶
func (m *MockBuildTarget) Export() []build.EnvVar
func (*MockBuildTarget) ScanForDependencies ¶
func (m *MockBuildTarget) ScanForDependencies(runner build.Runner) ([]build.ImageDependencies, error)
type MockDockerCredential ¶
func (*MockDockerCredential) Authenticate ¶
func (m *MockDockerCredential) Authenticate(runner build.Runner) error
type MockFileSystem ¶
func (*MockFileSystem) Chdir ¶
func (m *MockFileSystem) Chdir(path string) error
func (*MockFileSystem) DoesDirExist ¶
func (m *MockFileSystem) DoesDirExist(path string) (bool, error)
func (*MockFileSystem) DoesFileExist ¶
func (m *MockFileSystem) DoesFileExist(path string) (bool, error)
func (*MockFileSystem) GetContext ¶
func (m *MockFileSystem) GetContext() *build.BuilderContext
func (*MockFileSystem) Getwd ¶
func (m *MockFileSystem) Getwd() (string, error)
func (*MockFileSystem) IsDirEmpty ¶
func (m *MockFileSystem) IsDirEmpty(path string) (bool, error)
func (*MockFileSystem) PrepareChdir ¶
func (m *MockFileSystem) PrepareChdir(expectations ChdirExpectations)
func (*MockFileSystem) PrepareFileSystem ¶
func (m *MockFileSystem) PrepareFileSystem(commands FileSystemExpectations)
func (*MockFileSystem) SetContext ¶
func (m *MockFileSystem) SetContext(context *build.BuilderContext)
type MockRunner ¶
func NewMockRunner ¶
func NewMockRunner() *MockRunner
func (*MockRunner) ExecuteCmd ¶
func (*MockRunner) ExecuteCmdWithObfuscation ¶
func (m *MockRunner) ExecuteCmdWithObfuscation(obfuscate func([]string), cmdExe string, cmdArgs []string) error
func (*MockRunner) GetContext ¶
func (m *MockRunner) GetContext() *build.BuilderContext
func (*MockRunner) GetFileSystem ¶
func (m *MockRunner) GetFileSystem() build.FileSystem
func (*MockRunner) PrepareCommandExpectation ¶
func (m *MockRunner) PrepareCommandExpectation(commands []CommandsExpectation)
func (*MockRunner) PrepareDigestQuery ¶
func (m *MockRunner) PrepareDigestQuery( expectedDependencies []build.ImageDependencies, queryCmdErr map[string]error)
func (*MockRunner) QueryCmd ¶
func (m *MockRunner) QueryCmd(cmdExe string, cmdArgs []string) (string, error)
func (*MockRunner) SetContext ¶
func (m *MockRunner) SetContext(context *build.BuilderContext)
func (*MockRunner) SetFileSystem ¶
func (m *MockRunner) SetFileSystem(fs build.FileSystem)
func (*MockRunner) UseDefaultFileSystem ¶
func (m *MockRunner) UseDefaultFileSystem()
Click to show internal directories.
Click to hide internal directories.