fakes

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeDetectionCalculator

type FakeDetectionCalculator struct {
	ReturnForOrder builder.DetectionOrder

	ErrorForOrder error

	ReceivedTopOrder dist.Order
	ReceivedLayers   dist.BuildpackLayers
	ReceivedDepth    int
}

func (*FakeDetectionCalculator) Order

func (c *FakeDetectionCalculator) Order(
	topOrder dist.Order,
	layers dist.BuildpackLayers,
	depth int,
) (builder.DetectionOrder, error)

type FakeInspectable

type FakeInspectable struct {
	ReturnForLabel string

	ErrorForLabel error

	ReceivedName string
}

func (*FakeInspectable) Label

func (f *FakeInspectable) Label(name string) (string, error)

type FakeInspectableFetcher

type FakeInspectableFetcher struct {
	InspectableToReturn *FakeInspectable
	ErrorToReturn       error

	CallCount int

	ReceivedName       string
	ReceivedDaemon     bool
	ReceivedPullPolicy image.PullPolicy
}

func (*FakeInspectableFetcher) Fetch

type FakeLabelManager

type FakeLabelManager struct {
	ReturnForMetadata        builder.Metadata
	ReturnForStackID         string
	ReturnForMixins          []string
	ReturnForOrder           dist.Order
	ReturnForBuildpackLayers dist.BuildpackLayers

	ErrorForMetadata        error
	ErrorForStackID         error
	ErrorForMixins          error
	ErrorForOrder           error
	ErrorForBuildpackLayers error
}

func (*FakeLabelManager) BuildpackLayers

func (m *FakeLabelManager) BuildpackLayers() (dist.BuildpackLayers, error)

func (*FakeLabelManager) Metadata

func (m *FakeLabelManager) Metadata() (builder.Metadata, error)

func (*FakeLabelManager) Mixins

func (m *FakeLabelManager) Mixins() ([]string, error)

func (*FakeLabelManager) Order

func (m *FakeLabelManager) Order() (dist.Order, error)

func (*FakeLabelManager) StackID

func (m *FakeLabelManager) StackID() (string, error)

type FakeLabelManagerFactory

type FakeLabelManagerFactory struct {
	BuilderLabelManagerToReturn builder.LabelInspector

	ReceivedInspectable builder.Inspectable
}

func NewFakeLabelManagerFactory

func NewFakeLabelManagerFactory(builderLabelManagerToReturn builder.LabelInspector) *FakeLabelManagerFactory

func (*FakeLabelManagerFactory) BuilderLabelManager

func (f *FakeLabelManagerFactory) BuilderLabelManager(inspectable builder.Inspectable) builder.LabelInspector

Jump to

Keyboard shortcuts

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