utils

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(name string) bool
func ForceSymlink(oldname string, newname string) error

func RandIPv4 added in v1.0.9

func RandIPv4(network net.IPNet, excluded []net.IP) net.IP

TODO: Cleanup, this is horrible... :-)

Types

type IPWithMask added in v1.0.9

type IPWithMask struct {
	IP   net.IP
	Mask net.IPMask
}

IPWithMask stores an IP address and its associated network mask. It _semantically_ differs from IPNet which stores a network address.

func (*IPWithMask) FromString added in v1.0.9

func (IP *IPWithMask) FromString(s string) error

func (IPWithMask) MarshalYAML added in v1.0.9

func (IP IPWithMask) MarshalYAML() (interface{}, error)

func (IPWithMask) String added in v1.0.9

func (IP IPWithMask) String() string

func (*IPWithMask) UnmarshalYAML added in v1.0.9

func (IP *IPWithMask) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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