Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegistryPath ¶ added in v1.5.0
func RegistryPath() string
RegistryPath returns the path to the runnel registry file
Types ¶
type ID ¶
type ID struct { // Route is the key Route *Route // the rest is metadata MachineName string Pid int }
ID represents a registry ID
type LoadBalancerEmulator ¶ added in v1.8.0
type LoadBalancerEmulator struct {
// contains filtered or unexported fields
}
LoadBalancerEmulator is the main struct for emulating the loadbalancer behavior. it sets the ingress to the cluster IP
func NewLoadBalancerEmulator ¶ added in v1.8.0
func NewLoadBalancerEmulator(corev1Client typed_core.CoreV1Interface) LoadBalancerEmulator
NewLoadBalancerEmulator creates a new LoadBalancerEmulator
func (*LoadBalancerEmulator) Cleanup ¶ added in v1.8.0
func (l *LoadBalancerEmulator) Cleanup() ([]string, error)
Cleanup will clean up all load balancer services
func (*LoadBalancerEmulator) PatchServiceIP ¶ added in v1.8.0
func (l *LoadBalancerEmulator) PatchServiceIP(restClient rest.Interface, svc core.Service, ip string) error
PatchServiceIP will patch the given service and ip
func (*LoadBalancerEmulator) PatchServices ¶ added in v1.8.0
func (l *LoadBalancerEmulator) PatchServices() ([]string, error)
PatchServices will update all load balancer services
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager can create, start and cleanup a tunnel It keeps track of created tunnels for multiple vms so that it can cleanup after unclean shutdowns.
func (*Manager) CleanupNotRunningTunnels ¶
CleanupNotRunningTunnels cleans up tunnels that are not running
func (*Manager) StartTunnel ¶
func (mgr *Manager) StartTunnel(ctx context.Context, machineName string, machineAPI libmachine.API, configLoader config.Loader, v1Core typed_core.CoreV1Interface) (done chan bool, err error)
StartTunnel starts the tunnel
type Patch ¶
type Patch struct { Type types.PatchType NameSpace string NameSpaceSet bool Resource string Subresource string ResourceName string BodyContent string }
Patch represents a patch