fakes

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBuilderInspector

type FakeBuilderInspector struct {
	InfoForLocal   *pack.BuilderInfo
	InfoForRemote  *pack.BuilderInfo
	ErrorForLocal  error
	ErrorForRemote error

	ReceivedForLocalName      string
	ReceivedForRemoteName     string
	CalculatedConfigForLocal  pack.BuilderInspectionConfig
	CalculatedConfigForRemote pack.BuilderInspectionConfig
}

func (*FakeBuilderInspector) InspectBuilder

func (i *FakeBuilderInspector) InspectBuilder(
	name string,
	daemon bool,
	modifiers ...pack.BuilderInspectionModifier,
) (*pack.BuilderInfo, error)

type FakeBuilderWriter

type FakeBuilderWriter struct {
	PrintForLocal  string
	PrintForRemote string
	ErrorForPrint  error

	ReceivedInfoForLocal   *pack.BuilderInfo
	ReceivedInfoForRemote  *pack.BuilderInfo
	ReceivedErrorForLocal  error
	ReceivedErrorForRemote error
	ReceivedBuilderInfo    writer.SharedBuilderInfo
	ReceivedLocalRunImages []config.RunImage
}

func (*FakeBuilderWriter) Print

func (w *FakeBuilderWriter) Print(
	logger logging.Logger,
	localRunImages []config.RunImage,
	local, remote *pack.BuilderInfo,
	localErr, remoteErr error,
	builderInfo writer.SharedBuilderInfo,
) error

type FakeBuilderWriterFactory

type FakeBuilderWriterFactory struct {
	ReturnForWriter writer.BuilderWriter
	ErrorForWriter  error

	ReceivedForKind string
}

func (*FakeBuilderWriterFactory) Writer

type FakeBuildpackPackager

type FakeBuildpackPackager struct {
	CreateCalledWithOptions pack.PackageBuildpackOptions
}

func (*FakeBuildpackPackager) PackageBuildpack

func (c *FakeBuildpackPackager) PackageBuildpack(ctx context.Context, opts pack.PackageBuildpackOptions) error

type FakeInspectImageWriter

type FakeInspectImageWriter struct {
	PrintForLocal  string
	PrintForRemote string
	ErrorForPrint  error

	ReceivedInfoForLocal   *pack.ImageInfo
	ReceivedInfoForRemote  *pack.ImageInfo
	RecievedGeneralInfo    inspectimage.GeneralInfo
	ReceivedErrorForLocal  error
	ReceivedErrorForRemote error
}

func (*FakeInspectImageWriter) Print

func (w *FakeInspectImageWriter) Print(
	logger logging.Logger,
	sharedInfo inspectimage.GeneralInfo,
	local, remote *pack.ImageInfo,
	localErr, remoteErr error,
) error

type FakeInspectImageWriterFactory

type FakeInspectImageWriterFactory struct {
	ReturnForWriter writer.InspectImageWriter
	ErrorForWriter  error

	ReceivedForKind string
	ReceivedForBOM  bool
}

func (*FakeInspectImageWriterFactory) Writer

type FakePackageConfigReader

type FakePackageConfigReader struct {
	ReadCalledWithArg string
	ReadReturnConfig  pubbldpkg.Config
	ReadReturnError   error
}

func NewFakePackageConfigReader

func NewFakePackageConfigReader(ops ...func(*FakePackageConfigReader)) *FakePackageConfigReader

func (*FakePackageConfigReader) Read

Jump to

Keyboard shortcuts

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