Documentation ¶
Index ¶
- func WhichReturnsForNew(phase build.RunnerCleaner) func(*FakePhaseFactory)
- func WithBuilder(builder *FakeBuilder) func(*build.LifecycleOptions)
- func WithDeprecatedPlatformAPIs(apis []*api.Version) func(*FakeBuilder)
- func WithGID(gid int) func(*FakeBuilder)
- func WithImage(image imgutil.Image) func(*FakeBuilder)
- func WithSupportedPlatformAPIs(apis []*api.Version) func(*FakeBuilder)
- func WithTermui(screen build.Termui) func(*build.LifecycleOptions)
- func WithUID(uid int) func(*FakeBuilder)
- type FakeBuilder
- type FakeCache
- type FakePhase
- type FakePhaseFactory
- type FakeTermui
- func (f *FakeTermui) Debug(msg string)
- func (f *FakeTermui) Debugf(fmt string, v ...interface{})
- func (f *FakeTermui) Error(msg string)
- func (f *FakeTermui) Errorf(fmt string, v ...interface{})
- func (f *FakeTermui) Handler() container.Handler
- func (f *FakeTermui) Info(msg string)
- func (f *FakeTermui) Infof(fmt string, v ...interface{})
- func (f *FakeTermui) IsVerbose() bool
- func (f *FakeTermui) Run(funk func()) error
- func (f *FakeTermui) Warn(msg string)
- func (f *FakeTermui) Warnf(fmt string, v ...interface{})
- func (f *FakeTermui) Writer() io.Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WhichReturnsForNew ¶
func WhichReturnsForNew(phase build.RunnerCleaner) func(*FakePhaseFactory)
func WithBuilder ¶
func WithBuilder(builder *FakeBuilder) func(*build.LifecycleOptions)
func WithDeprecatedPlatformAPIs ¶ added in v0.13.0
func WithDeprecatedPlatformAPIs(apis []*api.Version) func(*FakeBuilder)
func WithGID ¶ added in v0.11.0
func WithGID(gid int) func(*FakeBuilder)
func WithImage ¶ added in v0.13.0
func WithImage(image imgutil.Image) func(*FakeBuilder)
func WithSupportedPlatformAPIs ¶ added in v0.13.0
func WithSupportedPlatformAPIs(apis []*api.Version) func(*FakeBuilder)
func WithTermui ¶ added in v0.21.0
func WithTermui(screen build.Termui) func(*build.LifecycleOptions)
func WithUID ¶ added in v0.11.0
func WithUID(uid int) func(*FakeBuilder)
Types ¶
type FakeBuilder ¶
type FakeBuilder struct { ReturnForImage imgutil.Image ReturnForUID int ReturnForGID int ReturnForLifecycleDescriptor builder.LifecycleDescriptor ReturnForStack builder.StackMetadata }
func NewFakeBuilder ¶
func NewFakeBuilder(ops ...func(*FakeBuilder)) (*FakeBuilder, error)
func (*FakeBuilder) GID ¶
func (b *FakeBuilder) GID() int
func (*FakeBuilder) Image ¶ added in v0.13.0
func (b *FakeBuilder) Image() imgutil.Image
func (*FakeBuilder) LifecycleDescriptor ¶
func (b *FakeBuilder) LifecycleDescriptor() builder.LifecycleDescriptor
func (*FakeBuilder) Name ¶
func (b *FakeBuilder) Name() string
func (*FakeBuilder) Stack ¶ added in v0.11.0
func (b *FakeBuilder) Stack() builder.StackMetadata
func (*FakeBuilder) UID ¶
func (b *FakeBuilder) UID() int
type FakeCache ¶ added in v0.16.0
type FakeCache struct { ReturnForType cache.Type ReturnForClear error ReturnForName string TypeCallCount int ClearCallCount int NameCallCount int }
func NewFakeCache ¶ added in v0.16.0
func NewFakeCache() *FakeCache
type FakePhaseFactory ¶
type FakePhaseFactory struct { NewCallCount int ReturnForNew build.RunnerCleaner NewCalledWithProvider []*build.PhaseConfigProvider }
func NewFakePhaseFactory ¶
func NewFakePhaseFactory(ops ...func(*FakePhaseFactory)) *FakePhaseFactory
func (*FakePhaseFactory) New ¶
func (f *FakePhaseFactory) New(phaseConfigProvider *build.PhaseConfigProvider) build.RunnerCleaner
type FakeTermui ¶ added in v0.21.0
type FakeTermui struct {
// contains filtered or unexported fields
}
func NewFakeTermui ¶ added in v0.21.0
func NewFakeTermui(handler container.Handler) *FakeTermui
func (*FakeTermui) Debug ¶ added in v0.21.0
func (f *FakeTermui) Debug(msg string)
func (*FakeTermui) Debugf ¶ added in v0.21.0
func (f *FakeTermui) Debugf(fmt string, v ...interface{})
func (*FakeTermui) Error ¶ added in v0.21.0
func (f *FakeTermui) Error(msg string)
func (*FakeTermui) Errorf ¶ added in v0.21.0
func (f *FakeTermui) Errorf(fmt string, v ...interface{})
func (*FakeTermui) Handler ¶ added in v0.21.0
func (f *FakeTermui) Handler() container.Handler
func (*FakeTermui) Info ¶ added in v0.21.0
func (f *FakeTermui) Info(msg string)
func (*FakeTermui) Infof ¶ added in v0.21.0
func (f *FakeTermui) Infof(fmt string, v ...interface{})
func (*FakeTermui) IsVerbose ¶ added in v0.21.0
func (f *FakeTermui) IsVerbose() bool
func (*FakeTermui) Run ¶ added in v0.21.0
func (f *FakeTermui) Run(funk func()) error
func (*FakeTermui) Warn ¶ added in v0.21.0
func (f *FakeTermui) Warn(msg string)
func (*FakeTermui) Warnf ¶ added in v0.21.0
func (f *FakeTermui) Warnf(fmt string, v ...interface{})
func (*FakeTermui) Writer ¶ added in v0.21.0
func (f *FakeTermui) Writer() io.Writer
Click to show internal directories.
Click to hide internal directories.