mapping

package
v1.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package mapping contains utility functions to deal with the mapping of IPs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnforceAPIServerIPRemapping

func EnforceAPIServerIPRemapping(ctx context.Context, cl client.Client, liqoNamespace string) error

EnforceAPIServerIPRemapping creates or updates the IP resource for the API server IP remapping.

func EnforceAPIServerProxyIPRemapping

func EnforceAPIServerProxyIPRemapping(ctx context.Context, cl client.Client, liqoNamespace string) error

EnforceAPIServerProxyIPRemapping creates or updates the IP resource for the API server proxy IP remapping.

func MapAddress

func MapAddress(ctx context.Context, cl client.Client,
	clusterID liqov1beta1.ClusterID, address string) (string, error)

MapAddress maps the address with the network configuration of the cluster.

func MapAddressWithConfiguration

func MapAddressWithConfiguration(cfg *networkingv1beta1.Configuration, address string) (string, error)

MapAddressWithConfiguration maps the address with the network configuration of the cluster.

func RemapMask

func RemapMask(addr net.IP, mask net.IPNet, maskLen int) net.IP

RemapMask remaps the mask of the address. Consider that net.IP is always a slice of 16 bytes (big-endian). The mask is a slice of 4 or 16 bytes (big-endian).

Types

This section is empty.

Jump to

Keyboard shortcuts

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