ipam

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Overview

Package ipam provides the Network Service Mesh API: IpamService{Server,Client}.{Request}

Index

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.

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
const (
	Type_UNDEFINED Type = 0
	Type_ALLOCATE  Type = 1
	Type_DELETE    Type = 2
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

func (Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

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

Jump to

Keyboard shortcuts

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