本文整理汇总了Golang中github.com/docker/libnetwork/types.NotImplementedErrorf函数的典型用法代码示例。如果您正苦于以下问题:Golang NotImplementedErrorf函数的具体用法?Golang NotImplementedErrorf怎么用?Golang NotImplementedErrorf使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NotImplementedErrorf函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: getPredefinedPool
func (a *Allocator) getPredefinedPool(as string, ipV6 bool) (*net.IPNet, error) {
var v ipVersion
v = v4
if ipV6 {
v = v6
}
if as != localAddressSpace && as != globalAddressSpace {
return nil, types.NotImplementedErrorf("no default pool availbale for non-default addresss spaces")
}
aSpace, err := a.getAddrSpace(as)
if err != nil {
return nil, err
}
for _, nw := range a.getPredefineds(as) {
if v != getAddressVersion(nw.IP) {
continue
}
aSpace.Lock()
_, ok := aSpace.subnets[SubnetKey{AddressSpace: as, Subnet: nw.String()}]
aSpace.Unlock()
if ok {
continue
}
if !aSpace.contains(as, nw) {
return nw, nil
}
}
return nil, types.NotFoundErrorf("could not find an available, non-overlapping IPv%d address pool among the defaults to assign to the network", v)
}
开发者ID:docker,项目名称:docker,代码行数:34,代码来源:allocator.go
示例2: SetIPAddress
func (ep *endpoint) SetIPAddress(address *net.IPNet) error {
if address.IP == nil {
return types.BadRequestErrorf("tried to set nil IP address to endpoint interface")
}
if address.IP.To4() == nil {
return types.NotImplementedErrorf("do not support ipv6 yet")
}
if ep.addr != nil {
return types.ForbiddenErrorf("endpoint interface IP present (%s). Cannot be modified with %s.", ep.addr, address)
}
ep.addr = types.GetIPNetCopy(address)
return nil
}
开发者ID:c0b,项目名称:libnetwork,代码行数:13,代码来源:ovrouter.go
示例3: getPredefinedPool
func (a *Allocator) getPredefinedPool(as string, ipV6 bool) (*net.IPNet, error) {
var v ipVersion
v = v4
if ipV6 {
v = v6
}
if as != localAddressSpace && as != globalAddressSpace {
return nil, types.NotImplementedErrorf("no default pool availbale for non-default addresss spaces")
}
aSpace, err := a.getAddrSpace(as)
if err != nil {
return nil, err
}
for _, nw := range a.getPredefineds(as) {
if v != getAddressVersion(nw.IP) {
continue
}
aSpace.Lock()
_, ok := aSpace.subnets[SubnetKey{AddressSpace: as, Subnet: nw.String()}]
aSpace.Unlock()
if ok {
continue
}
if !aSpace.contains(as, nw) {
if as == localAddressSpace {
// Check if nw overlap with system routes, name servers
if _, err := ipamutils.FindAvailableNetwork([]*net.IPNet{nw}); err == nil {
return nw, nil
}
continue
}
return nw, nil
}
}
return nil, types.NotFoundErrorf("could not find an available predefined network")
}
开发者ID:gao-feng,项目名称:docker,代码行数:41,代码来源:allocator.go
示例4: DiscoverDelete
// DiscoverDelete is a notification for a discovery delete event, such as a node leaving a cluster
func (d *driver) DiscoverDelete(dType discoverapi.DiscoveryType, data interface{}) error {
return types.NotImplementedErrorf("not implemented")
}
开发者ID:vdemeester,项目名称:libnetwork,代码行数:4,代码来源:ovmanager.go
示例5: Leave
// Leave method is invoked when a Sandbox detaches from an endpoint.
func (d *driver) Leave(nid, eid string) error {
return types.NotImplementedErrorf("not implemented")
}
开发者ID:vdemeester,项目名称:libnetwork,代码行数:4,代码来源:ovmanager.go
示例6: Join
// Join method is invoked when a Sandbox is attached to an endpoint.
func (d *driver) Join(nid, eid string, sboxKey string, jinfo driverapi.JoinInfo, options map[string]interface{}) error {
return types.NotImplementedErrorf("not implemented")
}
开发者ID:vdemeester,项目名称:libnetwork,代码行数:4,代码来源:ovmanager.go
示例7: EndpointOperInfo
func (d *driver) EndpointOperInfo(nid, eid string) (map[string]interface{}, error) {
return nil, types.NotImplementedErrorf("not implemented")
}
开发者ID:vdemeester,项目名称:libnetwork,代码行数:3,代码来源:ovmanager.go
示例8: DeleteEndpoint
func (d *driver) DeleteEndpoint(nid, eid string) error {
return types.NotImplementedErrorf("not implemented")
}
开发者ID:vdemeester,项目名称:libnetwork,代码行数:3,代码来源:ovmanager.go
示例9: ExecFunc
func (n *network) ExecFunc(f func()) error {
return types.NotImplementedErrorf("ExecFunc not supported by network")
}
开发者ID:msabansal,项目名称:libnetwork,代码行数:3,代码来源:network.go
示例10: NetworkAllocate
func (d *driver) NetworkAllocate(id string, option map[string]string, ipV4Data, ipV6Data []driverapi.IPAMData) (map[string]string, error) {
return nil, types.NotImplementedErrorf("not implemented")
}
开发者ID:CadeLaRen,项目名称:docker-3,代码行数:3,代码来源:ipvlan.go
示例11: ElectInterfaceAddresses
// ElectInterfaceAddresses looks for an interface on the OS with the specified name
// and returns its IPv4 and IPv6 addresses in CIDR form. If the interface does not exist,
// it chooses from a predifined list the first IPv4 address which does not conflict
// with other interfaces on the system.
func ElectInterfaceAddresses(name string) (*net.IPNet, []*net.IPNet, error) {
return nil, nil, types.NotImplementedErrorf("not supported on freebsd")
}
开发者ID:CadeLaRen,项目名称:docker-3,代码行数:7,代码来源:utils_freebsd.go
示例12: ProgramExternalConnectivity
func (d *driver) ProgramExternalConnectivity(nid, eid string, options map[string]interface{}) error {
return types.NotImplementedErrorf("not implemented")
}
开发者ID:vdemeester,项目名称:libnetwork,代码行数:3,代码来源:ovmanager.go
示例13: processExternalKey
func (c *controller) processExternalKey(conn net.Conn) error {
return types.NotImplementedErrorf("processExternalKey isn't supported on non linux systems")
}
开发者ID:CadeLaRen,项目名称:docker-3,代码行数:3,代码来源:sandbox_externalkey_windows.go
示例14: processReturn
func processReturn(r io.Reader) error {
return types.NotImplementedErrorf("processReturn isn't supported on non linux systems")
}
开发者ID:CadeLaRen,项目名称:docker-3,代码行数:3,代码来源:sandbox_externalkey_windows.go
示例15: sendKey
func sendKey(c net.Conn, data setKeyData) error {
return types.NotImplementedErrorf("sendKey isn't supported on non linux systems")
}
开发者ID:CadeLaRen,项目名称:docker-3,代码行数:3,代码来源:sandbox_externalkey_windows.go
示例16: SetExternalKey
// SetExternalKey provides a convenient way to set an External key to a sandbox
func SetExternalKey(controllerID string, containerID string, key string) error {
return types.NotImplementedErrorf("SetExternalKey isn't supported on non linux systems")
}
开发者ID:CadeLaRen,项目名称:docker-3,代码行数:4,代码来源:sandbox_externalkey_windows.go
示例17: createGWNetwork
func (c *controller) createGWNetwork() (Network, error) {
return nil, types.NotImplementedErrorf("default gateway functionality is not implemented in windows")
}
开发者ID:CadeLaRen,项目名称:docker-3,代码行数:3,代码来源:default_gateway_windows.go
示例18: RevokeExternalConnectivity
func (d *driver) RevokeExternalConnectivity(nid, eid string) error {
return types.NotImplementedErrorf("not implemented")
}
开发者ID:vdemeester,项目名称:libnetwork,代码行数:3,代码来源:ovmanager.go
示例19: CreateNetwork
func (d *driver) CreateNetwork(id string, option map[string]interface{}, nInfo driverapi.NetworkInfo, ipV4Data, ipV6Data []driverapi.IPAMData) error {
return types.NotImplementedErrorf("not implemented")
}
开发者ID:vdemeester,项目名称:libnetwork,代码行数:3,代码来源:ovmanager.go
示例20: FindAvailableNetwork
// FindAvailableNetwork returns a network from the passed list which does not
// overlap with existing interfaces in the system
func FindAvailableNetwork(list []*net.IPNet) (*net.IPNet, error) {
return nil, types.NotImplementedErrorf("not supported on freebsd")
}
开发者ID:CadeLaRen,项目名称:docker-3,代码行数:5,代码来源:utils_freebsd.go
注:本文中的github.com/docker/libnetwork/types.NotImplementedErrorf函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论