Documentation ¶
Index ¶
- Constants
- Variables
- type ConnectionContext
- func (*ConnectionContext) Descriptor() ([]byte, []int)
- func (m *ConnectionContext) GetDnsContext() *DNSContext
- func (m *ConnectionContext) GetEthernetContext() *EthernetContext
- func (m *ConnectionContext) GetExtraContext() map[string]string
- func (m *ConnectionContext) GetIpContext() *IPContext
- func (c *ConnectionContext) GetMTUOverhead() (uint32, error)
- func (c *ConnectionContext) IsEthernetContextEmtpy() bool
- func (c *ConnectionContext) IsValid() error
- func (c *ConnectionContext) MeetsRequirements(original *ConnectionContext) error
- func (*ConnectionContext) ProtoMessage()
- func (m *ConnectionContext) Reset()
- func (c *ConnectionContext) SetMTUOverhead(mtu uint32) error
- func (m *ConnectionContext) String() string
- func (m *ConnectionContext) XXX_DiscardUnknown()
- func (m *ConnectionContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConnectionContext) XXX_Merge(src proto.Message)
- func (m *ConnectionContext) XXX_Size() int
- func (m *ConnectionContext) XXX_Unmarshal(b []byte) error
- type DNSConfig
- func (*DNSConfig) Descriptor() ([]byte, []int)
- func (m *DNSConfig) GetDnsServerIps() []string
- func (m *DNSConfig) GetSearchDomains() []string
- func (*DNSConfig) ProtoMessage()
- func (m *DNSConfig) Reset()
- func (m *DNSConfig) String() string
- func (c *DNSConfig) Validate() error
- func (m *DNSConfig) XXX_DiscardUnknown()
- func (m *DNSConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DNSConfig) XXX_Merge(src proto.Message)
- func (m *DNSConfig) XXX_Size() int
- func (m *DNSConfig) XXX_Unmarshal(b []byte) error
- type DNSContext
- func (*DNSContext) Descriptor() ([]byte, []int)
- func (m *DNSContext) GetConfigs() []*DNSConfig
- func (*DNSContext) ProtoMessage()
- func (m *DNSContext) Reset()
- func (m *DNSContext) String() string
- func (m *DNSContext) XXX_DiscardUnknown()
- func (m *DNSContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DNSContext) XXX_Merge(src proto.Message)
- func (m *DNSContext) XXX_Size() int
- func (m *DNSContext) XXX_Unmarshal(b []byte) error
- type EthernetContext
- func (*EthernetContext) Descriptor() ([]byte, []int)
- func (m *EthernetContext) GetDstMac() string
- func (m *EthernetContext) GetSrcMac() string
- func (*EthernetContext) ProtoMessage()
- func (m *EthernetContext) Reset()
- func (m *EthernetContext) String() string
- func (m *EthernetContext) XXX_DiscardUnknown()
- func (m *EthernetContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EthernetContext) XXX_Merge(src proto.Message)
- func (m *EthernetContext) XXX_Size() int
- func (m *EthernetContext) XXX_Unmarshal(b []byte) error
- type ExtraPrefixRequest
- func (*ExtraPrefixRequest) Descriptor() ([]byte, []int)
- func (m *ExtraPrefixRequest) GetAddrFamily() *IpFamily
- func (m *ExtraPrefixRequest) GetPrefixLen() uint32
- func (m *ExtraPrefixRequest) GetRequestedNumber() uint32
- func (m *ExtraPrefixRequest) GetRequiredNumber() uint32
- func (c *ExtraPrefixRequest) IsValid() error
- func (*ExtraPrefixRequest) ProtoMessage()
- func (m *ExtraPrefixRequest) Reset()
- func (m *ExtraPrefixRequest) String() string
- func (m *ExtraPrefixRequest) XXX_DiscardUnknown()
- func (m *ExtraPrefixRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExtraPrefixRequest) XXX_Merge(src proto.Message)
- func (m *ExtraPrefixRequest) XXX_Size() int
- func (m *ExtraPrefixRequest) XXX_Unmarshal(b []byte) error
- type IPContext
- func (*IPContext) Descriptor() ([]byte, []int)
- func (m *IPContext) GetDstIpAddr() string
- func (m *IPContext) GetDstIpRequired() bool
- func (m *IPContext) GetDstRoutes() []*Route
- func (m *IPContext) GetExcludedPrefixes() []string
- func (m *IPContext) GetExtraPrefixRequest() []*ExtraPrefixRequest
- func (m *IPContext) GetExtraPrefixes() []string
- func (m *IPContext) GetIpNeighbors() []*IpNeighbor
- func (m *IPContext) GetSrcIpAddr() string
- func (m *IPContext) GetSrcIpRequired() bool
- func (m *IPContext) GetSrcRoutes() []*Route
- func (*IPContext) ProtoMessage()
- func (m *IPContext) Reset()
- func (m *IPContext) String() string
- func (m *IPContext) XXX_DiscardUnknown()
- func (m *IPContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IPContext) XXX_Merge(src proto.Message)
- func (m *IPContext) XXX_Size() int
- func (m *IPContext) XXX_Unmarshal(b []byte) error
- type IpFamily
- func (*IpFamily) Descriptor() ([]byte, []int)
- func (m *IpFamily) GetFamily() IpFamily_Family
- func (*IpFamily) ProtoMessage()
- func (m *IpFamily) Reset()
- func (m *IpFamily) String() string
- func (m *IpFamily) XXX_DiscardUnknown()
- func (m *IpFamily) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IpFamily) XXX_Merge(src proto.Message)
- func (m *IpFamily) XXX_Size() int
- func (m *IpFamily) XXX_Unmarshal(b []byte) error
- type IpFamily_Family
- type IpNeighbor
- func (*IpNeighbor) Descriptor() ([]byte, []int)
- func (m *IpNeighbor) GetHardwareAddress() string
- func (m *IpNeighbor) GetIp() string
- func (*IpNeighbor) ProtoMessage()
- func (m *IpNeighbor) Reset()
- func (m *IpNeighbor) String() string
- func (m *IpNeighbor) XXX_DiscardUnknown()
- func (m *IpNeighbor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IpNeighbor) XXX_Merge(src proto.Message)
- func (m *IpNeighbor) XXX_Size() int
- func (m *IpNeighbor) XXX_Unmarshal(b []byte) error
- type Route
- func (*Route) Descriptor() ([]byte, []int)
- func (m *Route) GetPrefix() string
- func (*Route) ProtoMessage()
- func (m *Route) Reset()
- func (m *Route) String() string
- func (m *Route) XXX_DiscardUnknown()
- func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Route) XXX_Merge(src proto.Message)
- func (m *Route) XXX_Size() int
- func (m *Route) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ( //DNSConfigShouldNotBeNil - DNSConfigShouldNotBeNil = "dnsConfig should not be nil" //DNSServerIpsShouldHaveRecords - DNSServerIpsShouldHaveRecords = "dnsConfig should have records" // MTUOverhead - MTU overhead requested in the connection MTUOverhead = "mtu_overhead" )
Variables ¶
View Source
var IpFamily_Family_name = map[int32]string{
0: "IPV4",
1: "IPV6",
}
View Source
var IpFamily_Family_value = map[string]int32{
"IPV4": 0,
"IPV6": 1,
}
Functions ¶
This section is empty.
Types ¶
type ConnectionContext ¶
type ConnectionContext struct { IpContext *IPContext `protobuf:"bytes,1,opt,name=ip_context,json=ipContext,proto3" json:"ip_context,omitempty"` DnsContext *DNSContext `protobuf:"bytes,2,opt,name=dns_context,json=dnsContext,proto3" json:"dns_context,omitempty"` EthernetContext *EthernetContext `protobuf:"bytes,3,opt,name=ethernet_context,json=ethernetContext,proto3" json:"ethernet_context,omitempty"` ExtraContext map[string]string `` /* 185-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ConnectionContext) Descriptor ¶
func (*ConnectionContext) Descriptor() ([]byte, []int)
func (*ConnectionContext) GetDnsContext ¶
func (m *ConnectionContext) GetDnsContext() *DNSContext
func (*ConnectionContext) GetEthernetContext ¶
func (m *ConnectionContext) GetEthernetContext() *EthernetContext
func (*ConnectionContext) GetExtraContext ¶
func (m *ConnectionContext) GetExtraContext() map[string]string
func (*ConnectionContext) GetIpContext ¶
func (m *ConnectionContext) GetIpContext() *IPContext
func (*ConnectionContext) GetMTUOverhead ¶ added in v1.0.2
func (c *ConnectionContext) GetMTUOverhead() (uint32, error)
GetMTUOverhead returns the MTU overhead value from the connection context
func (*ConnectionContext) IsEthernetContextEmtpy ¶
func (c *ConnectionContext) IsEthernetContextEmtpy() bool
IsEthernetContextEmtpy returns true if ethernet config is empty
func (*ConnectionContext) IsValid ¶
func (c *ConnectionContext) IsValid() error
IsValid - checks ConnectionContext validation
func (*ConnectionContext) MeetsRequirements ¶
func (c *ConnectionContext) MeetsRequirements(original *ConnectionContext) error
MeetsRequirements - checks required context parameters have bin set
func (*ConnectionContext) ProtoMessage ¶
func (*ConnectionContext) ProtoMessage()
func (*ConnectionContext) Reset ¶
func (m *ConnectionContext) Reset()
func (*ConnectionContext) SetMTUOverhead ¶ added in v1.0.2
func (c *ConnectionContext) SetMTUOverhead(mtu uint32) error
SetMTUOverhead sets the MTU overhead in the connection context
func (*ConnectionContext) String ¶
func (m *ConnectionContext) String() string
func (*ConnectionContext) XXX_DiscardUnknown ¶
func (m *ConnectionContext) XXX_DiscardUnknown()
func (*ConnectionContext) XXX_Marshal ¶
func (m *ConnectionContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConnectionContext) XXX_Merge ¶
func (m *ConnectionContext) XXX_Merge(src proto.Message)
func (*ConnectionContext) XXX_Size ¶
func (m *ConnectionContext) XXX_Size() int
func (*ConnectionContext) XXX_Unmarshal ¶
func (m *ConnectionContext) XXX_Unmarshal(b []byte) error
type DNSConfig ¶
type DNSConfig struct { // ips of DNS Servers for this DNSConfig. Any given IP may be IPv4 or IPv6 DnsServerIps []string `protobuf:"bytes,1,rep,name=dns_server_ips,json=dnsServerIps,proto3" json:"dns_server_ips,omitempty"` // domains for which this DNSConfig provides resolution. If empty, all domains. SearchDomains []string `protobuf:"bytes,2,rep,name=search_domains,json=searchDomains,proto3" json:"search_domains,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DNSConfig) Descriptor ¶
func (*DNSConfig) GetDnsServerIps ¶
func (*DNSConfig) GetSearchDomains ¶
func (*DNSConfig) ProtoMessage ¶
func (*DNSConfig) ProtoMessage()
func (*DNSConfig) Validate ¶
Validate - checks DNSConfig and returns error if DNSConfig is not valid
func (*DNSConfig) XXX_DiscardUnknown ¶
func (m *DNSConfig) XXX_DiscardUnknown()
func (*DNSConfig) XXX_Marshal ¶
func (*DNSConfig) XXX_Unmarshal ¶
type DNSContext ¶
type DNSContext struct { Configs []*DNSConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DNSContext) Descriptor ¶
func (*DNSContext) Descriptor() ([]byte, []int)
func (*DNSContext) GetConfigs ¶
func (m *DNSContext) GetConfigs() []*DNSConfig
func (*DNSContext) ProtoMessage ¶
func (*DNSContext) ProtoMessage()
func (*DNSContext) Reset ¶
func (m *DNSContext) Reset()
func (*DNSContext) String ¶
func (m *DNSContext) String() string
func (*DNSContext) XXX_DiscardUnknown ¶
func (m *DNSContext) XXX_DiscardUnknown()
func (*DNSContext) XXX_Marshal ¶
func (m *DNSContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DNSContext) XXX_Merge ¶
func (m *DNSContext) XXX_Merge(src proto.Message)
func (*DNSContext) XXX_Size ¶
func (m *DNSContext) XXX_Size() int
func (*DNSContext) XXX_Unmarshal ¶
func (m *DNSContext) XXX_Unmarshal(b []byte) error
type EthernetContext ¶
type EthernetContext struct { SrcMac string `protobuf:"bytes,1,opt,name=src_mac,json=srcMac,proto3" json:"src_mac,omitempty"` DstMac string `protobuf:"bytes,2,opt,name=dst_mac,json=dstMac,proto3" json:"dst_mac,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EthernetContext) Descriptor ¶
func (*EthernetContext) Descriptor() ([]byte, []int)
func (*EthernetContext) GetDstMac ¶
func (m *EthernetContext) GetDstMac() string
func (*EthernetContext) GetSrcMac ¶
func (m *EthernetContext) GetSrcMac() string
func (*EthernetContext) ProtoMessage ¶
func (*EthernetContext) ProtoMessage()
func (*EthernetContext) Reset ¶
func (m *EthernetContext) Reset()
func (*EthernetContext) String ¶
func (m *EthernetContext) String() string
func (*EthernetContext) XXX_DiscardUnknown ¶
func (m *EthernetContext) XXX_DiscardUnknown()
func (*EthernetContext) XXX_Marshal ¶
func (m *EthernetContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EthernetContext) XXX_Merge ¶
func (m *EthernetContext) XXX_Merge(src proto.Message)
func (*EthernetContext) XXX_Size ¶
func (m *EthernetContext) XXX_Size() int
func (*EthernetContext) XXX_Unmarshal ¶
func (m *EthernetContext) XXX_Unmarshal(b []byte) error
type ExtraPrefixRequest ¶
type ExtraPrefixRequest struct { AddrFamily *IpFamily `protobuf:"bytes,1,opt,name=addr_family,json=addrFamily,proto3" json:"addr_family,omitempty"` PrefixLen uint32 `protobuf:"varint,2,opt,name=prefix_len,json=prefixLen,proto3" json:"prefix_len,omitempty"` RequiredNumber uint32 `protobuf:"varint,3,opt,name=required_number,json=requiredNumber,proto3" json:"required_number,omitempty"` RequestedNumber uint32 `protobuf:"varint,4,opt,name=requested_number,json=requestedNumber,proto3" json:"requested_number,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ExtraPrefixRequest) Descriptor ¶
func (*ExtraPrefixRequest) Descriptor() ([]byte, []int)
func (*ExtraPrefixRequest) GetAddrFamily ¶
func (m *ExtraPrefixRequest) GetAddrFamily() *IpFamily
func (*ExtraPrefixRequest) GetPrefixLen ¶
func (m *ExtraPrefixRequest) GetPrefixLen() uint32
func (*ExtraPrefixRequest) GetRequestedNumber ¶
func (m *ExtraPrefixRequest) GetRequestedNumber() uint32
func (*ExtraPrefixRequest) GetRequiredNumber ¶
func (m *ExtraPrefixRequest) GetRequiredNumber() uint32
func (*ExtraPrefixRequest) IsValid ¶
func (c *ExtraPrefixRequest) IsValid() error
IsValid - checks ExtraPrefixRequest validation
func (*ExtraPrefixRequest) ProtoMessage ¶
func (*ExtraPrefixRequest) ProtoMessage()
func (*ExtraPrefixRequest) Reset ¶
func (m *ExtraPrefixRequest) Reset()
func (*ExtraPrefixRequest) String ¶
func (m *ExtraPrefixRequest) String() string
func (*ExtraPrefixRequest) XXX_DiscardUnknown ¶
func (m *ExtraPrefixRequest) XXX_DiscardUnknown()
func (*ExtraPrefixRequest) XXX_Marshal ¶
func (m *ExtraPrefixRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExtraPrefixRequest) XXX_Merge ¶
func (m *ExtraPrefixRequest) XXX_Merge(src proto.Message)
func (*ExtraPrefixRequest) XXX_Size ¶
func (m *ExtraPrefixRequest) XXX_Size() int
func (*ExtraPrefixRequest) XXX_Unmarshal ¶
func (m *ExtraPrefixRequest) XXX_Unmarshal(b []byte) error
type IPContext ¶
type IPContext struct { SrcIpAddr string `protobuf:"bytes,1,opt,name=src_ip_addr,json=srcIpAddr,proto3" json:"src_ip_addr,omitempty"` DstIpAddr string `protobuf:"bytes,2,opt,name=dst_ip_addr,json=dstIpAddr,proto3" json:"dst_ip_addr,omitempty"` SrcIpRequired bool `protobuf:"varint,3,opt,name=src_ip_required,json=srcIpRequired,proto3" json:"src_ip_required,omitempty"` DstIpRequired bool `protobuf:"varint,4,opt,name=dst_ip_required,json=dstIpRequired,proto3" json:"dst_ip_required,omitempty"` SrcRoutes []*Route `protobuf:"bytes,5,rep,name=src_routes,json=srcRoutes,proto3" json:"src_routes,omitempty"` DstRoutes []*Route `protobuf:"bytes,6,rep,name=dst_routes,json=dstRoutes,proto3" json:"dst_routes,omitempty"` ExcludedPrefixes []string `protobuf:"bytes,7,rep,name=excluded_prefixes,json=excludedPrefixes,proto3" json:"excluded_prefixes,omitempty"` IpNeighbors []*IpNeighbor `protobuf:"bytes,8,rep,name=ip_neighbors,json=ipNeighbors,proto3" json:"ip_neighbors,omitempty"` ExtraPrefixRequest []*ExtraPrefixRequest `protobuf:"bytes,9,rep,name=extra_prefix_request,json=extraPrefixRequest,proto3" json:"extra_prefix_request,omitempty"` ExtraPrefixes []string `protobuf:"bytes,10,rep,name=extra_prefixes,json=extraPrefixes,proto3" json:"extra_prefixes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IPContext) Descriptor ¶
func (*IPContext) GetDstIpAddr ¶
func (*IPContext) GetDstIpRequired ¶
func (*IPContext) GetDstRoutes ¶
func (*IPContext) GetExcludedPrefixes ¶
func (*IPContext) GetExtraPrefixRequest ¶
func (m *IPContext) GetExtraPrefixRequest() []*ExtraPrefixRequest
func (*IPContext) GetExtraPrefixes ¶
func (*IPContext) GetIpNeighbors ¶
func (m *IPContext) GetIpNeighbors() []*IpNeighbor
func (*IPContext) GetSrcIpAddr ¶
func (*IPContext) GetSrcIpRequired ¶
func (*IPContext) GetSrcRoutes ¶
func (*IPContext) ProtoMessage ¶
func (*IPContext) ProtoMessage()
func (*IPContext) XXX_DiscardUnknown ¶
func (m *IPContext) XXX_DiscardUnknown()
func (*IPContext) XXX_Marshal ¶
func (*IPContext) XXX_Unmarshal ¶
type IpFamily ¶
type IpFamily struct { Family IpFamily_Family `protobuf:"varint,1,opt,name=family,proto3,enum=connectioncontext.IpFamily_Family" json:"family,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IpFamily) Descriptor ¶
func (*IpFamily) GetFamily ¶
func (m *IpFamily) GetFamily() IpFamily_Family
func (*IpFamily) ProtoMessage ¶
func (*IpFamily) ProtoMessage()
func (*IpFamily) XXX_DiscardUnknown ¶
func (m *IpFamily) XXX_DiscardUnknown()
func (*IpFamily) XXX_Marshal ¶
func (*IpFamily) XXX_Unmarshal ¶
type IpFamily_Family ¶
type IpFamily_Family int32
const ( IpFamily_IPV4 IpFamily_Family = 0 IpFamily_IPV6 IpFamily_Family = 1 )
func (IpFamily_Family) EnumDescriptor ¶
func (IpFamily_Family) EnumDescriptor() ([]byte, []int)
func (IpFamily_Family) String ¶
func (x IpFamily_Family) String() string
type IpNeighbor ¶
type IpNeighbor struct { Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` HardwareAddress string `protobuf:"bytes,2,opt,name=hardware_address,json=hardwareAddress,proto3" json:"hardware_address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IpNeighbor) Descriptor ¶
func (*IpNeighbor) Descriptor() ([]byte, []int)
func (*IpNeighbor) GetHardwareAddress ¶
func (m *IpNeighbor) GetHardwareAddress() string
func (*IpNeighbor) GetIp ¶
func (m *IpNeighbor) GetIp() string
func (*IpNeighbor) ProtoMessage ¶
func (*IpNeighbor) ProtoMessage()
func (*IpNeighbor) Reset ¶
func (m *IpNeighbor) Reset()
func (*IpNeighbor) String ¶
func (m *IpNeighbor) String() string
func (*IpNeighbor) XXX_DiscardUnknown ¶
func (m *IpNeighbor) XXX_DiscardUnknown()
func (*IpNeighbor) XXX_Marshal ¶
func (m *IpNeighbor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IpNeighbor) XXX_Merge ¶
func (m *IpNeighbor) XXX_Merge(src proto.Message)
func (*IpNeighbor) XXX_Size ¶
func (m *IpNeighbor) XXX_Size() int
func (*IpNeighbor) XXX_Unmarshal ¶
func (m *IpNeighbor) XXX_Unmarshal(b []byte) error
type Route ¶
type Route struct { Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Route) Descriptor ¶
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
func (*Route) XXX_DiscardUnknown ¶
func (m *Route) XXX_DiscardUnknown()
func (*Route) XXX_Marshal ¶
func (*Route) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.