Documentation ¶
Index ¶
- type Bgp
- func (b *Bgp) DelBalancer(ip string) error
- func (b *Bgp) GetBgpConfStatus() bgpapi.BgpConf
- func (b *Bgp) HandleBgpGlobalConfig(global *bgpapi.BgpConf, rack string, delete bool) error
- func (b *Bgp) HandleBgpPeer(neighbor *bgpapi.BgpPeer, delete bool) error
- func (b *Bgp) HandleBgpPeerStatus(bgpPeers []bgpapi.BgpPeer) []*bgpapi.BgpPeer
- func (b *Bgp) SetBalancer(ip string, nodes []corev1.Node) error
- func (b *Bgp) Start(stopCh <-chan struct{}) error
- type BgpOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bgp ¶
type Bgp struct {
// contains filtered or unexported fields
}
func NewGoBgpd ¶
func NewGoBgpd(bgpOptions *BgpOptions) *Bgp
func (*Bgp) DelBalancer ¶
func (*Bgp) GetBgpConfStatus ¶
func (*Bgp) HandleBgpGlobalConfig ¶
func (*Bgp) HandleBgpPeer ¶
func (*Bgp) HandleBgpPeerStatus ¶
type BgpOptions ¶
type BgpOptions struct {
GrpcHosts string `long:"api-hosts" description:"specify the hosts that gobgpd listens on" default:":50051"`
}
func NewBgpOptions ¶
func NewBgpOptions() *BgpOptions
func (*BgpOptions) AddFlags ¶
func (options *BgpOptions) AddFlags(fs *pflag.FlagSet)
Click to show internal directories.
Click to hide internal directories.