package
1.0.0-alpha-01-28-2017.10-23-11.UTC
Repository: https://github.com/contiv/netplugin.git
Documentation: pkg.go.dev
# Functions
ErrIfKeyExists checks if the error message contains "Key not found".
Errorf returns an *Error based on the format specification provided.
# Structs
Address is a string representation of a network address (mac, ip, dns-name, url etc).
CommonState defines the fields common to all core.State implementations.
Config object parsed from a json styled config.
Error is our custom error with description, file, and line.
InstanceInfo encapsulates data that is specific to a running instance of netplugin like label of host on which it is started.
PortSpec defines protocol/port info required to host the service.
ServiceInfo has information about a service.
ServiceSpec defines a service to be proxied.
WatchState is used to provide a difference between core.State structs by providing both the current and previous state.
# Interfaces
Clustering has functions for discovering peer nodes and masters.
Driver implements the programming logic.
Endpoint identifies an addressable entity in a network.
Network identifies a group of (addressable) endpoints that can comunicate.
NetworkDriver implements the programming logic for network and endpoints.
Plugin brings together an implementation of a network, endpoint and state drivers.
Resource defines a allocatable unit.
ResourceManager provides mechanism to manage (define/undefine, allocate/deallocate) resources.
State identifies data uniquely identifiable by 'id' and stored in a (distributed) key-value store implemented by core.StateDriver.
StateDriver provides the mechanism for reading/writing state for networks, endpoints and meta-data managed by the core.
WatchableState allows for the rest of core.State, plus the WatchAll call which allows the implementor to yield changes to a channel.