tunnel

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package tunnel provides the reverse GRPC tunnel to Omni.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PowerClientFactory

type PowerClientFactory interface {
	GetClient(powerManagement *specs.PowerManagement) (power.Client, error)
}

PowerClientFactory is the interface for creating power clients.

type Tunnel

type Tunnel struct {
	// contains filtered or unexported fields
}

Tunnel represents the reverse GRPC tunnel to Omni.

func New

func New(powerClientFactory PowerClientFactory, state state.State, tunneler Tunneler, logger *zap.Logger) *Tunnel

New creates a new Tunnel.

func (*Tunnel) Run

func (tunnel *Tunnel) Run(ctx context.Context) error

Run starts the reverse GRPC tunnel to Omni.

type Tunneler

type Tunneler interface {
	Tunnel() *grpctunnel.ReverseTunnelServer
}

Tunneler is the interface for the reverse GRPC tunnel.

Jump to

Keyboard shortcuts

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