agent

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: Apache-2.0 Imports: 17 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NumManagedRoutes = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name: "romana_managed_routes",
			Help: "Number of routes managed by Romana agent on the host.",
		},
	)
)

Functions

func CreateRomanaGW

func CreateRomanaGW() error

func CreateRouteToBlocks

func CreateRouteToBlocks(blocks []api.IPAMBlockResponse,
	hosts IpamHosts,
	romanaRouteTableId int,
	hostname string,
	multihop bool,
	nlHandle nlHandleRoute)

CreateRouteToBlocks loops over list of blocks and creates routes when needed.

func GetDefaultLink() (netlink.Link, error)

func GetIPs

func GetIPs(link netlink.Link) ([]string, error)

GetIPs returns all the IPv4 Address attached to link.

func MetricStart

func MetricStart(port int) error

func SetRomanaGwIP

func SetRomanaGwIP(romanaIp string) error

func StartRomanaVIPSync

func StartRomanaVIPSync(ctx context.Context, store *client.Store,
	defaultLink netlink.Link) error

Types

type IpamHosts

type IpamHosts []api.Host

IpamHosts is a collection of hosts with Get method.

func (IpamHosts) GetHost

func (hosts IpamHosts) GetHost(hostname string) *api.Host

type RouteAdjacencyError

type RouteAdjacencyError struct{}

func (RouteAdjacencyError) Error

func (RouteAdjacencyError) Error() string

Directories

Path Synopsis
Policy enforcer package translates romana policies into iptables rules.
Policy enforcer package translates romana policies into iptables rules.
Package provides wrapper around os.exec for purpose of testing
Package provides wrapper around os.exec for purpose of testing
IPTsave is a library that provides IPtables type that can read iptables-save output and create a tokenized representation of it.
IPTsave is a library that provides IPtables type that can read iptables-save output and create a tokenized representation of it.

Jump to

Keyboard shortcuts

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