Documentation ¶
Index ¶
- type FakeNetEpDriver
- func (d *FakeNetEpDriver) AddBgp(id string) (err error)
- func (d *FakeNetEpDriver) AddMaster(node core.ServiceInfo) error
- func (d *FakeNetEpDriver) AddPeerHost(node core.ServiceInfo) error
- func (d *FakeNetEpDriver) AddPolicyRule(id string) error
- func (d *FakeNetEpDriver) AddSvcSpec(svcName string, spec *core.ServiceSpec) error
- func (d *FakeNetEpDriver) CreateEndpoint(id string) error
- func (d *FakeNetEpDriver) CreateHostAccPort(id, a string, nw int) (string, error)
- func (d *FakeNetEpDriver) CreateNetwork(id string) error
- func (d *FakeNetEpDriver) CreateRemoteEndpoint(id string) error
- func (d *FakeNetEpDriver) Deinit()
- func (d *FakeNetEpDriver) DelPolicyRule(id string) error
- func (d *FakeNetEpDriver) DelSvcSpec(svcName string, spec *core.ServiceSpec) error
- func (d *FakeNetEpDriver) DeleteBgp(id string) (err error)
- func (d *FakeNetEpDriver) DeleteEndpoint(id string) (err error)
- func (d *FakeNetEpDriver) DeleteHostAccPort(id string) (err error)
- func (d *FakeNetEpDriver) DeleteMaster(node core.ServiceInfo) error
- func (d *FakeNetEpDriver) DeleteNetwork(id, subnet, nwType, encap string, pktTag, extPktTag int, gateway string, ...) error
- func (d *FakeNetEpDriver) DeletePeerHost(node core.ServiceInfo) error
- func (d *FakeNetEpDriver) DeleteRemoteEndpoint(id string) (err error)
- func (d *FakeNetEpDriver) GetEndpointStats() ([]byte, error)
- func (d *FakeNetEpDriver) GlobalConfigUpdate(inst core.InstanceInfo) error
- func (d *FakeNetEpDriver) Init(info *core.InstanceInfo) error
- func (d *FakeNetEpDriver) InspectBgp() ([]byte, error)
- func (d *FakeNetEpDriver) InspectNameserver() ([]byte, error)
- func (d *FakeNetEpDriver) InspectState() ([]byte, error)
- func (d *FakeNetEpDriver) SvcProviderUpdate(svcName string, providers []string)
- func (d *FakeNetEpDriver) UpdateEndpointGroup(id string) error
- type FakeNetEpDriverConfig
- type OperEndpointState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeNetEpDriver ¶
type FakeNetEpDriver struct { }
FakeNetEpDriver implements core.NetworkDriver interface for use with unit-tests
func (*FakeNetEpDriver) AddBgp ¶
func (d *FakeNetEpDriver) AddBgp(id string) (err error)
AddBgp is not implemented.
func (*FakeNetEpDriver) AddMaster ¶
func (d *FakeNetEpDriver) AddMaster(node core.ServiceInfo) error
AddMaster is not implemented
func (*FakeNetEpDriver) AddPeerHost ¶
func (d *FakeNetEpDriver) AddPeerHost(node core.ServiceInfo) error
AddPeerHost is not implemented.
func (*FakeNetEpDriver) AddPolicyRule ¶
func (d *FakeNetEpDriver) AddPolicyRule(id string) error
AddPolicyRule is not implemented
func (*FakeNetEpDriver) AddSvcSpec ¶
func (d *FakeNetEpDriver) AddSvcSpec(svcName string, spec *core.ServiceSpec) error
AddSvcSpec is not implemented.
func (*FakeNetEpDriver) CreateEndpoint ¶
func (d *FakeNetEpDriver) CreateEndpoint(id string) error
CreateEndpoint is not implemented.
func (*FakeNetEpDriver) CreateHostAccPort ¶
func (d *FakeNetEpDriver) CreateHostAccPort(id, a string, nw int) (string, error)
CreateHostAccPort is not implemented.
func (*FakeNetEpDriver) CreateNetwork ¶
func (d *FakeNetEpDriver) CreateNetwork(id string) error
CreateNetwork is not implemented.
func (*FakeNetEpDriver) CreateRemoteEndpoint ¶
func (d *FakeNetEpDriver) CreateRemoteEndpoint(id string) error
CreateRemoteEndpoint is not implemented.
func (*FakeNetEpDriver) DelPolicyRule ¶
func (d *FakeNetEpDriver) DelPolicyRule(id string) error
DelPolicyRule is not implemented
func (*FakeNetEpDriver) DelSvcSpec ¶
func (d *FakeNetEpDriver) DelSvcSpec(svcName string, spec *core.ServiceSpec) error
DelSvcSpec is not implemented.
func (*FakeNetEpDriver) DeleteBgp ¶
func (d *FakeNetEpDriver) DeleteBgp(id string) (err error)
DeleteBgp is not implemented.
func (*FakeNetEpDriver) DeleteEndpoint ¶
func (d *FakeNetEpDriver) DeleteEndpoint(id string) (err error)
DeleteEndpoint is not implemented.
func (*FakeNetEpDriver) DeleteHostAccPort ¶
func (d *FakeNetEpDriver) DeleteHostAccPort(id string) (err error)
DeleteHostAccPort is not implemented.
func (*FakeNetEpDriver) DeleteMaster ¶
func (d *FakeNetEpDriver) DeleteMaster(node core.ServiceInfo) error
DeleteMaster is not implemented
func (*FakeNetEpDriver) DeleteNetwork ¶
func (d *FakeNetEpDriver) DeleteNetwork(id, subnet, nwType, encap string, pktTag, extPktTag int, gateway string, tenant string) error
DeleteNetwork is not implemented.
func (*FakeNetEpDriver) DeletePeerHost ¶
func (d *FakeNetEpDriver) DeletePeerHost(node core.ServiceInfo) error
DeletePeerHost is not implemented.
func (*FakeNetEpDriver) DeleteRemoteEndpoint ¶
func (d *FakeNetEpDriver) DeleteRemoteEndpoint(id string) (err error)
DeleteRemoteEndpoint is not implemented.
func (*FakeNetEpDriver) GetEndpointStats ¶
func (d *FakeNetEpDriver) GetEndpointStats() ([]byte, error)
GetEndpointStats is not implemented
func (*FakeNetEpDriver) GlobalConfigUpdate ¶
func (d *FakeNetEpDriver) GlobalConfigUpdate(inst core.InstanceInfo) error
GlobalConfigUpdate is not implemented
func (*FakeNetEpDriver) Init ¶
func (d *FakeNetEpDriver) Init(info *core.InstanceInfo) error
Init is not implemented.
func (*FakeNetEpDriver) InspectBgp ¶
func (d *FakeNetEpDriver) InspectBgp() ([]byte, error)
InspectBgp is not implemented
func (*FakeNetEpDriver) InspectNameserver ¶
func (d *FakeNetEpDriver) InspectNameserver() ([]byte, error)
InspectNameserver returns nameserver state as json string
func (*FakeNetEpDriver) InspectState ¶
func (d *FakeNetEpDriver) InspectState() ([]byte, error)
InspectState is not implemented
func (*FakeNetEpDriver) SvcProviderUpdate ¶
func (d *FakeNetEpDriver) SvcProviderUpdate(svcName string, providers []string)
SvcProviderUpdate is not implemented.
func (*FakeNetEpDriver) UpdateEndpointGroup ¶
func (d *FakeNetEpDriver) UpdateEndpointGroup(id string) error
UpdateEndpointGroup is not implemented.
type FakeNetEpDriverConfig ¶
type FakeNetEpDriverConfig struct{}
FakeNetEpDriverConfig represents the configuration of the fakedriver, which is an empty struct.
type OperEndpointState ¶
type OperEndpointState struct { core.CommonState NetID string `json:"netID"` EndpointID string `json:"endpointID"` ServiceName string `json:"serviceName"` ContUUID string `json:"contUUID"` IPAddress string `json:"ipAddress"` IPv6Address string `json:"ipv6Address"` MacAddress string `json:"macAddress"` HomingHost string `json:"homingHost"` IntfName string `json:"intfName"` PortName string `json:"portName"` VtepIP string `json:"vtepIP"` }
OperEndpointState is the necessary data used to perform operations on endpoints.
func (*OperEndpointState) Clear ¶
func (s *OperEndpointState) Clear() error
Clear removes the state.
func (*OperEndpointState) Matches ¶
func (s *OperEndpointState) Matches(c *mastercfg.CfgEndpointState) bool
Matches matches the fields updated from configuration state
func (*OperEndpointState) Read ¶
func (s *OperEndpointState) Read(id string) error
Read the state for a given identifier.