connectioncontext

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: Apache-2.0 Imports: 5 Imported by: 25

Documentation

Index

Constants

View Source
const (
	//DNSConfigShouldNotBeNil -
	DNSConfigShouldNotBeNil = "dnsConfig should not be nil"
	//DNSServerIpsShouldHaveRecords -
	DNSServerIpsShouldHaveRecords = "dnsConfig should have records"
)

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"`
	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) GetIpContext

func (m *ConnectionContext) GetIpContext() *IPContext

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) 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) Descriptor() ([]byte, []int)

func (*DNSConfig) GetDnsServerIps

func (m *DNSConfig) GetDnsServerIps() []string

func (*DNSConfig) GetSearchDomains

func (m *DNSConfig) GetSearchDomains() []string

func (*DNSConfig) ProtoMessage

func (*DNSConfig) ProtoMessage()

func (*DNSConfig) Reset

func (m *DNSConfig) Reset()

func (*DNSConfig) String

func (m *DNSConfig) String() string

func (*DNSConfig) Validate

func (c *DNSConfig) Validate() error

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 (m *DNSConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DNSConfig) XXX_Merge

func (m *DNSConfig) XXX_Merge(src proto.Message)

func (*DNSConfig) XXX_Size

func (m *DNSConfig) XXX_Size() int

func (*DNSConfig) XXX_Unmarshal

func (m *DNSConfig) XXX_Unmarshal(b []byte) error

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 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) Descriptor() ([]byte, []int)

func (*IPContext) GetDstIpAddr

func (m *IPContext) GetDstIpAddr() string

func (*IPContext) GetDstIpRequired

func (m *IPContext) GetDstIpRequired() bool

func (*IPContext) GetDstRoutes

func (m *IPContext) GetDstRoutes() []*Route

func (*IPContext) GetExcludedPrefixes

func (m *IPContext) GetExcludedPrefixes() []string

func (*IPContext) GetExtraPrefixRequest

func (m *IPContext) GetExtraPrefixRequest() []*ExtraPrefixRequest

func (*IPContext) GetExtraPrefixes

func (m *IPContext) GetExtraPrefixes() []string

func (*IPContext) GetIpNeighbors

func (m *IPContext) GetIpNeighbors() []*IpNeighbor

func (*IPContext) GetSrcIpAddr

func (m *IPContext) GetSrcIpAddr() string

func (*IPContext) GetSrcIpRequired

func (m *IPContext) GetSrcIpRequired() bool

func (*IPContext) GetSrcRoutes

func (m *IPContext) GetSrcRoutes() []*Route

func (*IPContext) ProtoMessage

func (*IPContext) ProtoMessage()

func (*IPContext) Reset

func (m *IPContext) Reset()

func (*IPContext) String

func (m *IPContext) String() string

func (*IPContext) XXX_DiscardUnknown

func (m *IPContext) XXX_DiscardUnknown()

func (*IPContext) XXX_Marshal

func (m *IPContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IPContext) XXX_Merge

func (m *IPContext) XXX_Merge(src proto.Message)

func (*IPContext) XXX_Size

func (m *IPContext) XXX_Size() int

func (*IPContext) XXX_Unmarshal

func (m *IPContext) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*IpFamily) GetFamily

func (m *IpFamily) GetFamily() IpFamily_Family

func (*IpFamily) ProtoMessage

func (*IpFamily) ProtoMessage()

func (*IpFamily) Reset

func (m *IpFamily) Reset()

func (*IpFamily) String

func (m *IpFamily) String() string

func (*IpFamily) XXX_DiscardUnknown

func (m *IpFamily) XXX_DiscardUnknown()

func (*IpFamily) XXX_Marshal

func (m *IpFamily) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IpFamily) XXX_Merge

func (m *IpFamily) XXX_Merge(src proto.Message)

func (*IpFamily) XXX_Size

func (m *IpFamily) XXX_Size() int

func (*IpFamily) XXX_Unmarshal

func (m *IpFamily) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Route) GetPrefix

func (m *Route) GetPrefix() string

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) Reset

func (m *Route) Reset()

func (*Route) String

func (m *Route) String() string

func (*Route) XXX_DiscardUnknown

func (m *Route) XXX_DiscardUnknown()

func (*Route) XXX_Marshal

func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Route) XXX_Merge

func (m *Route) XXX_Merge(src proto.Message)

func (*Route) XXX_Size

func (m *Route) XXX_Size() int

func (*Route) XXX_Unmarshal

func (m *Route) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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