ipvs

package
v0.0.0-...-c1d0e24 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package ipvs encapsulates the details of the ipvs netlink library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPVS

type IPVS interface {
	Close()
	AddService(ctx context.Context, svc *types.VirtualService) error
	UpdateService(ctx context.Context, svc *types.VirtualService) error
	DeleteService(ctx context.Context, key *types.VirtualService_Key) error
	ListServices(ctx context.Context) ([]*types.VirtualService, error)
	AddServer(ctx context.Context, key *types.VirtualService_Key, server *types.RealServer) error
	UpdateServer(ctx context.Context, key *types.VirtualService_Key, server *types.RealServer) error
	DeleteServer(ctx context.Context, key *types.VirtualService_Key, server *types.RealServer) error
	ListServers(ctx context.Context, key *types.VirtualService_Key) ([]*types.RealServer, error)
}

IPVS shim.

func New

func New() (IPVS, error)

New IPVS shim. This creates an underlying netlink socket. Call Close() to release the associated resources.

Jump to

Keyboard shortcuts

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