Versions in this module Expand all Collapse all v0 v0.10.0 Nov 4, 2022 Changes in this version + const AttractorsConfigKey + const ByteMatchPattern + const ConduitsConfigKey + const FlowsConfigKey + const GatewaysConfigKey + const StreamsConfigKey + const TrenchConfigKey + const VipsConfigKey + func ConvertAll(trench *Trench, conduits []*Conduit, streams []*Stream, flows []*Flow, ...) (*nspAPI.Trench, []*nspAPI.Conduit, []*nspAPI.Stream, []*nspAPI.Flow, ...) + func ConvertAttractors(attractors []*Attractor, trench *nspAPI.Trench, vips []*nspAPI.Vip, ...) []*nspAPI.Attractor + func ConvertConduits(conduits []*Conduit, trench *nspAPI.Trench, vips []*nspAPI.Vip) []*nspAPI.Conduit + func ConvertFlows(flows []*Flow, streams []*nspAPI.Stream, vips []*nspAPI.Vip) []*nspAPI.Flow + func ConvertGateways(gateways []*Gateway, trench *nspAPI.Trench) []*nspAPI.Gateway + func ConvertPortNats(portNats []*PortNat, vipsAPI []*nspAPI.Vip) []*nspAPI.Conduit_PortNat + func ConvertStreams(streams []*Stream, conduits []*nspAPI.Conduit) []*nspAPI.Stream + func ConvertTrench(trench *Trench) *nspAPI.Trench + func ConvertVips(vips []*Vip, trench *nspAPI.Trench) []*nspAPI.Vip + func UnmarshalConfig(data map[string]string) (*Trench, []*Conduit, []*Stream, []*Flow, []*Vip, []*Attractor, []*Gateway, ...) + func ValidByteMatch(byteMatch string) bool + type Attractor struct + Gateways []string + Name string + Trench string + Vips []string + func UnmarshalAttractors(c string) ([]*Attractor, error) + type AttractorList struct + Attractors []*Attractor + type BgpAuth struct + KeyName string + KeySource string + type Conduit struct + DestinationPortNats []*PortNat + Name string + Trench string + func UnmarshalConduits(c string) ([]*Conduit, error) + type ConduitList struct + Conduits []*Conduit + type Flow struct + ByteMatches []string + DestinationPortRanges []string + Name string + Priority int32 + Protocols []string + SourcePortRanges []string + SourceSubnets []string + Stream string + Vips []string + func UnmarshalFlows(c string) ([]*Flow, error) + type FlowList struct + Flows []*Flow + type Gateway struct + Address string + BFD bool + BGPAuth *BgpAuth + HoldTime uint + IPFamily string + LocalASN uint32 + LocalPort uint16 + MinRx uint + MinTx uint + Multiplier uint + Name string + Protocol string + RemoteASN uint32 + RemotePort uint16 + Trench string + func UnmarshalGateways(c string) ([]*Gateway, error) + type GatewayList struct + Gateways []*Gateway + type PortNat struct + Port uint16 + Protocol string + TargetPort uint16 + Vips []string + type Stream struct + Conduit string + MaxTargets uint32 + Name string + func UnmarshalStreams(c string) ([]*Stream, error) + type StreamList struct + Streams []*Stream + type Trench struct + Name string + func UnmarshalTrench(c string) (*Trench, error) + type Vip struct + Address string + Name string + Trench string + func UnmarshalVips(c string) ([]*Vip, error) + type VipList struct + Vips []*Vip