cidrblock

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version() string

Types

type CidrBlockType

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

func New

func New() *CidrBlockType

func (*CidrBlockType) AllocCidrBlocks

func (c *CidrBlockType) AllocCidrBlocks(prefixLengths ...int) ([]string, error)

func (*CidrBlockType) CidrBlock added in v0.0.2

func (c *CidrBlockType) CidrBlock() string

func (*CidrBlockType) Excludes added in v0.0.2

func (c *CidrBlockType) Excludes() []string

func (*CidrBlockType) Fprint

func (c *CidrBlockType) Fprint(w io.Writer) error

func (*CidrBlockType) SetCidrBlock

func (c *CidrBlockType) SetCidrBlock(prefix string) error

func (*CidrBlockType) SetExcludeCidrBlocks

func (c *CidrBlockType) SetExcludeCidrBlocks(prefixes []string) int

Jump to

Keyboard shortcuts

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