nodenetworkservice

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RequestType_name = map[int32]string{
		0: "Setup",
		1: "Teardown",
	}
	RequestType_value = map[string]int32{
		"Setup":    0,
		"Teardown": 1,
	}
)

Enum value maps for RequestType.

View Source
var File_NodeNetworkService_proto protoreflect.FileDescriptor

Functions

func RegisterNodeNetworkServiceServer

func RegisterNodeNetworkServiceServer(s *grpc.Server, srv NodeNetworkServiceServer)

Types

type ConfigureContainerNetworkingRequest

type ConfigureContainerNetworkingRequest struct {
	RequestType        RequestType `` /* 137-byte string literal not displayed */
	ContainerId        string      `protobuf:"bytes,2,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	NetworkNamespaceId string      `protobuf:"bytes,3,opt,name=network_namespace_id,json=networkNamespaceId,proto3" json:"network_namespace_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigureContainerNetworkingRequest) Descriptor deprecated

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

Deprecated: Use ConfigureContainerNetworkingRequest.ProtoReflect.Descriptor instead.

func (*ConfigureContainerNetworkingRequest) GetContainerId

func (x *ConfigureContainerNetworkingRequest) GetContainerId() string

func (*ConfigureContainerNetworkingRequest) GetNetworkNamespaceId

func (x *ConfigureContainerNetworkingRequest) GetNetworkNamespaceId() string

func (*ConfigureContainerNetworkingRequest) GetRequestType

func (*ConfigureContainerNetworkingRequest) ProtoMessage

func (*ConfigureContainerNetworkingRequest) ProtoMessage()

func (*ConfigureContainerNetworkingRequest) ProtoReflect

func (*ConfigureContainerNetworkingRequest) Reset

func (*ConfigureContainerNetworkingRequest) String

type ConfigureContainerNetworkingResponse

type ConfigureContainerNetworkingResponse struct {
	Interfaces []*ContainerNetworkInterface `protobuf:"bytes,1,rep,name=interfaces,proto3" json:"interfaces,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigureContainerNetworkingResponse) Descriptor deprecated

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

Deprecated: Use ConfigureContainerNetworkingResponse.ProtoReflect.Descriptor instead.

func (*ConfigureContainerNetworkingResponse) GetInterfaces

func (*ConfigureContainerNetworkingResponse) ProtoMessage

func (*ConfigureContainerNetworkingResponse) ProtoMessage()

func (*ConfigureContainerNetworkingResponse) ProtoReflect

func (*ConfigureContainerNetworkingResponse) Reset

func (*ConfigureContainerNetworkingResponse) String

type ConfigureNetworkingRequest

type ConfigureNetworkingRequest struct {
	ContainerId string      `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	RequestType RequestType `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ConfigureNetworkingRequest) Descriptor deprecated

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

Deprecated: Use ConfigureNetworkingRequest.ProtoReflect.Descriptor instead.

func (*ConfigureNetworkingRequest) GetContainerId

func (x *ConfigureNetworkingRequest) GetContainerId() string

func (*ConfigureNetworkingRequest) GetRequestType

func (x *ConfigureNetworkingRequest) GetRequestType() RequestType

func (*ConfigureNetworkingRequest) ProtoMessage

func (*ConfigureNetworkingRequest) ProtoMessage()

func (*ConfigureNetworkingRequest) ProtoReflect

func (*ConfigureNetworkingRequest) Reset

func (x *ConfigureNetworkingRequest) Reset()

func (*ConfigureNetworkingRequest) String

func (x *ConfigureNetworkingRequest) String() string

type ConfigureNetworkingResponse

type ConfigureNetworkingResponse struct {
	// contains filtered or unexported fields
}

func (*ConfigureNetworkingResponse) Descriptor deprecated

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

Deprecated: Use ConfigureNetworkingResponse.ProtoReflect.Descriptor instead.

func (*ConfigureNetworkingResponse) ProtoMessage

func (*ConfigureNetworkingResponse) ProtoMessage()

func (*ConfigureNetworkingResponse) ProtoReflect

func (*ConfigureNetworkingResponse) Reset

func (x *ConfigureNetworkingResponse) Reset()

func (*ConfigureNetworkingResponse) String

func (x *ConfigureNetworkingResponse) String() string

type ContainerIPAddress

type ContainerIPAddress struct {
	Version        string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Ip             string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	PrefixLength   string `protobuf:"bytes,4,opt,name=prefix_length,json=prefixLength,proto3" json:"prefix_length,omitempty"`
	DefaultGateway string `protobuf:"bytes,5,opt,name=default_gateway,json=defaultGateway,proto3" json:"default_gateway,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainerIPAddress) Descriptor deprecated

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

Deprecated: Use ContainerIPAddress.ProtoReflect.Descriptor instead.

func (*ContainerIPAddress) GetDefaultGateway

func (x *ContainerIPAddress) GetDefaultGateway() string

func (*ContainerIPAddress) GetIp

func (x *ContainerIPAddress) GetIp() string

func (*ContainerIPAddress) GetPrefixLength

func (x *ContainerIPAddress) GetPrefixLength() string

func (*ContainerIPAddress) GetVersion

func (x *ContainerIPAddress) GetVersion() string

func (*ContainerIPAddress) ProtoMessage

func (*ContainerIPAddress) ProtoMessage()

func (*ContainerIPAddress) ProtoReflect

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

func (*ContainerIPAddress) Reset

func (x *ContainerIPAddress) Reset()

func (*ContainerIPAddress) String

func (x *ContainerIPAddress) String() string

type ContainerNetworkInterface

type ContainerNetworkInterface struct {
	Name               string                `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	MacAddress         string                `protobuf:"bytes,2,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"`
	NetworkNamespaceId string                `protobuf:"bytes,3,opt,name=network_namespace_id,json=networkNamespaceId,proto3" json:"network_namespace_id,omitempty"`
	Ipaddresses        []*ContainerIPAddress `protobuf:"bytes,4,rep,name=ipaddresses,proto3" json:"ipaddresses,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainerNetworkInterface) Descriptor deprecated

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

Deprecated: Use ContainerNetworkInterface.ProtoReflect.Descriptor instead.

func (*ContainerNetworkInterface) GetIpaddresses

func (x *ContainerNetworkInterface) GetIpaddresses() []*ContainerIPAddress

func (*ContainerNetworkInterface) GetMacAddress

func (x *ContainerNetworkInterface) GetMacAddress() string

func (*ContainerNetworkInterface) GetName

func (x *ContainerNetworkInterface) GetName() string

func (*ContainerNetworkInterface) GetNetworkNamespaceId

func (x *ContainerNetworkInterface) GetNetworkNamespaceId() string

func (*ContainerNetworkInterface) ProtoMessage

func (*ContainerNetworkInterface) ProtoMessage()

func (*ContainerNetworkInterface) ProtoReflect

func (*ContainerNetworkInterface) Reset

func (x *ContainerNetworkInterface) Reset()

func (*ContainerNetworkInterface) String

func (x *ContainerNetworkInterface) String() string

type NodeNetworkServiceClient

type NodeNetworkServiceClient interface {
	ConfigureNetworking(ctx context.Context, in *ConfigureNetworkingRequest, opts ...grpc.CallOption) (*ConfigureNetworkingResponse, error)
	ConfigureContainerNetworking(ctx context.Context, in *ConfigureContainerNetworkingRequest, opts ...grpc.CallOption) (*ConfigureContainerNetworkingResponse, error)
	PingNodeNetworkService(ctx context.Context, in *PingNodeNetworkServiceRequest, opts ...grpc.CallOption) (*PingNodeNetworkServiceResponse, error)
}

NodeNetworkServiceClient is the client API for NodeNetworkService service.

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

type NodeNetworkServiceServer

NodeNetworkServiceServer is the server API for NodeNetworkService service.

type PingNodeNetworkServiceRequest

type PingNodeNetworkServiceRequest struct {
	PingRequestMessage string `protobuf:"bytes,1,opt,name=ping_request_message,json=pingRequestMessage,proto3" json:"ping_request_message,omitempty"`
	// contains filtered or unexported fields
}

func (*PingNodeNetworkServiceRequest) Descriptor deprecated

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

Deprecated: Use PingNodeNetworkServiceRequest.ProtoReflect.Descriptor instead.

func (*PingNodeNetworkServiceRequest) GetPingRequestMessage

func (x *PingNodeNetworkServiceRequest) GetPingRequestMessage() string

func (*PingNodeNetworkServiceRequest) ProtoMessage

func (*PingNodeNetworkServiceRequest) ProtoMessage()

func (*PingNodeNetworkServiceRequest) ProtoReflect

func (*PingNodeNetworkServiceRequest) Reset

func (x *PingNodeNetworkServiceRequest) Reset()

func (*PingNodeNetworkServiceRequest) String

type PingNodeNetworkServiceResponse

type PingNodeNetworkServiceResponse struct {
	PingResponseMessage string `protobuf:"bytes,1,opt,name=ping_response_message,json=pingResponseMessage,proto3" json:"ping_response_message,omitempty"`
	// contains filtered or unexported fields
}

func (*PingNodeNetworkServiceResponse) Descriptor deprecated

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

Deprecated: Use PingNodeNetworkServiceResponse.ProtoReflect.Descriptor instead.

func (*PingNodeNetworkServiceResponse) GetPingResponseMessage

func (x *PingNodeNetworkServiceResponse) GetPingResponseMessage() string

func (*PingNodeNetworkServiceResponse) ProtoMessage

func (*PingNodeNetworkServiceResponse) ProtoMessage()

func (*PingNodeNetworkServiceResponse) ProtoReflect

func (*PingNodeNetworkServiceResponse) Reset

func (x *PingNodeNetworkServiceResponse) Reset()

func (*PingNodeNetworkServiceResponse) String

type RequestType

type RequestType int32
const (
	RequestType_Setup    RequestType = 0
	RequestType_Teardown RequestType = 1
)

func (RequestType) Descriptor

func (RequestType) Enum

func (x RequestType) Enum() *RequestType

func (RequestType) EnumDescriptor deprecated

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

Deprecated: Use RequestType.Descriptor instead.

func (RequestType) Number

func (x RequestType) Number() protoreflect.EnumNumber

func (RequestType) String

func (x RequestType) String() string

func (RequestType) Type

type UnimplementedNodeNetworkServiceServer

type UnimplementedNodeNetworkServiceServer struct {
}

UnimplementedNodeNetworkServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedNodeNetworkServiceServer) ConfigureNetworking

func (*UnimplementedNodeNetworkServiceServer) PingNodeNetworkService

Jump to

Keyboard shortcuts

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