portmanager

package
v0.1.138 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager handles Kubernetes Service and Ingress operations for port exposure

func New

func New(c client.WithWatch, namespace string) *Manager

New creates a new port manager

func (*Manager) DisclosePort

func (m *Manager) DisclosePort(ctx context.Context, port int) error

DisclosePort removes a port from the Service and removes Ingress rules

func (*Manager) ExposePort

func (m *Manager) ExposePort(ctx context.Context, autoHostName string, hostnames []string, port int) ([]string, error)

ExposePort exposes a port on the Service and adds Ingress rules for the given hostnames

Jump to

Keyboard shortcuts

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