clients

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SeedTestData

func SeedTestData(t *testing.T, ctx context.Context, d Data) (Clients, Informers)

SeedTestData returns Clients and Informers populated with the given Data. nolint: golint, revive

Types

type Clients

type Clients struct {
	Pipeline         *fakepipelineclientset.Clientset
	PipelineAsCode   *fakepacclientset.Clientset
	Kube             *fakekubeclientset.Clientset
	PipelineLister   v1beta12.PipelineRunLister
	RepositoryLister v1alpha12.RepositoryLister
}

type Data

type Data struct {
	PipelineRuns []*pipelinev1beta1.PipelineRun
	Repositories []*v1alpha1.Repository
	Namespaces   []*corev1.Namespace
	Secret       []*corev1.Secret
}

type Informers

type Informers struct {
	PipelineRun v1beta1.PipelineRunInformer
	Repository  informersv1alpha1.RepositoryInformer
}

Informers holds references to informers which are useful for reconciler tests.

Jump to

Keyboard shortcuts

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