Help us shape the future of Go! Take the 2026 Go Developer Survey

test

package
v0.46.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const API string = "https://test.hub.cli"

API is test URL

Variables

This section is empty.

Functions

func CreateTektonPipelineController

func CreateTektonPipelineController(dynamic dynamic.Interface, version string) error

func DynamicClient

func DynamicClient(objects ...runtime.Object) *fake.FakeDynamicClient

func FakeClientSet

func FakeClientSet(tekton versioned.Interface, dynamic dynamic.Interface, namespace string) kube.ClientSet

func GetConfigMapData

func GetConfigMapData(name string, version string) *unstructured.Unstructured

func GetDeploymentData

func GetDeploymentData(name, version string) *unstructured.Unstructured

func NewCLI

func NewCLI(hubType string) app.CLI

func SeedV1beta1TestData

func SeedV1beta1TestData(t *testing.T, d Data) (Clients, Informers)

Types

type Clients

type Clients struct {
	Pipeline *fakepipelineclientset.Clientset
	Kube     *fakekubeclientset.Clientset
}

type Data

type Data struct {
	Pipelines []*v1beta1.Pipeline
	Tasks     []*v1beta1.Task
}

type Informers

type Informers struct {
	Pipeline informersv1beta1.PipelineInformer
	Task     informersv1beta1.TaskInformer
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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