controller

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

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