fakes

package
v0.36.2 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 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.ModuleLayers
	ReceivedDepth    int
}

func (*FakeDetectionCalculator) Order

func (c *FakeDetectionCalculator) Order(
	topOrder dist.Order,
	layers dist.ModuleLayers,
	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.ModuleLayers
	ReturnForOrderExtensions dist.Order

	ErrorForMetadata        error
	ErrorForStackID         error
	ErrorForMixins          error
	ErrorForOrder           error
	ErrorForBuildpackLayers error
	ErrorForOrderExtensions error
}

func (*FakeLabelManager) BuildpackLayers

func (m *FakeLabelManager) BuildpackLayers() (dist.ModuleLayers, 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) OrderExtensions added in v0.29.0

func (m *FakeLabelManager) OrderExtensions() (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