Documentation
¶
Overview ¶
Copyright 2017 Politecnico di Torino
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 ¶
- func AttachIoModules(c *hover.Client, m1 IoModule, ifaceName1 string, m2 IoModule, ...) (err error)
- func IpToHex(ip net.IP) string
- func IpToHexBigEndian(ip net.IP) string
- func MacToHexadecimalString(mac net.HardwareAddr) string
- func MacToHexadecimalStringBigEndian(mac net.HardwareAddr) string
- func NetmaskToHexBigEndian(netmask net.IPMask) string
- func ParseIPv4Mask(s string) net.IPMask
- type IoModule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachIoModules ¶
func AttachIoModules(c *hover.Client, m1 IoModule, ifaceName1 string, m2 IoModule, ifaceName2 string) (err error)
this function attaches to modules together. It performs the reques to hover and then it calls the AttachToIoModule of each module to register the interface
func IpToHexBigEndian ¶
func MacToHexadecimalString ¶
func MacToHexadecimalString(mac net.HardwareAddr) string
func MacToHexadecimalStringBigEndian ¶
func MacToHexadecimalStringBigEndian(mac net.HardwareAddr) string
func NetmaskToHexBigEndian ¶
func ParseIPv4Mask ¶
Types ¶
type IoModule ¶
type IoModule interface { GetModuleId() string Deploy() (err error) Destroy() (err error) AttachExternalInterface(name string) (err error) DetachExternalInterface(name string) (err error) AttachToIoModule(IfaceId int, name string) (err error) DetachFromIoModule(name string) (err error) Configure(conf interface{}) (err error) }