Documentation ¶
Overview ¶
Package client provides a wrapper around gRPC Runtime client to present it as controller.Engine interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter implement controller.Engine from the gRPC State client.
func NewAdapter ¶
func NewAdapter(client RuntimeClient, logger *zap.Logger) *Adapter
NewAdapter returns new Adapter from the gRPC client.
func (*Adapter) RegisterController ¶
func (adapter *Adapter) RegisterController(ctrl controller.Controller) error
RegisterController registers new controller.
type RuntimeClient ¶
type RuntimeClient interface { v1alpha1.ControllerRuntimeClient v1alpha1.ControllerAdapterClient }
RuntimeClient implements both controller runtime APIs.
Click to show internal directories.
Click to hide internal directories.