Documentation ¶
Index ¶
- Constants
- func AllocateIP(netname string, VMName string, mac string) (net.IP, error)
- func CreateNetwork(name, subnet, gateway string, isIsolated bool) error
- func DeleteNetwork(networkName string, force bool) error
- func GetGateWay(netname string) (string, error)
- func GetHosts(netname string) ([]string, error)
- func GetPrefix(netname string) (int, error)
- func Init() error
- func InspectNetwork(networkName string) (string, error)
- func ListNetwork() []*pb.NetworkInfo
- func RegisterIP(netname string, VMName string, ipaddr net.IP, mac string) error
- func ReleaseIP(netname string, VMName string, ipaddr net.IP) error
- type BridgeNetworkDriver
- type IPAM
- type Network
- type NetworkConf
- type NetworkDriver
- type NetworkInfo
Constants ¶
View Source
const TIME_LAYOUT = "2006-01-02 15:04:05.999999999 -0700 MST"
Variables ¶
This section is empty.
Functions ¶
func CreateNetwork ¶
func DeleteNetwork ¶
func GetGateWay ¶
func InspectNetwork ¶
func ListNetwork ¶
func ListNetwork() []*pb.NetworkInfo
Types ¶
type BridgeNetworkDriver ¶
func (*BridgeNetworkDriver) Name ¶
func (d *BridgeNetworkDriver) Name() string
type NetworkConf ¶
type NetworkDriver ¶
type NetworkInfo ¶
type NetworkInfo struct { Name string Driver string CreateTime string Config NetworkConf }
Click to show internal directories.
Click to hide internal directories.