testhelpers

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 19 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
	BuilderSpec         v1alpha1.BuilderSpec
}

type FakeBuilderCreator

type FakeBuilderCreator struct {
	Record    v1alpha1.BuilderRecord
	CreateErr error

	CreateBuilderCalls []CreateBuilderArgs
}

func (*FakeBuilderCreator) CreateBuilder

func (f *FakeBuilderCreator) CreateBuilder(keychain authn.Keychain, repo cnb.BuildpackRepository, clusterStack *v1alpha1.ClusterStack, builder v1alpha1.BuilderSpec) (v1alpha1.BuilderRecord, error)

type FakeBuildpackRepository added in v0.0.6

type FakeBuildpackRepository struct {
	ClusterStore *v1alpha1.ClusterStore
}

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) GetClusterStackLister

func (l *Listers) GetClusterStackLister() v1alpha1Listers.ClusterStackLister

func (*Listers) GetClusterStoreLister

func (l *Listers) GetClusterStoreLister() v1alpha1Listers.ClusterStoreLister

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

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