proto

package
v1.11.0-cni-plu...-232b72f Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CniDataplane_Add_FullMethodName = "/cni.CniDataplane/Add"
	CniDataplane_Del_FullMethodName = "/cni.CniDataplane/Del"
)

Variables

View Source
var CniDataplane_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cni.CniDataplane",
	HandlerType: (*CniDataplaneServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Add",
			Handler:    _CniDataplane_Add_Handler,
		},
		{
			MethodName: "Del",
			Handler:    _CniDataplane_Del_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cnibackend.proto",
}

CniDataplane_ServiceDesc is the grpc.ServiceDesc for CniDataplane service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_cnibackend_proto protoreflect.FileDescriptor

Functions

func RegisterCniDataplaneServer

func RegisterCniDataplaneServer(s grpc.ServiceRegistrar, srv CniDataplaneServer)

Types

type AddReply

type AddReply struct {
	Successful        bool   `protobuf:"varint,1,opt,name=successful,proto3" json:"successful,omitempty"`
	ErrorMessage      string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	HostInterfaceName string `protobuf:"bytes,3,opt,name=host_interface_name,json=hostInterfaceName,proto3" json:"host_interface_name,omitempty"`
	ContainerMac      string `protobuf:"bytes,4,opt,name=container_mac,json=containerMac,proto3" json:"container_mac,omitempty"`
	// contains filtered or unexported fields
}

func (*AddReply) Descriptor deprecated

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

Deprecated: Use AddReply.ProtoReflect.Descriptor instead.

func (*AddReply) GetContainerMac

func (x *AddReply) GetContainerMac() string

func (*AddReply) GetErrorMessage

func (x *AddReply) GetErrorMessage() string

func (*AddReply) GetHostInterfaceName

func (x *AddReply) GetHostInterfaceName() string

func (*AddReply) GetSuccessful

func (x *AddReply) GetSuccessful() bool

func (*AddReply) ProtoMessage

func (*AddReply) ProtoMessage()

func (*AddReply) ProtoReflect

func (x *AddReply) ProtoReflect() protoreflect.Message

func (*AddReply) Reset

func (x *AddReply) Reset()

func (*AddReply) String

func (x *AddReply) String() string

type AddRequest

type AddRequest struct {
	InterfaceName            string             `protobuf:"bytes,1,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"`
	Netns                    string             `protobuf:"bytes,2,opt,name=netns,proto3" json:"netns,omitempty"`
	DesiredHostInterfaceName string             `` /* 137-byte string literal not displayed */
	Settings                 *ContainerSettings `protobuf:"bytes,4,opt,name=settings,proto3" json:"settings,omitempty"`
	ContainerIps             []*IPConfig        `protobuf:"bytes,5,rep,name=container_ips,json=containerIps,proto3" json:"container_ips,omitempty"`
	ContainerRoutes          []string           `protobuf:"bytes,6,rep,name=container_routes,json=containerRoutes,proto3" json:"container_routes,omitempty"`
	Workload                 *WorkloadIDs       `protobuf:"bytes,7,opt,name=workload,proto3" json:"workload,omitempty"`
	DataplaneOptions         map[string]string  `` /* 183-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*AddRequest) Descriptor deprecated

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

Deprecated: Use AddRequest.ProtoReflect.Descriptor instead.

func (*AddRequest) GetContainerIps

func (x *AddRequest) GetContainerIps() []*IPConfig

func (*AddRequest) GetContainerRoutes

func (x *AddRequest) GetContainerRoutes() []string

func (*AddRequest) GetDataplaneOptions

func (x *AddRequest) GetDataplaneOptions() map[string]string

func (*AddRequest) GetDesiredHostInterfaceName

func (x *AddRequest) GetDesiredHostInterfaceName() string

func (*AddRequest) GetInterfaceName

func (x *AddRequest) GetInterfaceName() string

func (*AddRequest) GetNetns

func (x *AddRequest) GetNetns() string

func (*AddRequest) GetSettings

func (x *AddRequest) GetSettings() *ContainerSettings

func (*AddRequest) GetWorkload

func (x *AddRequest) GetWorkload() *WorkloadIDs

func (*AddRequest) ProtoMessage

func (*AddRequest) ProtoMessage()

func (*AddRequest) ProtoReflect

func (x *AddRequest) ProtoReflect() protoreflect.Message

func (*AddRequest) Reset

func (x *AddRequest) Reset()

func (*AddRequest) String

func (x *AddRequest) String() string

type CniDataplaneClient

type CniDataplaneClient interface {
	Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddReply, error)
	Del(ctx context.Context, in *DelRequest, opts ...grpc.CallOption) (*DelReply, error)
}

CniDataplaneClient is the client API for CniDataplane service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type CniDataplaneServer

type CniDataplaneServer interface {
	Add(context.Context, *AddRequest) (*AddReply, error)
	Del(context.Context, *DelRequest) (*DelReply, error)
	// contains filtered or unexported methods
}

CniDataplaneServer is the server API for CniDataplane service. All implementations must embed UnimplementedCniDataplaneServer for forward compatibility.

type ContainerSettings

type ContainerSettings struct {
	AllowIpForwarding bool  `protobuf:"varint,1,opt,name=allow_ip_forwarding,json=allowIpForwarding,proto3" json:"allow_ip_forwarding,omitempty"`
	Mtu               int32 `protobuf:"varint,2,opt,name=mtu,proto3" json:"mtu,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainerSettings) Descriptor deprecated

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

Deprecated: Use ContainerSettings.ProtoReflect.Descriptor instead.

func (*ContainerSettings) GetAllowIpForwarding

func (x *ContainerSettings) GetAllowIpForwarding() bool

func (*ContainerSettings) GetMtu

func (x *ContainerSettings) GetMtu() int32

func (*ContainerSettings) ProtoMessage

func (*ContainerSettings) ProtoMessage()

func (*ContainerSettings) ProtoReflect

func (x *ContainerSettings) ProtoReflect() protoreflect.Message

func (*ContainerSettings) Reset

func (x *ContainerSettings) Reset()

func (*ContainerSettings) String

func (x *ContainerSettings) String() string

type DelReply

type DelReply struct {
	Successful   bool   `protobuf:"varint,1,opt,name=successful,proto3" json:"successful,omitempty"`
	ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

func (*DelReply) Descriptor deprecated

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

Deprecated: Use DelReply.ProtoReflect.Descriptor instead.

func (*DelReply) GetErrorMessage

func (x *DelReply) GetErrorMessage() string

func (*DelReply) GetSuccessful

func (x *DelReply) GetSuccessful() bool

func (*DelReply) ProtoMessage

func (*DelReply) ProtoMessage()

func (*DelReply) ProtoReflect

func (x *DelReply) ProtoReflect() protoreflect.Message

func (*DelReply) Reset

func (x *DelReply) Reset()

func (*DelReply) String

func (x *DelReply) String() string

type DelRequest

type DelRequest struct {
	InterfaceName    string            `protobuf:"bytes,1,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"`
	Netns            string            `protobuf:"bytes,2,opt,name=netns,proto3" json:"netns,omitempty"`
	DataplaneOptions map[string]string `` /* 183-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DelRequest) Descriptor deprecated

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

Deprecated: Use DelRequest.ProtoReflect.Descriptor instead.

func (*DelRequest) GetDataplaneOptions

func (x *DelRequest) GetDataplaneOptions() map[string]string

func (*DelRequest) GetInterfaceName

func (x *DelRequest) GetInterfaceName() string

func (*DelRequest) GetNetns

func (x *DelRequest) GetNetns() string

func (*DelRequest) ProtoMessage

func (*DelRequest) ProtoMessage()

func (*DelRequest) ProtoReflect

func (x *DelRequest) ProtoReflect() protoreflect.Message

func (*DelRequest) Reset

func (x *DelRequest) Reset()

func (*DelRequest) String

func (x *DelRequest) String() string

type IPConfig

type IPConfig struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Gateway string `protobuf:"bytes,2,opt,name=gateway,proto3" json:"gateway,omitempty"`
	// contains filtered or unexported fields
}

func (*IPConfig) Descriptor deprecated

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

Deprecated: Use IPConfig.ProtoReflect.Descriptor instead.

func (*IPConfig) GetAddress

func (x *IPConfig) GetAddress() string

func (*IPConfig) GetGateway

func (x *IPConfig) GetGateway() string

func (*IPConfig) ProtoMessage

func (*IPConfig) ProtoMessage()

func (*IPConfig) ProtoReflect

func (x *IPConfig) ProtoReflect() protoreflect.Message

func (*IPConfig) Reset

func (x *IPConfig) Reset()

func (*IPConfig) String

func (x *IPConfig) String() string

type Port

type Port struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Port     uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	HostPort uint32 `protobuf:"varint,4,opt,name=host_port,json=hostPort,proto3" json:"host_port,omitempty"`
	HostIp   string `protobuf:"bytes,5,opt,name=host_ip,json=hostIp,proto3" json:"host_ip,omitempty"`
	// contains filtered or unexported fields
}

func (*Port) Descriptor deprecated

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

Deprecated: Use Port.ProtoReflect.Descriptor instead.

func (*Port) GetHostIp

func (x *Port) GetHostIp() string

func (*Port) GetHostPort

func (x *Port) GetHostPort() uint32

func (*Port) GetName

func (x *Port) GetName() string

func (*Port) GetPort

func (x *Port) GetPort() uint32

func (*Port) GetProtocol

func (x *Port) GetProtocol() string

func (*Port) ProtoMessage

func (*Port) ProtoMessage()

func (*Port) ProtoReflect

func (x *Port) ProtoReflect() protoreflect.Message

func (*Port) Reset

func (x *Port) Reset()

func (*Port) String

func (x *Port) String() string

type UnimplementedCniDataplaneServer

type UnimplementedCniDataplaneServer struct{}

UnimplementedCniDataplaneServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedCniDataplaneServer) Add

func (UnimplementedCniDataplaneServer) Del

type UnsafeCniDataplaneServer

type UnsafeCniDataplaneServer interface {
	// contains filtered or unexported methods
}

UnsafeCniDataplaneServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CniDataplaneServer will result in compilation errors.

type WorkloadIDs

type WorkloadIDs struct {
	Name         string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Namespace    string            `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Labels       map[string]string `` /* 139-byte string literal not displayed */
	Annotations  map[string]string `` /* 149-byte string literal not displayed */
	Endpoint     string            `protobuf:"bytes,5,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	Node         string            `protobuf:"bytes,6,opt,name=node,proto3" json:"node,omitempty"`
	Orchestrator string            `protobuf:"bytes,7,opt,name=orchestrator,proto3" json:"orchestrator,omitempty"`
	Pod          string            `protobuf:"bytes,8,opt,name=pod,proto3" json:"pod,omitempty"`
	Ports        []*Port           `protobuf:"bytes,9,rep,name=ports,proto3" json:"ports,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkloadIDs) Descriptor deprecated

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

Deprecated: Use WorkloadIDs.ProtoReflect.Descriptor instead.

func (*WorkloadIDs) GetAnnotations

func (x *WorkloadIDs) GetAnnotations() map[string]string

func (*WorkloadIDs) GetEndpoint

func (x *WorkloadIDs) GetEndpoint() string

func (*WorkloadIDs) GetLabels

func (x *WorkloadIDs) GetLabels() map[string]string

func (*WorkloadIDs) GetName

func (x *WorkloadIDs) GetName() string

func (*WorkloadIDs) GetNamespace

func (x *WorkloadIDs) GetNamespace() string

func (*WorkloadIDs) GetNode

func (x *WorkloadIDs) GetNode() string

func (*WorkloadIDs) GetOrchestrator

func (x *WorkloadIDs) GetOrchestrator() string

func (*WorkloadIDs) GetPod

func (x *WorkloadIDs) GetPod() string

func (*WorkloadIDs) GetPorts

func (x *WorkloadIDs) GetPorts() []*Port

func (*WorkloadIDs) ProtoMessage

func (*WorkloadIDs) ProtoMessage()

func (*WorkloadIDs) ProtoReflect

func (x *WorkloadIDs) ProtoReflect() protoreflect.Message

func (*WorkloadIDs) Reset

func (x *WorkloadIDs) Reset()

func (*WorkloadIDs) String

func (x *WorkloadIDs) String() string

Jump to

Keyboard shortcuts

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