Documentation
¶
Index ¶
- Constants
- func FromService(s *gipvs.Service) types.Service
- func ToIpvsService(s *types.Service) *gipvs.Service
- type FusisState
- func (s *FusisState) AddDestination(dst *types.Destination)
- func (s *FusisState) AddService(svc *types.Service)
- func (s *FusisState) CollectStats(tick time.Time)
- func (s *FusisState) DeleteDestination(dst *types.Destination)
- func (s *FusisState) DeleteService(svc *types.Service)
- func (s *FusisState) GetDestination(name string) (*types.Destination, error)
- func (s *FusisState) GetService(name string) (*types.Service, error)
- func (s *FusisState) GetServices() []types.Service
- type Ipvs
- type State
Constants ¶
View Source
const ( NatMode = gipvs.DFForwardMasq TunnelMode = gipvs.DFForwardTunnel RouteMode = gipvs.DFForwardRoute )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FusisState ¶
type FusisState struct { Services map[string]types.Service Destinations map[string]types.Destination }
func NewFusisState ¶
func NewFusisState() *FusisState
func (*FusisState) AddDestination ¶
func (s *FusisState) AddDestination(dst *types.Destination)
func (*FusisState) AddService ¶
func (s *FusisState) AddService(svc *types.Service)
func (*FusisState) CollectStats ¶
func (s *FusisState) CollectStats(tick time.Time)
func (*FusisState) DeleteDestination ¶
func (s *FusisState) DeleteDestination(dst *types.Destination)
func (*FusisState) DeleteService ¶
func (s *FusisState) DeleteService(svc *types.Service)
func (*FusisState) GetDestination ¶
func (s *FusisState) GetDestination(name string) (*types.Destination, error)
func (*FusisState) GetService ¶
func (s *FusisState) GetService(name string) (*types.Service, error)
func (*FusisState) GetServices ¶
func (s *FusisState) GetServices() []types.Service
type State ¶
type State interface { GetServices() []types.Service GetService(name string) (*types.Service, error) AddService(svc *types.Service) DeleteService(svc *types.Service) GetDestination(name string) (*types.Destination, error) AddDestination(dst *types.Destination) DeleteDestination(dst *types.Destination) CollectStats(tick time.Time) }
Click to show internal directories.
Click to hide internal directories.