cidr

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package cidr provides utility functions for working with CIDR type defined in networking API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPrimary

func GetPrimary(cidrs []networkingv1beta1.CIDR) *networkingv1beta1.CIDR

GetPrimary returns the primary CIDR from a list of CIDRs.

func IsVoid

func IsVoid(cidr *networkingv1beta1.CIDR) bool

IsVoid checks if a CIDR is void.

func SetPrimary

func SetPrimary(cidr networkingv1beta1.CIDR) []networkingv1beta1.CIDR

SetPrimary sets the primary CIDR in a list of CIDRs.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳