hub

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnabledMCS

func IsEnabledMCS(f *trafficv1alpha2.Hub) bool

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(hubName string) (client.Interface, error)

func (*HubController) DeletePortPeer

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

func (*HubController) GetAuthorized

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

func (*HubController) GetHub

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

func (*HubController) GetHubGateway

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

func (*HubController) GetPortPeer

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

func (*HubController) GetService

func (c *HubController) GetService(hubName string, namespace, name string) (*corev1.Service, bool)

func (*HubController) GetTunnelAddressInControlPlane

func (c *HubController) GetTunnelAddressInControlPlane(hubName string) string

func (*HubController) HubReady

func (c *HubController) HubReady(hubName string) bool

func (*HubController) ListHubs

func (c *HubController) ListHubs() []*trafficv1alpha2.Hub

func (*HubController) ListMCS

func (c *HubController) ListMCS(namespace string) (map[string][]*mcsv1alpha1.ServiceImport, map[string][]*mcsv1alpha1.ServiceExport)

func (*HubController) ListServices

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

func (*HubController) LoadPortPeer

func (c *HubController) LoadPortPeer(importHubName string, cluster, namespace, name string, port, bindPort int32) error

func (*HubController) ResetClientset

func (c *HubController) ResetClientset(hubName string)

func (*HubController) Run

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

func (*HubController) Sync

func (c *HubController) Sync(ctx context.Context)

func (*HubController) UpdateClientset

func (c *HubController) UpdateClientset(hubName string) (client.Interface, error)

func (*HubController) UpdateHubConditions

func (c *HubController) UpdateHubConditions(name string, conditions []metav1.Condition)

type HubControllerConfig

type HubControllerConfig struct {
	Logger    logr.Logger
	Clientset client.Interface
	Namespace string
	SyncFunc  func()
}

Jump to

Keyboard shortcuts

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