Documentation ¶
Index ¶
- type Deps
- type Renderer
- func (rndr *Renderer) AddService(service *renderer.ContivService) error
- func (rndr *Renderer) AfterInit() error
- func (rndr *Renderer) Close() error
- func (rndr *Renderer) DeleteService(service *renderer.ContivService, ...) error
- func (rndr *Renderer) Init(snatOnly bool) error
- func (rndr *Renderer) Resync(resyncEv *renderer.ResyncEventData) error
- func (rndr *Renderer) UpdateLocalBackendIfs(oldIfNames, newIfNames renderer.Interfaces) error
- func (rndr *Renderer) UpdateLocalFrontendIfs(oldIfNames, newIfNames renderer.Interfaces) error
- func (rndr *Renderer) UpdateNodePortServices(nodeIPs *renderer.IPAddresses, npServices []*renderer.ContivService) error
- func (rndr *Renderer) UpdateService(oldService, newService *renderer.ContivService, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deps ¶
type Deps struct { Log logging.Logger Config *config.Config ContivConf contivconf.API NodeSync nodesync.API PodManager podmanager.API IPAM ipam.API IPNet ipnet.API ConfigRetriever controller.ConfigRetriever UpdateTxnFactory func(change string) (txn controller.UpdateOperations) ResyncTxnFactory func() (txn controller.ResyncOperations) }
Deps lists dependencies of the Renderer.
type Renderer ¶
type Renderer struct { Deps // contains filtered or unexported fields }
Renderer implements rendering of services for IPv6 in VPP using static routes.
func (*Renderer) AddService ¶
func (rndr *Renderer) AddService(service *renderer.ContivService) error
AddService installs VPP config for a newly added service.
func (*Renderer) DeleteService ¶
func (rndr *Renderer) DeleteService(service *renderer.ContivService, otherExistingServices []*renderer.ContivService) error
DeleteService removes VPP config associated with a freshly un-deployed service.
func (*Renderer) Init ¶
Init initializes the renderer. Set <snatOnly> to true if the renderer should only configure SNAT and leave services to another renderer.
func (*Renderer) Resync ¶
func (rndr *Renderer) Resync(resyncEv *renderer.ResyncEventData) error
Resync completely replaces the current VPP service configuration with the provided full state of K8s services.
func (*Renderer) UpdateLocalBackendIfs ¶
func (rndr *Renderer) UpdateLocalBackendIfs(oldIfNames, newIfNames renderer.Interfaces) error
UpdateLocalBackendIfs is NOOP.
func (*Renderer) UpdateLocalFrontendIfs ¶
func (rndr *Renderer) UpdateLocalFrontendIfs(oldIfNames, newIfNames renderer.Interfaces) error
UpdateLocalFrontendIfs is NOOP.
func (*Renderer) UpdateNodePortServices ¶
func (rndr *Renderer) UpdateNodePortServices(nodeIPs *renderer.IPAddresses, npServices []*renderer.ContivService) error
UpdateNodePortServices is NOOP.
func (*Renderer) UpdateService ¶
func (rndr *Renderer) UpdateService(oldService, newService *renderer.ContivService, otherExistingServices []*renderer.ContivService) error
UpdateService updates VPP config for a changed service.