Documentation ¶
Overview ¶
Copyright 2018 Tigera Inc
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func CleanUpNamespace(args *skel.CmdArgs, logger *logrus.Entry) error
- func DoNetworking(args *skel.CmdArgs, conf types.IPAMConfig, result *current.Result, ...) (hostVethName, contVethMAC string, err error)
- func GetIPTotal(start net.IP, end net.IP) int
- func GetNodeIP() (net.Addr, error)
- func GetNodeMaster() string
- func GetTotal(pool types.NSIPPool) int
- func Min(a, b int) int
- func SetupRoutes(hostVeth netlink.Link, result *current.Result) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CleanUpNamespace ¶
CleanUpNamespace deletes the devices in the network namespace.
func DoNetworking ¶
func DoNetworking( args *skel.CmdArgs, conf types.IPAMConfig, result *current.Result, desiredVethName string, ) (hostVethName, contVethMAC string, err error)
DoNetworking performs the networking for the given config and IPAM result
func GetIPTotal ¶
GetIPTotal returns the number of IP addresses for the given start and end IP
func GetNodeMaster ¶
func GetNodeMaster() string
Types ¶
This section is empty.