Documentation ¶
Overview ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- type TunnelController
- func (tc *TunnelController) EnsureIPTablesRulesPerCluster(tep *netv1alpha1.TunnelEndpoint) error
- func (tc *TunnelController) Reconcile(req ctrl.Request) (ctrl.Result, error)
- func (tc *TunnelController) RemoveAllTunnels()
- func (tc *TunnelController) SetUpIPTablesHandler() error
- func (tc *TunnelController) SetUpRouteManager(recorder record.EventRecorder)
- func (tc *TunnelController) SetUpTunnelDrivers() error
- func (tc *TunnelController) SetupSignalHandlerForTunnelOperator() (stopCh <-chan struct{})
- func (tc *TunnelController) SetupWithManager(mgr ctrl.Manager) error
- func (tc *TunnelController) StartPodWatcher()
- func (tc *TunnelController) StartServiceWatcher()
- func (tc *TunnelController) WatchConfiguration(config *rest.Config, gv *schema.GroupVersion)
Constants ¶
const (
OperatorName = "liqo-gateway"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TunnelController ¶
type TunnelController struct { client.Client record.EventRecorder tunnel.Driver utils.NetLink utils.IPTablesHandler DefaultIface string // contains filtered or unexported fields }
TunnelController reconciles a TunnelEndpoint object
func NewTunnelController ¶
func NewTunnelController(mgr ctrl.Manager, wgc wireguard.Client, nl wireguard.Netlinker) (*TunnelController, error)
Instantiates and initializes the tunnel controller
func (*TunnelController) EnsureIPTablesRulesPerCluster ¶
func (tc *TunnelController) EnsureIPTablesRulesPerCluster(tep *netv1alpha1.TunnelEndpoint) error
func (*TunnelController) RemoveAllTunnels ¶
func (tc *TunnelController) RemoveAllTunnels()
used to remove all the tunnel interfaces when the controller is closed it does not return an error, but just logs them, cause we can not recover from them at exit time
func (*TunnelController) SetUpIPTablesHandler ¶
func (tc *TunnelController) SetUpIPTablesHandler() error
func (*TunnelController) SetUpRouteManager ¶
func (tc *TunnelController) SetUpRouteManager(recorder record.EventRecorder)
func (*TunnelController) SetUpTunnelDrivers ¶
func (tc *TunnelController) SetUpTunnelDrivers() error
for each registered tunnel implementation it creates and initializes the driver
func (*TunnelController) SetupSignalHandlerForTunnelOperator ¶
func (tc *TunnelController) SetupSignalHandlerForTunnelOperator() (stopCh <-chan struct{})
SetupSignalHandlerForRouteOperator registers for SIGTERM, SIGINT, SIGKILL. A stop channel is returned which is closed on one of these signals.
func (*TunnelController) SetupWithManager ¶
func (tc *TunnelController) SetupWithManager(mgr ctrl.Manager) error
func (*TunnelController) StartPodWatcher ¶
func (tc *TunnelController) StartPodWatcher()
func (*TunnelController) StartServiceWatcher ¶
func (tc *TunnelController) StartServiceWatcher()
func (*TunnelController) WatchConfiguration ¶
func (tc *TunnelController) WatchConfiguration(config *rest.Config, gv *schema.GroupVersion)