Documentation ¶
Index ¶
- func CreateBuildpackTar(t *testing.T, tmpDir string, descriptor dist.BuildpackDescriptor) string
- func NewFakeBuilderImage(t *testing.T, tmpDir, name string, stackID, uid, gid string, ...) *fakes.Image
- func NewFakeBuildpack(descriptor dist.BuildpackDescriptor, chmod int64) (dist.Buildpack, error)
- func NewFakeBuildpackBlob(descriptor dist.BuildpackDescriptor, chmod int64) (dist.Blob, error)
- type FakeImageCreator
- type FakeImageFetcher
- type FakeLifecycle
- type FetchArgs
- type Package
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBuildpackTar ¶
func NewFakeBuilderImage ¶
func NewFakeBuildpack ¶
NewFakeBuildpack creates a fake buildpacks with contents:
\_ /cnbs/buildpacks/{ID} \_ /cnbs/buildpacks/{ID}/{version} \_ /cnbs/buildpacks/{ID}/{version}/buildpack.toml \_ /cnbs/buildpacks/{ID}/{version}/bin \_ /cnbs/buildpacks/{ID}/{version}/bin/build build-contents \_ /cnbs/buildpacks/{ID}/{version}/bin/detect detect-contents
func NewFakeBuildpackBlob ¶
NewFakeBuildpackBlob creates a fake blob with contents:
\_ buildpack.toml \_ bin \_ bin/build build-contents \_ bin/detect detect-contents
Types ¶
type FakeImageCreator ¶
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
type FetchArgs ¶
type FetchArgs struct { Daemon bool PullPolicy config.PullPolicy }
Click to show internal directories.
Click to hide internal directories.