client

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MPL-2.0 Imports: 18 Imported by: 0

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