Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller kubernetes controller used by Docker Desktop
func New ¶
func New(client vpnkit.Client, services corev1client.ServicesGetter) *Controller
New creates a new controller
func (*Controller) Dispose ¶
func (c *Controller) Dispose()
Dispose unexpose all ports previously exposed by this controller
func (*Controller) OnAdd ¶
func (c *Controller) OnAdd(obj interface{})
OnAdd exposes port if necessary
func (*Controller) OnDelete ¶
func (c *Controller) OnDelete(obj interface{})
OnDelete unexposes port
func (*Controller) OnUpdate ¶
func (c *Controller) OnUpdate(oldObj, newObj interface{})
OnUpdate exposes port if necessary
Click to show internal directories.
Click to hide internal directories.