hub

package
v0.4.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HubController

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

func NewHubController

func NewHubController(conf HubControllerConfig) *HubController

func (*HubController) Clientset

func (c *HubController) Clientset(name string) kubernetes.Interface

func (*HubController) GetHub

func (c *HubController) GetHub(name string) *v1alpha2.Hub

func (*HubController) GetHubGateway added in v0.3.1

func (c *HubController) GetHubGateway(hubName string, forHub string) v1alpha2.HubSpecGateway

func (*HubController) GetIdentity

func (c *HubController) GetIdentity(name string) string

func (*HubController) GetPortPeer

func (c *HubController) GetPortPeer(importHubName string, cluster, namespace, name string, port int32) int32

func (*HubController) ListServices

func (c *HubController) ListServices(name string) []*corev1.Service

func (*HubController) LoadPortPeer

func (c *HubController) LoadPortPeer(importHubName string, list *corev1.ServiceList)

func (*HubController) RegistryServiceCallback

func (c *HubController) RegistryServiceCallback(exportHubName, importHubName string, cb func())

func (*HubController) Run

func (c *HubController) Run(ctx context.Context) error

func (*HubController) UnregistryServiceCallback

func (c *HubController) UnregistryServiceCallback(exportHubName, importHubName string)

type HubControllerConfig

type HubControllerConfig struct {
	Logger    logr.Logger
	Config    *restclient.Config
	Namespace string
	SyncFunc  func()
}

Jump to

Keyboard shortcuts

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