Documentation ¶
Index ¶
- type AbstractShell
- type BashShell
- func (b *BashShell) GenerateScript(buildStage common.BuildStage, info common.ShellScriptInfo) (script string, err error)
- func (b *BashShell) GetConfiguration(info common.ShellScriptInfo) (script *common.ShellConfiguration, err error)
- func (b *BashShell) GetName() string
- func (b *BashShell) IsDefault() bool
- type BashWriter
- func (b *BashWriter) Absolute(dir string) string
- func (b *BashWriter) Cd(path string)
- func (b *BashWriter) CheckForErrors()
- func (b *BashWriter) Command(command string, arguments ...string)
- func (b *BashWriter) Else()
- func (b *BashWriter) EmptyLine()
- func (b *BashWriter) EndIf()
- func (b *BashWriter) EnvVariableKey(name string) string
- func (b *BashWriter) Error(format string, arguments ...interface{})
- func (b *BashWriter) Finish(trace bool) string
- func (b *BashWriter) GetTemporaryPath() string
- func (b *BashWriter) IfCmd(cmd string, arguments ...string)
- func (b *BashWriter) IfCmdWithOutput(cmd string, arguments ...string)
- func (b *BashWriter) IfDirectory(path string)
- func (b *BashWriter) IfFile(path string)
- func (b *BashWriter) Indent()
- func (b *BashWriter) Line(text string)
- func (b *BashWriter) MkDir(path string)
- func (b *BashWriter) MkTmpDir(name string) string
- func (b *BashWriter) Notice(format string, arguments ...interface{})
- func (b *BashWriter) Print(format string, arguments ...interface{})
- func (b *BashWriter) RmDir(path string)
- func (b *BashWriter) RmFile(path string)
- func (b *BashWriter) TmpFile(name string) string
- func (b *BashWriter) Unindent()
- func (b *BashWriter) Variable(variable common.JobVariable)
- func (b *BashWriter) Warning(format string, arguments ...interface{})
- type CmdShell
- func (b *CmdShell) GenerateScript(buildStage common.BuildStage, info common.ShellScriptInfo) (script string, err error)
- func (b *CmdShell) GetConfiguration(info common.ShellScriptInfo) (script *common.ShellConfiguration, err error)
- func (b *CmdShell) GetName() string
- func (b *CmdShell) IsDefault() bool
- type CmdWriter
- func (b *CmdWriter) Absolute(dir string) string
- func (b *CmdWriter) Cd(path string)
- func (b *CmdWriter) CheckForErrors()
- func (b *CmdWriter) Command(command string, arguments ...string)
- func (b *CmdWriter) Else()
- func (b *CmdWriter) EmptyLine()
- func (b *CmdWriter) EndIf()
- func (b *CmdWriter) EnvVariableKey(name string) string
- func (b *CmdWriter) Error(format string, arguments ...interface{})
- func (b *CmdWriter) Finish(trace bool) string
- func (b *CmdWriter) GetTemporaryPath() string
- func (b *CmdWriter) IfCmd(cmd string, arguments ...string)
- func (b *CmdWriter) IfCmdWithOutput(cmd string, arguments ...string)
- func (b *CmdWriter) IfDirectory(path string)
- func (b *CmdWriter) IfFile(path string)
- func (b *CmdWriter) Indent()
- func (b *CmdWriter) Line(text string)
- func (b *CmdWriter) MkDir(path string)
- func (b *CmdWriter) MkTmpDir(name string) string
- func (b *CmdWriter) Notice(format string, arguments ...interface{})
- func (b *CmdWriter) Print(format string, arguments ...interface{})
- func (b *CmdWriter) RmDir(path string)
- func (b *CmdWriter) RmFile(path string)
- func (b *CmdWriter) TmpFile(name string) string
- func (b *CmdWriter) Unindent()
- func (b *CmdWriter) Variable(variable common.JobVariable)
- func (b *CmdWriter) Warning(format string, arguments ...interface{})
- type MockShellWriter
- func (_m *MockShellWriter) Absolute(path string) string
- func (_m *MockShellWriter) Cd(path string)
- func (_m *MockShellWriter) CheckForErrors()
- func (_m *MockShellWriter) Command(command string, arguments ...string)
- func (_m *MockShellWriter) Else()
- func (_m *MockShellWriter) EmptyLine()
- func (_m *MockShellWriter) EndIf()
- func (_m *MockShellWriter) EnvVariableKey(name string) string
- func (_m *MockShellWriter) Error(fmt string, arguments ...interface{})
- func (_m *MockShellWriter) Finish(trace bool) string
- func (_m *MockShellWriter) IfCmd(cmd string, arguments ...string)
- func (_m *MockShellWriter) IfCmdWithOutput(cmd string, arguments ...string)
- func (_m *MockShellWriter) IfDirectory(path string)
- func (_m *MockShellWriter) IfFile(file string)
- func (_m *MockShellWriter) Line(text string)
- func (_m *MockShellWriter) MkDir(path string)
- func (_m *MockShellWriter) MkTmpDir(name string) string
- func (_m *MockShellWriter) Notice(fmt string, arguments ...interface{})
- func (_m *MockShellWriter) Print(fmt string, arguments ...interface{})
- func (_m *MockShellWriter) RmDir(path string)
- func (_m *MockShellWriter) RmFile(path string)
- func (_m *MockShellWriter) TmpFile(name string) string
- func (_m *MockShellWriter) Variable(variable common.JobVariable)
- func (_m *MockShellWriter) Warning(fmt string, arguments ...interface{})
- type PowerShell
- func (b *PowerShell) GenerateScript(buildStage common.BuildStage, info common.ShellScriptInfo) (script string, err error)
- func (b *PowerShell) GetConfiguration(info common.ShellScriptInfo) (script *common.ShellConfiguration, err error)
- func (b *PowerShell) GetName() string
- func (b *PowerShell) IsDefault() bool
- type PsWriter
- func (b *PsWriter) Absolute(dir string) string
- func (b *PsWriter) Cd(path string)
- func (b *PsWriter) CheckForErrors()
- func (b *PsWriter) Command(command string, arguments ...string)
- func (b *PsWriter) Else()
- func (b *PsWriter) EmptyLine()
- func (b *PsWriter) EndIf()
- func (b *PsWriter) EnvVariableKey(name string) string
- func (b *PsWriter) Error(format string, arguments ...interface{})
- func (b *PsWriter) Finish(trace bool) string
- func (b *PsWriter) GetTemporaryPath() string
- func (b *PsWriter) IfCmd(cmd string, arguments ...string)
- func (b *PsWriter) IfCmdWithOutput(cmd string, arguments ...string)
- func (b *PsWriter) IfDirectory(path string)
- func (b *PsWriter) IfFile(path string)
- func (b *PsWriter) Indent()
- func (b *PsWriter) Line(text string)
- func (b *PsWriter) MkDir(path string)
- func (b *PsWriter) MkTmpDir(name string) string
- func (b *PsWriter) Notice(format string, arguments ...interface{})
- func (b *PsWriter) Print(format string, arguments ...interface{})
- func (b *PsWriter) RmDir(path string)
- func (b *PsWriter) RmFile(path string)
- func (b *PsWriter) TmpFile(name string) string
- func (b *PsWriter) Unindent()
- func (b *PsWriter) Variable(variable common.JobVariable)
- func (b *PsWriter) Warning(format string, arguments ...interface{})
- type ShellWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractShell ¶
type AbstractShell struct { }
func (*AbstractShell) GetFeatures ¶
func (b *AbstractShell) GetFeatures(features *common.FeaturesInfo)
type BashShell ¶
type BashShell struct { AbstractShell Shell string }
func (*BashShell) GenerateScript ¶
func (b *BashShell) GenerateScript(buildStage common.BuildStage, info common.ShellScriptInfo) (script string, err error)
func (*BashShell) GetConfiguration ¶
func (b *BashShell) GetConfiguration(info common.ShellScriptInfo) (script *common.ShellConfiguration, err error)
type BashWriter ¶
type BashWriter struct { bytes.Buffer TemporaryPath string Shell string // contains filtered or unexported fields }
func (*BashWriter) Absolute ¶
func (b *BashWriter) Absolute(dir string) string
func (*BashWriter) Cd ¶
func (b *BashWriter) Cd(path string)
func (*BashWriter) CheckForErrors ¶
func (b *BashWriter) CheckForErrors()
func (*BashWriter) Command ¶
func (b *BashWriter) Command(command string, arguments ...string)
func (*BashWriter) Else ¶
func (b *BashWriter) Else()
func (*BashWriter) EmptyLine ¶
func (b *BashWriter) EmptyLine()
func (*BashWriter) EndIf ¶
func (b *BashWriter) EndIf()
func (*BashWriter) EnvVariableKey ¶
func (b *BashWriter) EnvVariableKey(name string) string
func (*BashWriter) Error ¶
func (b *BashWriter) Error(format string, arguments ...interface{})
func (*BashWriter) Finish ¶
func (b *BashWriter) Finish(trace bool) string
func (*BashWriter) GetTemporaryPath ¶
func (b *BashWriter) GetTemporaryPath() string
func (*BashWriter) IfCmd ¶
func (b *BashWriter) IfCmd(cmd string, arguments ...string)
func (*BashWriter) IfCmdWithOutput ¶
func (b *BashWriter) IfCmdWithOutput(cmd string, arguments ...string)
func (*BashWriter) IfDirectory ¶
func (b *BashWriter) IfDirectory(path string)
func (*BashWriter) IfFile ¶
func (b *BashWriter) IfFile(path string)
func (*BashWriter) Indent ¶
func (b *BashWriter) Indent()
func (*BashWriter) Line ¶
func (b *BashWriter) Line(text string)
func (*BashWriter) MkDir ¶
func (b *BashWriter) MkDir(path string)
func (*BashWriter) MkTmpDir ¶
func (b *BashWriter) MkTmpDir(name string) string
func (*BashWriter) Notice ¶
func (b *BashWriter) Notice(format string, arguments ...interface{})
func (*BashWriter) Print ¶
func (b *BashWriter) Print(format string, arguments ...interface{})
func (*BashWriter) RmDir ¶
func (b *BashWriter) RmDir(path string)
func (*BashWriter) RmFile ¶
func (b *BashWriter) RmFile(path string)
func (*BashWriter) TmpFile ¶
func (b *BashWriter) TmpFile(name string) string
func (*BashWriter) Unindent ¶
func (b *BashWriter) Unindent()
func (*BashWriter) Variable ¶
func (b *BashWriter) Variable(variable common.JobVariable)
func (*BashWriter) Warning ¶
func (b *BashWriter) Warning(format string, arguments ...interface{})
type CmdShell ¶
type CmdShell struct {
AbstractShell
}
func (*CmdShell) GenerateScript ¶
func (b *CmdShell) GenerateScript(buildStage common.BuildStage, info common.ShellScriptInfo) (script string, err error)
func (*CmdShell) GetConfiguration ¶
func (b *CmdShell) GetConfiguration(info common.ShellScriptInfo) (script *common.ShellConfiguration, err error)
type CmdWriter ¶
type CmdWriter struct { bytes.Buffer TemporaryPath string // contains filtered or unexported fields }
func (*CmdWriter) CheckForErrors ¶
func (b *CmdWriter) CheckForErrors()
func (*CmdWriter) EnvVariableKey ¶
func (*CmdWriter) GetTemporaryPath ¶
func (*CmdWriter) IfCmdWithOutput ¶
func (*CmdWriter) IfDirectory ¶
func (*CmdWriter) Variable ¶
func (b *CmdWriter) Variable(variable common.JobVariable)
type MockShellWriter ¶
MockShellWriter is an autogenerated mock type for the ShellWriter type
func (*MockShellWriter) Absolute ¶
func (_m *MockShellWriter) Absolute(path string) string
Absolute provides a mock function with given fields: path
func (*MockShellWriter) Cd ¶
func (_m *MockShellWriter) Cd(path string)
Cd provides a mock function with given fields: path
func (*MockShellWriter) CheckForErrors ¶
func (_m *MockShellWriter) CheckForErrors()
CheckForErrors provides a mock function with given fields:
func (*MockShellWriter) Command ¶
func (_m *MockShellWriter) Command(command string, arguments ...string)
Command provides a mock function with given fields: command, arguments
func (*MockShellWriter) Else ¶
func (_m *MockShellWriter) Else()
Else provides a mock function with given fields:
func (*MockShellWriter) EmptyLine ¶
func (_m *MockShellWriter) EmptyLine()
EmptyLine provides a mock function with given fields:
func (*MockShellWriter) EndIf ¶
func (_m *MockShellWriter) EndIf()
EndIf provides a mock function with given fields:
func (*MockShellWriter) EnvVariableKey ¶
func (_m *MockShellWriter) EnvVariableKey(name string) string
EnvVariableKey provides a mock function with given fields: name
func (*MockShellWriter) Error ¶
func (_m *MockShellWriter) Error(fmt string, arguments ...interface{})
Error provides a mock function with given fields: fmt, arguments
func (*MockShellWriter) Finish ¶
func (_m *MockShellWriter) Finish(trace bool) string
Finish provides a mock function with given fields: trace
func (*MockShellWriter) IfCmd ¶
func (_m *MockShellWriter) IfCmd(cmd string, arguments ...string)
IfCmd provides a mock function with given fields: cmd, arguments
func (*MockShellWriter) IfCmdWithOutput ¶
func (_m *MockShellWriter) IfCmdWithOutput(cmd string, arguments ...string)
IfCmdWithOutput provides a mock function with given fields: cmd, arguments
func (*MockShellWriter) IfDirectory ¶
func (_m *MockShellWriter) IfDirectory(path string)
IfDirectory provides a mock function with given fields: path
func (*MockShellWriter) IfFile ¶
func (_m *MockShellWriter) IfFile(file string)
IfFile provides a mock function with given fields: file
func (*MockShellWriter) Line ¶
func (_m *MockShellWriter) Line(text string)
Line provides a mock function with given fields: text
func (*MockShellWriter) MkDir ¶
func (_m *MockShellWriter) MkDir(path string)
MkDir provides a mock function with given fields: path
func (*MockShellWriter) MkTmpDir ¶
func (_m *MockShellWriter) MkTmpDir(name string) string
MkTmpDir provides a mock function with given fields: name
func (*MockShellWriter) Notice ¶
func (_m *MockShellWriter) Notice(fmt string, arguments ...interface{})
Notice provides a mock function with given fields: fmt, arguments
func (*MockShellWriter) Print ¶
func (_m *MockShellWriter) Print(fmt string, arguments ...interface{})
Print provides a mock function with given fields: fmt, arguments
func (*MockShellWriter) RmDir ¶
func (_m *MockShellWriter) RmDir(path string)
RmDir provides a mock function with given fields: path
func (*MockShellWriter) RmFile ¶
func (_m *MockShellWriter) RmFile(path string)
RmFile provides a mock function with given fields: path
func (*MockShellWriter) TmpFile ¶
func (_m *MockShellWriter) TmpFile(name string) string
TmpFile provides a mock function with given fields: name
func (*MockShellWriter) Variable ¶
func (_m *MockShellWriter) Variable(variable common.JobVariable)
Variable provides a mock function with given fields: variable
func (*MockShellWriter) Warning ¶
func (_m *MockShellWriter) Warning(fmt string, arguments ...interface{})
Warning provides a mock function with given fields: fmt, arguments
type PowerShell ¶
type PowerShell struct {
AbstractShell
}
func (*PowerShell) GenerateScript ¶
func (b *PowerShell) GenerateScript(buildStage common.BuildStage, info common.ShellScriptInfo) (script string, err error)
func (*PowerShell) GetConfiguration ¶
func (b *PowerShell) GetConfiguration(info common.ShellScriptInfo) (script *common.ShellConfiguration, err error)
func (*PowerShell) GetName ¶
func (b *PowerShell) GetName() string
func (*PowerShell) IsDefault ¶
func (b *PowerShell) IsDefault() bool
type PsWriter ¶
type PsWriter struct { bytes.Buffer TemporaryPath string // contains filtered or unexported fields }
func (*PsWriter) CheckForErrors ¶
func (b *PsWriter) CheckForErrors()
func (*PsWriter) EnvVariableKey ¶
func (*PsWriter) GetTemporaryPath ¶
func (*PsWriter) IfCmdWithOutput ¶
func (*PsWriter) IfDirectory ¶
func (*PsWriter) Variable ¶
func (b *PsWriter) Variable(variable common.JobVariable)
type ShellWriter ¶
type ShellWriter interface { EnvVariableKey(name string) string Variable(variable common.JobVariable) Command(command string, arguments ...string) Line(text string) CheckForErrors() IfDirectory(path string) IfFile(file string) IfCmd(cmd string, arguments ...string) IfCmdWithOutput(cmd string, arguments ...string) Else() EndIf() Cd(path string) MkDir(path string) RmDir(path string) RmFile(path string) Absolute(path string) string TmpFile(name string) string MkTmpDir(name string) string Print(fmt string, arguments ...interface{}) Notice(fmt string, arguments ...interface{}) Warning(fmt string, arguments ...interface{}) Error(fmt string, arguments ...interface{}) EmptyLine() Finish(trace bool) string }