Documentation ¶
Index ¶
- func IsEnabledMCS(f *trafficv1alpha2.Hub) bool
- type HubController
- func (c *HubController) Clientset(hubName string) (client.Interface, error)
- func (c *HubController) DeletePortPeer(importHubName string, cluster, namespace, name string, port int32) (int32, error)
- func (c *HubController) GetAuthorized(name string) string
- func (c *HubController) GetHub(name string) *trafficv1alpha2.Hub
- func (c *HubController) GetHubGateway(hubName string, forHub string) trafficv1alpha2.HubSpecGateway
- func (c *HubController) GetPortPeer(importHubName string, cluster, namespace, name string, port int32) (int32, error)
- func (c *HubController) GetService(hubName string, namespace, name string) (*corev1.Service, bool)
- func (c *HubController) GetTunnelAddressInControlPlane(hubName string) string
- func (c *HubController) HubReady(hubName string) bool
- func (c *HubController) ListHubs() []*trafficv1alpha2.Hub
- func (c *HubController) ListMCS(namespace string) (map[string][]*mcsv1alpha1.ServiceImport, ...)
- func (c *HubController) ListServices(hubName string) []*corev1.Service
- func (c *HubController) LoadPortPeer(importHubName string, cluster, namespace, name string, port, bindPort int32) error
- func (c *HubController) ResetClientset(hubName string)
- func (c *HubController) Run(ctx context.Context) error
- func (c *HubController) Sync(ctx context.Context)
- func (c *HubController) UpdateClientset(hubName string) (client.Interface, error)
- func (c *HubController) UpdateHubConditions(name string, conditions []metav1.Condition)
- type HubControllerConfig
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 (*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 (*HubController) GetService ¶
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) 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)
Click to show internal directories.
Click to hide internal directories.