transport

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ControllerName = "transport-controller"
)

Variables

This section is empty.

Functions

func NewTransportController

func NewTransportController(ctx context.Context, bindingInformer controlv1alpha1informers.BindingInformer, transport Transport,
	wdsClientset ksclientset.Interface, wdsDynamicClient dynamic.Interface, transportClientset kubernetes.Interface,
	transportDynamicClient dynamic.Interface, wdsName string) (*genericTransportController, error)

NewTransportController returns a new transport controller. This func is like NewTransportControllerForWrappedObjectGVR but first uses the given transport and transportClientset to discover the GVR of wrapped objects. The given transportDynamicClient is used to access the ITS.

func NewTransportControllerForWrappedObjectGVR added in v0.21.0

func NewTransportControllerForWrappedObjectGVR(ctx context.Context, bindingInformer controlv1alpha1informers.BindingInformer, transport Transport,
	wdsClientset ksclientset.Interface, wdsDynamicClient dynamic.Interface,
	transportDynamicClient dynamic.Interface, wdsName string, wrappedObjectGVR schema.GroupVersionResource) *genericTransportController

NewTransportControllerForWrappedObjectGVR returns a new transport controller. The given transportDynamicClient is used to access the ITS.

Types

type Transport

type Transport interface {
	// WrapObjects gets slice of objects and wraps them into a single wrapped object.
	// In case slice is empty, the function should return an empty wrapped object.
	WrapObjects(objects []*unstructured.Unstructured) runtime.Object
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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