Documentation ¶
Index ¶
- Constants
- func NewTransportController(ctx context.Context, bindingInformer controlv1alpha1informers.BindingInformer, ...) (*genericTransportController, error)
- func NewTransportControllerForWrappedObjectGVR(ctx context.Context, bindingInformer controlv1alpha1informers.BindingInformer, ...) *genericTransportController
- type Transport
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 }
Click to show internal directories.
Click to hide internal directories.