services

package
v0.12.1-calicov3.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2021 License: Apache-2.0, Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CalicoServiceProvider

type CalicoServiceProvider struct {
	// contains filtered or unexported fields
}

func (*CalicoServiceProvider) AddServicePort

func (p *CalicoServiceProvider) AddServicePort(service *v1.Service, ep *v1.Endpoints) (err error)

func (*CalicoServiceProvider) DelServicePort

func (p *CalicoServiceProvider) DelServicePort(service *v1.Service, ep *v1.Endpoints) (err error)

func (*CalicoServiceProvider) Init

func (p *CalicoServiceProvider) Init() (err error)

func (*CalicoServiceProvider) OnVppRestart

func (p *CalicoServiceProvider) OnVppRestart()

type Server

type Server struct {
	*common.CalicoVppServerData
	// contains filtered or unexported fields
}

func NewServer

func NewServer(vpp *vpplink.VppLink, log *logrus.Entry) (*Server, error)

func (*Server) OnVppRestart

func (s *Server) OnVppRestart()

func (*Server) Serve

func (s *Server) Serve()

func (*Server) Stop

func (s *Server) Stop()

type ServiceProvider

type ServiceProvider interface {
	Init() error
	AddServicePort(service *v1.Service, ep *v1.Endpoints) error
	DelServicePort(service *v1.Service, ep *v1.Endpoints) error
	OnVppRestart()
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL