Documentation
¶
Overview ¶
Package ipam provides the Network Service Mesh API: IpamService{Server,Client}.{Request}
Index ¶
- Variables
- func RegisterIPAMServer(s *grpc.Server, srv IPAMServer)
- type IPAMClient
- type IPAMServer
- type IPAM_ManagePrefixesClient
- type IPAM_ManagePrefixesServer
- type PrefixRequest
- func (*PrefixRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PrefixRequest) GetExcludePrefixes() []string
- func (x *PrefixRequest) GetPrefix() string
- func (x *PrefixRequest) GetType() Type
- func (*PrefixRequest) ProtoMessage()
- func (x *PrefixRequest) ProtoReflect() protoreflect.Message
- func (x *PrefixRequest) Reset()
- func (x *PrefixRequest) String() string
- type PrefixResponse
- func (*PrefixResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PrefixResponse) GetExcludePrefixes() []string
- func (x *PrefixResponse) GetPrefix() string
- func (*PrefixResponse) ProtoMessage()
- func (x *PrefixResponse) ProtoReflect() protoreflect.Message
- func (x *PrefixResponse) Reset()
- func (x *PrefixResponse) String() string
- type Type
- type UnimplementedIPAMServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Type_name = map[int32]string{ 0: "UNDEFINED", 1: "ALLOCATE", 2: "DELETE", } Type_value = map[string]int32{ "UNDEFINED": 0, "ALLOCATE": 1, "DELETE": 2, } )
Enum value maps for Type.
View Source
var File_ipam_proto protoreflect.FileDescriptor
Functions ¶
func RegisterIPAMServer ¶
func RegisterIPAMServer(s *grpc.Server, srv IPAMServer)
Types ¶
type IPAMClient ¶
type IPAMClient interface {
ManagePrefixes(ctx context.Context, opts ...grpc.CallOption) (IPAM_ManagePrefixesClient, error)
}
IPAMClient is the client API for IPAM service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewIPAMClient ¶
func NewIPAMClient(cc grpc.ClientConnInterface) IPAMClient
type IPAMServer ¶
type IPAMServer interface {
ManagePrefixes(IPAM_ManagePrefixesServer) error
}
IPAMServer is the server API for IPAM service.
type IPAM_ManagePrefixesClient ¶
type IPAM_ManagePrefixesClient interface {
Send(*PrefixRequest) error
Recv() (*PrefixResponse, error)
grpc.ClientStream
}
type IPAM_ManagePrefixesServer ¶
type IPAM_ManagePrefixesServer interface {
Send(*PrefixResponse) error
Recv() (*PrefixRequest, error)
grpc.ServerStream
}
type PrefixRequest ¶
type PrefixRequest struct {
Type Type `protobuf:"varint,1,opt,name=type,proto3,enum=ipam.Type" json:"type,omitempty"`
Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
ExcludePrefixes []string `protobuf:"bytes,3,rep,name=exclude_prefixes,json=excludePrefixes,proto3" json:"exclude_prefixes,omitempty"`
// contains filtered or unexported fields
}
func (*PrefixRequest) Descriptor
deprecated
func (*PrefixRequest) Descriptor() ([]byte, []int)
Deprecated: Use PrefixRequest.ProtoReflect.Descriptor instead.
func (*PrefixRequest) GetExcludePrefixes ¶
func (x *PrefixRequest) GetExcludePrefixes() []string
func (*PrefixRequest) GetPrefix ¶
func (x *PrefixRequest) GetPrefix() string
func (*PrefixRequest) GetType ¶
func (x *PrefixRequest) GetType() Type
func (*PrefixRequest) ProtoMessage ¶
func (*PrefixRequest) ProtoMessage()
func (*PrefixRequest) ProtoReflect ¶
func (x *PrefixRequest) ProtoReflect() protoreflect.Message
func (*PrefixRequest) Reset ¶
func (x *PrefixRequest) Reset()
func (*PrefixRequest) String ¶
func (x *PrefixRequest) String() string
type PrefixResponse ¶
type PrefixResponse struct {
Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
ExcludePrefixes []string `protobuf:"bytes,3,rep,name=exclude_prefixes,json=excludePrefixes,proto3" json:"exclude_prefixes,omitempty"`
// contains filtered or unexported fields
}
func (*PrefixResponse) Descriptor
deprecated
func (*PrefixResponse) Descriptor() ([]byte, []int)
Deprecated: Use PrefixResponse.ProtoReflect.Descriptor instead.
func (*PrefixResponse) GetExcludePrefixes ¶
func (x *PrefixResponse) GetExcludePrefixes() []string
func (*PrefixResponse) GetPrefix ¶
func (x *PrefixResponse) GetPrefix() string
func (*PrefixResponse) ProtoMessage ¶
func (*PrefixResponse) ProtoMessage()
func (*PrefixResponse) ProtoReflect ¶
func (x *PrefixResponse) ProtoReflect() protoreflect.Message
func (*PrefixResponse) Reset ¶
func (x *PrefixResponse) Reset()
func (*PrefixResponse) String ¶
func (x *PrefixResponse) String() string
type Type ¶
type Type int32
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
type UnimplementedIPAMServer ¶
type UnimplementedIPAMServer struct {
}
UnimplementedIPAMServer can be embedded to have forward compatible implementations.
func (*UnimplementedIPAMServer) ManagePrefixes ¶
func (*UnimplementedIPAMServer) ManagePrefixes(IPAM_ManagePrefixesServer) error
Click to show internal directories.
Click to hide internal directories.