Versions in this module Expand all Collapse all v0 v0.0.1 Oct 21, 2020 Changes in this version + const PEER_NAME + type Action struct + Client *Client + Command *Command + DPConfig *vpp.ConfigData + func (a *Action) Cleanup() error + func (a *Action) Process(ctx context.Context, backend UniversalCNFBackend, nsmclient *client.NsmClient) error + type Client struct + IfName string + Labels map[string]string + Name string + Routes []string + func (c *Client) Process(ctx context.Context, backend UniversalCNFBackend, dpconfig interface{}, ...) error + type Command struct + Args []string + Name string + type CompositeEndpointAddons interface + AddCompositeEndpoints func(*common.NSConfiguration, *nseconfig.Endpoint) *[]networkservice.NetworkServiceServer + type Endpoint struct + Action *Action + IfName string + Ipam *IPAM + Labels map[string]string + Name string + NseName string + type IPAM struct + PrefixPool string + Routes []string + type IpamService interface + AllocateSubnet func(ucnfEndpoint *nseconfig.Endpoint) (string, error) + func NewIpamService(ctx context.Context, addr string) (IpamService, error) + type IpamServiceImpl struct + IpamAllocator ipprovider.AllocatorClient + RegisteredSubnets chan *ipprovider.Subnet + func (i *IpamServiceImpl) AllocateSubnet(ucnfEndpoint *nseconfig.Endpoint) (string, error) + func (i *IpamServiceImpl) Cleanup(subnets map[string]*ipprovider.Subnet) error + func (i *IpamServiceImpl) Renew(ctx context.Context, errorHandler func(err error)) error + type ProcessEndpoints struct + Endpoints []*SingleEndpoint + func NewProcessEndpoints(backend UniversalCNFBackend, endpoints []*nseconfig.Endpoint, ...) *ProcessEndpoints + func (pe *ProcessEndpoints) Cleanup() + func (pe *ProcessEndpoints) Process() error + type ProcessInitActions struct + InitActions []*SingleAction + func NewProcessInitActions(backend UniversalCNFBackend, initactions []*Action, ...) *ProcessInitActions + func (pia *ProcessInitActions) Cleanup() + func (pia *ProcessInitActions) Process(ctx context.Context, backend UniversalCNFBackend) error + type SingleAction struct + Action *Action + type SingleEndpoint struct + Cleanup func() + Endpoint *nseconfig.Endpoint + NSComposite networkservice.NetworkServiceServer + NSConfiguration *common.NSConfiguration + type UniversalCNFBackend interface + NewDPConfig func() *vpp.ConfigData + NewUniversalCNFBackend func() error + ProcessClient func(dpconfig interface{}, ifName string, conn *connection.Connection) error + ProcessDPConfig func(dpconfig interface{}, update bool) error + ProcessEndpoint func(dpconfig interface{}, serviceName, ifName string, conn *connection.Connection) error + type UniversalCNFConfig struct + Endpoints []*Endpoint + InitActions []*Action + func NewUniversalCNFConfig(backend UniversalCNFBackend) (*UniversalCNFConfig, error) + func (c *UniversalCNFConfig) Dump() + func (c *UniversalCNFConfig) GetBackend() UniversalCNFBackend + func (c *UniversalCNFConfig) InitConfig(configpath string) error + func (c *UniversalCNFConfig) InitConfigFromRawYaml(rawyaml []byte) error + type UniversalCNFEndpoint struct + func NewUniversalCNFEndpoint(backend UniversalCNFBackend, e *nseconfig.Endpoint) *UniversalCNFEndpoint + func (uce *UniversalCNFEndpoint) Close(ctx context.Context, connection *connection.Connection) (*empty.Empty, error) + func (uce *UniversalCNFEndpoint) Name() string + func (uce *UniversalCNFEndpoint) Request(ctx context.Context, request *networkservice.NetworkServiceRequest) (*connection.Connection, error)