Documentation
¶
Index ¶
- func FailedError(a ...interface{}) error
- func FailedErrorc(context MessageContext) error
- func FailedErrorf(format string, a ...interface{}) error
- type DefaultToolkit
- func (d *DefaultToolkit) AddMask(mask string)
- func (d *DefaultToolkit) AddPath(paths ...string) error
- func (d *DefaultToolkit) Debug(a ...interface{})
- func (d *DefaultToolkit) Debugf(format string, a ...interface{})
- func (d *DefaultToolkit) EndGroup()
- func (d *DefaultToolkit) Error(a ...interface{})
- func (d *DefaultToolkit) Errorc(context MessageContext)
- func (d *DefaultToolkit) Errorf(format string, a ...interface{})
- func (d *DefaultToolkit) ExportVariable(name string, value string) error
- func (d *DefaultToolkit) GetInput(name string) (string, bool)
- func (d *DefaultToolkit) GetInputList(name string) ([]string, bool)
- func (d *DefaultToolkit) GetState(name string) (string, bool)
- func (d *DefaultToolkit) IsDebug() bool
- func (d *DefaultToolkit) SetOutput(name string, value string)
- func (d *DefaultToolkit) SetState(name string, value string)
- func (d *DefaultToolkit) StartGroup(title string)
- func (d *DefaultToolkit) Warning(a ...interface{})
- func (d *DefaultToolkit) Warningc(context MessageContext)
- func (d *DefaultToolkit) Warningf(format string, a ...interface{})
- type MessageContext
- type MockToolkit
- func (_m *MockToolkit) AddMask(mask string)
- func (_m *MockToolkit) AddPath(paths ...string) error
- func (_m *MockToolkit) Debug(a ...interface{})
- func (_m *MockToolkit) Debugf(format string, a ...interface{})
- func (_m *MockToolkit) EndGroup()
- func (_m *MockToolkit) Error(a ...interface{})
- func (_m *MockToolkit) Errorc(context MessageContext)
- func (_m *MockToolkit) Errorf(format string, a ...interface{})
- func (_m *MockToolkit) ExportVariable(name string, value string) error
- func (_m *MockToolkit) GetInput(name string) (string, bool)
- func (_m *MockToolkit) GetInputList(name string) ([]string, bool)
- func (_m *MockToolkit) GetState(name string) (string, bool)
- func (_m *MockToolkit) IsDebug() bool
- func (_m *MockToolkit) SetOutput(name string, value string)
- func (_m *MockToolkit) SetState(name string, value string)
- func (_m *MockToolkit) StartGroup(title string)
- func (_m *MockToolkit) Warning(a ...interface{})
- func (_m *MockToolkit) Warningc(context MessageContext)
- func (_m *MockToolkit) Warningf(format string, a ...interface{})
- type Toolkit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailedError ¶
func FailedError(a ...interface{}) error
func FailedErrorc ¶
func FailedErrorc(context MessageContext) error
func FailedErrorf ¶
Types ¶
type DefaultToolkit ¶
type DefaultToolkit struct { Environment map[string]string Writer io.Writer Delemiter string // contains filtered or unexported fields }
func (*DefaultToolkit) AddMask ¶
func (d *DefaultToolkit) AddMask(mask string)
func (*DefaultToolkit) AddPath ¶
func (d *DefaultToolkit) AddPath(paths ...string) error
func (*DefaultToolkit) Debug ¶
func (d *DefaultToolkit) Debug(a ...interface{})
func (*DefaultToolkit) Debugf ¶
func (d *DefaultToolkit) Debugf(format string, a ...interface{})
func (*DefaultToolkit) EndGroup ¶
func (d *DefaultToolkit) EndGroup()
func (*DefaultToolkit) Error ¶
func (d *DefaultToolkit) Error(a ...interface{})
func (*DefaultToolkit) Errorc ¶
func (d *DefaultToolkit) Errorc(context MessageContext)
func (*DefaultToolkit) Errorf ¶
func (d *DefaultToolkit) Errorf(format string, a ...interface{})
func (*DefaultToolkit) ExportVariable ¶
func (d *DefaultToolkit) ExportVariable(name string, value string) error
func (*DefaultToolkit) GetInputList ¶
func (d *DefaultToolkit) GetInputList(name string) ([]string, bool)
func (*DefaultToolkit) IsDebug ¶
func (d *DefaultToolkit) IsDebug() bool
func (*DefaultToolkit) SetOutput ¶
func (d *DefaultToolkit) SetOutput(name string, value string)
func (*DefaultToolkit) SetState ¶
func (d *DefaultToolkit) SetState(name string, value string)
func (*DefaultToolkit) StartGroup ¶
func (d *DefaultToolkit) StartGroup(title string)
func (*DefaultToolkit) Warning ¶
func (d *DefaultToolkit) Warning(a ...interface{})
func (*DefaultToolkit) Warningc ¶
func (d *DefaultToolkit) Warningc(context MessageContext)
func (*DefaultToolkit) Warningf ¶
func (d *DefaultToolkit) Warningf(format string, a ...interface{})
type MessageContext ¶
func (*MessageContext) String ¶
func (m *MessageContext) String() string
type MockToolkit ¶
MockToolkit is an autogenerated mock type for the Toolkit type
func (*MockToolkit) AddMask ¶
func (_m *MockToolkit) AddMask(mask string)
AddMask provides a mock function with given fields: mask
func (*MockToolkit) AddPath ¶
func (_m *MockToolkit) AddPath(paths ...string) error
AddPath provides a mock function with given fields: paths
func (*MockToolkit) Debug ¶
func (_m *MockToolkit) Debug(a ...interface{})
Debug provides a mock function with given fields: a
func (*MockToolkit) Debugf ¶
func (_m *MockToolkit) Debugf(format string, a ...interface{})
Debugf provides a mock function with given fields: format, a
func (*MockToolkit) EndGroup ¶
func (_m *MockToolkit) EndGroup()
EndGroup provides a mock function with given fields:
func (*MockToolkit) Error ¶
func (_m *MockToolkit) Error(a ...interface{})
Error provides a mock function with given fields: a
func (*MockToolkit) Errorc ¶
func (_m *MockToolkit) Errorc(context MessageContext)
Errorc provides a mock function with given fields: context
func (*MockToolkit) Errorf ¶
func (_m *MockToolkit) Errorf(format string, a ...interface{})
Errorf provides a mock function with given fields: format, a
func (*MockToolkit) ExportVariable ¶
func (_m *MockToolkit) ExportVariable(name string, value string) error
ExportVariable provides a mock function with given fields: name, value
func (*MockToolkit) GetInput ¶
func (_m *MockToolkit) GetInput(name string) (string, bool)
GetInput provides a mock function with given fields: name
func (*MockToolkit) GetInputList ¶
func (_m *MockToolkit) GetInputList(name string) ([]string, bool)
GetInputList provides a mock function with given fields: name
func (*MockToolkit) GetState ¶
func (_m *MockToolkit) GetState(name string) (string, bool)
GetState provides a mock function with given fields: name
func (*MockToolkit) IsDebug ¶
func (_m *MockToolkit) IsDebug() bool
IsDebug provides a mock function with given fields:
func (*MockToolkit) SetOutput ¶
func (_m *MockToolkit) SetOutput(name string, value string)
SetOutput provides a mock function with given fields: name, value
func (*MockToolkit) SetState ¶
func (_m *MockToolkit) SetState(name string, value string)
SetState provides a mock function with given fields: name, value
func (*MockToolkit) StartGroup ¶
func (_m *MockToolkit) StartGroup(title string)
StartGroup provides a mock function with given fields: title
func (*MockToolkit) Warning ¶
func (_m *MockToolkit) Warning(a ...interface{})
Warning provides a mock function with given fields: a
func (*MockToolkit) Warningc ¶
func (_m *MockToolkit) Warningc(context MessageContext)
Warningc provides a mock function with given fields: context
func (*MockToolkit) Warningf ¶
func (_m *MockToolkit) Warningf(format string, a ...interface{})
Warningf provides a mock function with given fields: format, a
type Toolkit ¶
type Toolkit interface { AddPath(paths ...string) error ExportVariable(name string, value string) error GetInput(name string) (string, bool) GetInputList(name string) ([]string, bool) SetOutput(name string, value string) GetState(name string) (string, bool) SetState(name string, value string) AddMask(mask string) StartGroup(title string) EndGroup() IsDebug() bool Debug(a ...interface{}) Debugf(format string, a ...interface{}) Warning(a ...interface{}) Warningc(context MessageContext) Warningf(format string, a ...interface{}) Error(a ...interface{}) Errorc(context MessageContext) Errorf(format string, a ...interface{}) }