addressing

package
v1.6.12 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CiliumIP

type CiliumIP interface {
	IPNet(ones int) *net.IPNet
	EndpointPrefix() *net.IPNet
	IP() net.IP
	String() string
	IsIPv6() bool
	GetFamilyString() string
	IsSet() bool
}

type CiliumIPv4

type CiliumIPv4 []byte

func DeriveCiliumIPv4

func DeriveCiliumIPv4(src net.IP) CiliumIPv4

func NewCiliumIPv4

func NewCiliumIPv4(address string) (CiliumIPv4, error)

func (CiliumIPv4) EndpointPrefix

func (ip CiliumIPv4) EndpointPrefix() *net.IPNet

func (CiliumIPv4) GetFamilyString added in v1.5.0

func (ip CiliumIPv4) GetFamilyString() string

GetFamilyString returns the address family of ip as a string.

func (CiliumIPv4) IP

func (ip CiliumIPv4) IP() net.IP

func (CiliumIPv4) IPNet

func (ip CiliumIPv4) IPNet(ones int) *net.IPNet

func (CiliumIPv4) IsIPv6

func (ip CiliumIPv4) IsIPv6() bool

func (CiliumIPv4) IsSet added in v1.5.0

func (ip CiliumIPv4) IsSet() bool

IsSet returns true if the IP is set

func (CiliumIPv4) MarshalJSON

func (ip CiliumIPv4) MarshalJSON() ([]byte, error)

func (CiliumIPv4) String

func (ip CiliumIPv4) String() string

func (*CiliumIPv4) UnmarshalJSON

func (ip *CiliumIPv4) UnmarshalJSON(b []byte) error

type CiliumIPv6

type CiliumIPv6 []byte

func DeriveCiliumIPv6

func DeriveCiliumIPv6(src net.IP) CiliumIPv6

func NewCiliumIPv6

func NewCiliumIPv6(address string) (CiliumIPv6, error)

NewCiliumIPv6 returns a IPv6 if the given `address` is: - An IPv6 address. - Node ID, bits from 112 to 120, must be different than 0 - Endpoint ID, bits from 120 to 128, must be equal to 0

func (CiliumIPv6) EndpointPrefix

func (ip CiliumIPv6) EndpointPrefix() *net.IPNet

func (CiliumIPv6) GetFamilyString added in v1.5.0

func (ip CiliumIPv6) GetFamilyString() string

GetFamilyString returns the address family of ip as a string.

func (CiliumIPv6) IP

func (ip CiliumIPv6) IP() net.IP

func (CiliumIPv6) IPNet

func (ip CiliumIPv6) IPNet(ones int) *net.IPNet

func (CiliumIPv6) IsIPv6

func (ip CiliumIPv6) IsIPv6() bool

func (CiliumIPv6) IsSet added in v1.5.0

func (ip CiliumIPv6) IsSet() bool

IsSet returns true if the IP is set

func (CiliumIPv6) MarshalJSON

func (ip CiliumIPv6) MarshalJSON() ([]byte, error)

func (CiliumIPv6) String

func (ip CiliumIPv6) String() string

func (*CiliumIPv6) UnmarshalJSON

func (ip *CiliumIPv6) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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