clients

package
v0.21.5 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 19 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.

Types

type Clients

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

type Data

type Data struct {
	TaskRuns     []*pipelinev1.TaskRun
	PipelineRuns []*pipelinev1.PipelineRun
	Repositories []*v1alpha1.Repository
	Namespaces   []*corev1.Namespace
	Secret       []*corev1.Secret
	Events       []*corev1.Event
	ConfigMap    []*corev1.ConfigMap
	Deployments  []*appsv1.Deployment
}

type Informers

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