Documentation ¶
Index ¶
- Constants
- func FindSubnetExcludeIPBlocks(cidr *net.IPNet, includedRanges []*IPRange, gateway net.IP, ...) ([]*net.IPNet, error)
- func GetSysctl(sysctlPath string) (int, error)
- func IsFs(path string, magic int64) bool
- func IsNsFS(path string) bool
- func IsProcFS(path string) bool
- func LastIP(cidr *net.IPNet) net.IP
- func SetSysctl(sysctlPath string, newVal int) error
- func SetSysctlIgnoreNotExist(sysctlPath string, newVal int) error
- func ValidDockerNetnsDir(path string) bool
- type IPRange
- type RamaDaemonError
Constants ¶
View Source
const (
NotExist = RamaDaemonError("not exist")
)
Variables ¶
This section is empty.
Functions ¶
func FindSubnetExcludeIPBlocks ¶
func FindSubnetExcludeIPBlocks(cidr *net.IPNet, includedRanges []*IPRange, gateway net.IP, excludeIPs []net.IP) ([]*net.IPNet, error)
Translate a subnet range into a series ip block description.
func SetSysctlIgnoreNotExist ¶
func ValidDockerNetnsDir ¶
Types ¶
type RamaDaemonError ¶
type RamaDaemonError string
func (RamaDaemonError) Error ¶
func (e RamaDaemonError) Error() string
Click to show internal directories.
Click to hide internal directories.