client

package
v0.3.16 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MPL-2.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

func (*Adapter) Run

func (adapter *Adapter) Run(ctx context.Context) error

Run the runtime and controllers.

type RuntimeClient

RuntimeClient implements both controller runtime APIs.

Jump to

Keyboard shortcuts

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