dispatcher

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HookServerClientManager

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

func NewClientManager

func NewClientManager() *HookServerClientManager

NewClientManager TODO: garbage client gc

func (*HookServerClientManager) RuntimeHookServerClient

func (cm *HookServerClientManager) RuntimeHookServerClient(serverPath HookServerPath) (*RuntimeHookClient, error)

type HookServerPath

type HookServerPath struct {
	Path string
	Port int64
}

type RuntimeHookClient

type RuntimeHookClient struct {
	SockPath string
	v1alpha1.RuntimeHookServiceClient
}

type RuntimeHookDispatcher

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

RuntimeHookDispatcher dispatches hook request to RuntimeHookServer(e.g. koordlet)

func NewRuntimeDispatcher

func NewRuntimeDispatcher() *RuntimeHookDispatcher

func (*RuntimeHookDispatcher) Dispatch

func (rd *RuntimeHookDispatcher) Dispatch(ctx context.Context, runtimeRequestPath config.RuntimeRequestPath,
	stage config.RuntimeHookStage, request interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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