Documentation
¶
Index ¶
- func NewBuildpackFromDescriptor(descriptor dist.BuildpackDescriptor, chmod int64) (dist.Buildpack, error)
- func NewFakeBuilderImage(t *testing.T, name string, stackID, uid, gid string, metadata builder.Metadata) *fakes.Image
- func NewFakeLogger(w io.Writer) *fakeLog
- type FakeImageFetcher
- type FakeLifecycle
- type FetchArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuildpackFromDescriptor ¶ added in v0.5.0
func NewBuildpackFromDescriptor(descriptor dist.BuildpackDescriptor, chmod int64) (dist.Buildpack, error)
NewBuildpackFromDescriptor creates a fake buildpacks for testing purposes where tar contents are such:
\_ buildpack.toml \_ bin \_ bin/build build-contents \_ bin/detect detect-contents
func NewFakeBuilderImage ¶
func NewFakeLogger ¶
Types ¶
type FakeImageFetcher ¶
type FakeImageFetcher struct {
LocalImages map[string]imgutil.Image
RemoteImages map[string]imgutil.Image
FetchCalls map[string]*FetchArgs
}
func NewFakeImageFetcher ¶
func NewFakeImageFetcher() *FakeImageFetcher
type FakeLifecycle ¶
type FakeLifecycle struct {
Opts build.LifecycleOptions
}
func (*FakeLifecycle) Execute ¶
func (f *FakeLifecycle) Execute(ctx context.Context, opts build.LifecycleOptions) error
Click to show internal directories.
Click to hide internal directories.