fakes

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBuildpackTGZ added in v0.4.1

func CreateBuildpackTGZ(tmpDir string, descriptor builder.BuildpackDescriptor) (*os.File, error)

func NewFakeBuilderImage

func NewFakeBuilderImage(t *testing.T, name string, stackId, uid, gid string, metadata builder.Metadata) *fakes.Image

func NewFakeBuildpackBlob added in v0.4.1

func NewFakeBuildpackBlob(tmpDir string, descriptor builder.BuildpackDescriptor) *fakeBuildpackBlob

func NewFakeLogger

func NewFakeLogger(w io.Writer) *fakeLog

NewFakeLogger create a logger to capture output for testing purposes.

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

func (*FakeImageFetcher) Fetch

func (f *FakeImageFetcher) Fetch(ctx context.Context, name string, daemon, pull bool) (imgutil.Image, error)

type FakeLifecycle

type FakeLifecycle struct {
	Opts build.LifecycleOptions
}

func (*FakeLifecycle) Execute

func (f *FakeLifecycle) Execute(ctx context.Context, opts build.LifecycleOptions) error

type FetchArgs

type FetchArgs struct {
	Daemon bool
	Pull   bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL