testhelpers

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateBuilderArgs

type CreateBuilderArgs struct {
	Keychain            authn.Keychain
	BuildpackRepository cnb.BuildpackRepository
	CustomBuilderSpec   expv1alpha1.CustomBuilderSpec
}

type FakeBuilderCreator

type FakeBuilderCreator struct {
	Record    v1alpha1.BuilderRecord
	CreateErr error

	CreateBuilderCalls []CreateBuilderArgs
}

func (*FakeBuilderCreator) CreateBuilder

type FakeBuildpackRepository added in v0.0.6

type FakeBuildpackRepository struct {
	Store *expv1alpha1.Store
}

func (FakeBuildpackRepository) FindByIdAndVersion added in v0.0.6

func (f FakeBuildpackRepository) FindByIdAndVersion(id, version string) (cnb.RemoteBuildpackInfo, error)

type FakeTracker

type FakeTracker map[string]map[types.NamespacedName]struct{}

func (FakeTracker) IsTracking

func (f FakeTracker) IsTracking(ref v1.ObjectMetaAccessor, obj types.NamespacedName) bool

func (FakeTracker) OnChanged

func (FakeTracker) OnChanged(obj interface{})

func (FakeTracker) Track

type Listers

type Listers struct {
	// contains filtered or unexported fields
}

func NewListers

func NewListers(objs []runtime.Object) Listers

func (*Listers) BuildServiceObjects

func (l *Listers) BuildServiceObjects() []runtime.Object

func (*Listers) GetBuildLister

func (l *Listers) GetBuildLister() v1alpha1Listers.BuildLister

func (*Listers) GetBuilderLister

func (l *Listers) GetBuilderLister() v1alpha1Listers.BuilderLister

func (*Listers) GetClusterBuilderLister

func (l *Listers) GetClusterBuilderLister() v1alpha1Listers.ClusterBuilderLister

func (*Listers) GetCustomBuilderLister added in v0.0.6

func (l *Listers) GetCustomBuilderLister() expv1alpha1Listers.CustomBuilderLister

func (*Listers) GetCustomClusterBuilderLister added in v0.0.6

func (l *Listers) GetCustomClusterBuilderLister() expv1alpha1Listers.CustomClusterBuilderLister

func (*Listers) GetDuckBuilderLister

func (l *Listers) GetDuckBuilderLister() *duckbuilder.DuckBuilderLister

func (*Listers) GetImageLister

func (l *Listers) GetImageLister() v1alpha1Listers.ImageLister

func (*Listers) GetKubeObjects

func (l *Listers) GetKubeObjects() []runtime.Object

func (*Listers) GetPersistentVolumeClaimLister

func (l *Listers) GetPersistentVolumeClaimLister() corev1listers.PersistentVolumeClaimLister

func (*Listers) GetPodLister

func (l *Listers) GetPodLister() corev1listers.PodLister

func (*Listers) GetSourceResolverLister

func (l *Listers) GetSourceResolverLister() v1alpha1Listers.SourceResolverLister

func (*Listers) GetStackLister added in v0.0.6

func (l *Listers) GetStackLister() expv1alpha1Listers.StackLister

func (*Listers) GetStoreLister added in v0.0.6

func (l *Listers) GetStoreLister() expv1alpha1Listers.StoreLister

type SpecReconcilerTester

type SpecReconcilerTester struct {
	// contains filtered or unexported fields
}

func ReconcilerTester

func ReconcilerTester(t *testing.T, factory rtesting.Factory) SpecReconcilerTester

func (SpecReconcilerTester) Test

func (rt SpecReconcilerTester) Test(test rtesting.TableRow)

Jump to

Keyboard shortcuts

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