ipreceiver

package
v0.2.6-vl3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPrefixRangeAllocatorServer

func RegisterPrefixRangeAllocatorServer(s *grpc.Server, srv PrefixRangeAllocatorServer)

Types

type IpRange

type IpRange struct {
	Identifier           *RangeIdentifier     `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Prefix               *ipprovider.IpPrefix `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*IpRange) Descriptor

func (*IpRange) Descriptor() ([]byte, []int)

func (*IpRange) GetIdentifier

func (m *IpRange) GetIdentifier() *RangeIdentifier

func (*IpRange) GetPrefix

func (m *IpRange) GetPrefix() *ipprovider.IpPrefix

func (*IpRange) ProtoMessage

func (*IpRange) ProtoMessage()

func (*IpRange) Reset

func (m *IpRange) Reset()

func (*IpRange) String

func (m *IpRange) String() string

func (*IpRange) Validate

func (m *IpRange) Validate() error

func (*IpRange) XXX_DiscardUnknown

func (m *IpRange) XXX_DiscardUnknown()

func (*IpRange) XXX_Marshal

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

func (*IpRange) XXX_Merge

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

func (*IpRange) XXX_Size

func (m *IpRange) XXX_Size() int

func (*IpRange) XXX_Unmarshal

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

type PrefixRangeAllocatorClient

type PrefixRangeAllocatorClient interface {
	AssignRange(ctx context.Context, in *IpRange, opts ...grpc.CallOption) (*ipprovider.Empty, error)
	UnassignRange(ctx context.Context, in *IpRange, opts ...grpc.CallOption) (*ipprovider.Empty, error)
}

PrefixRangeAllocatorClient is the client API for PrefixRangeAllocator service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewPrefixRangeAllocatorClient

func NewPrefixRangeAllocatorClient(cc *grpc.ClientConn) PrefixRangeAllocatorClient

type PrefixRangeAllocatorServer

type PrefixRangeAllocatorServer interface {
	AssignRange(context.Context, *IpRange) (*ipprovider.Empty, error)
	UnassignRange(context.Context, *IpRange) (*ipprovider.Empty, error)
}

PrefixRangeAllocatorServer is the server API for PrefixRangeAllocator service.

type RangeIdentifier

type RangeIdentifier struct {
	Fqdn                 string   `protobuf:"bytes,1,opt,name=fqdn,proto3" json:"fqdn,omitempty"`
	ConnectivityDomain   string   `protobuf:"bytes,3,opt,name=connectivity_domain,json=connectivityDomain,proto3" json:"connectivity_domain,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RangeIdentifier) Descriptor

func (*RangeIdentifier) Descriptor() ([]byte, []int)

func (*RangeIdentifier) GetConnectivityDomain

func (m *RangeIdentifier) GetConnectivityDomain() string

func (*RangeIdentifier) GetFqdn

func (m *RangeIdentifier) GetFqdn() string

func (*RangeIdentifier) ProtoMessage

func (*RangeIdentifier) ProtoMessage()

func (*RangeIdentifier) Reset

func (m *RangeIdentifier) Reset()

func (*RangeIdentifier) String

func (m *RangeIdentifier) String() string

func (*RangeIdentifier) Validate

func (m *RangeIdentifier) Validate() error

func (*RangeIdentifier) XXX_DiscardUnknown

func (m *RangeIdentifier) XXX_DiscardUnknown()

func (*RangeIdentifier) XXX_Marshal

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

func (*RangeIdentifier) XXX_Merge

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

func (*RangeIdentifier) XXX_Size

func (m *RangeIdentifier) XXX_Size() int

func (*RangeIdentifier) XXX_Unmarshal

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

type UnimplementedPrefixRangeAllocatorServer

type UnimplementedPrefixRangeAllocatorServer struct {
}

UnimplementedPrefixRangeAllocatorServer can be embedded to have forward compatible implementations.

func (*UnimplementedPrefixRangeAllocatorServer) AssignRange

func (*UnimplementedPrefixRangeAllocatorServer) UnassignRange

Jump to

Keyboard shortcuts

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