Documentation ¶
Overview ¶
Package mapping contains utility functions to deal with the mapping of IPs.
Index ¶
- func EnforceAPIServerIPRemapping(ctx context.Context, cl client.Client, liqoNamespace string) error
- func EnforceAPIServerProxyIPRemapping(ctx context.Context, cl client.Client, liqoNamespace string) error
- func MapAddress(ctx context.Context, cl client.Client, clusterID liqov1beta1.ClusterID, ...) (string, error)
- func MapAddressWithConfiguration(cfg *networkingv1beta1.Configuration, address string) (string, error)
- func RemapMask(addr net.IP, mask net.IPNet, maskLen int) net.IP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnforceAPIServerIPRemapping ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.