Documentation ¶
Index ¶
- Variables
- func RegisterNodeNetworkServiceServer(s *grpc.Server, srv NodeNetworkServiceServer)
- type ConfigureContainerNetworkingRequest
- func (*ConfigureContainerNetworkingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigureContainerNetworkingRequest) GetContainerId() string
- func (x *ConfigureContainerNetworkingRequest) GetNetworkNamespaceId() string
- func (x *ConfigureContainerNetworkingRequest) GetRequestType() RequestType
- func (*ConfigureContainerNetworkingRequest) ProtoMessage()
- func (x *ConfigureContainerNetworkingRequest) ProtoReflect() protoreflect.Message
- func (x *ConfigureContainerNetworkingRequest) Reset()
- func (x *ConfigureContainerNetworkingRequest) String() string
- type ConfigureContainerNetworkingResponse
- func (*ConfigureContainerNetworkingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigureContainerNetworkingResponse) GetInterfaces() []*ContainerNetworkInterface
- func (*ConfigureContainerNetworkingResponse) ProtoMessage()
- func (x *ConfigureContainerNetworkingResponse) ProtoReflect() protoreflect.Message
- func (x *ConfigureContainerNetworkingResponse) Reset()
- func (x *ConfigureContainerNetworkingResponse) String() string
- type ConfigureNetworkingRequest
- func (*ConfigureNetworkingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigureNetworkingRequest) GetContainerId() string
- func (x *ConfigureNetworkingRequest) GetRequestType() RequestType
- func (*ConfigureNetworkingRequest) ProtoMessage()
- func (x *ConfigureNetworkingRequest) ProtoReflect() protoreflect.Message
- func (x *ConfigureNetworkingRequest) Reset()
- func (x *ConfigureNetworkingRequest) String() string
- type ConfigureNetworkingResponse
- type ContainerIPAddress
- func (*ContainerIPAddress) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerIPAddress) GetDefaultGateway() string
- func (x *ContainerIPAddress) GetIp() string
- func (x *ContainerIPAddress) GetPrefixLength() string
- func (x *ContainerIPAddress) GetVersion() string
- func (*ContainerIPAddress) ProtoMessage()
- func (x *ContainerIPAddress) ProtoReflect() protoreflect.Message
- func (x *ContainerIPAddress) Reset()
- func (x *ContainerIPAddress) String() string
- type ContainerNetworkInterface
- func (*ContainerNetworkInterface) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerNetworkInterface) GetIpaddresses() []*ContainerIPAddress
- func (x *ContainerNetworkInterface) GetMacAddress() string
- func (x *ContainerNetworkInterface) GetName() string
- func (x *ContainerNetworkInterface) GetNetworkNamespaceId() string
- func (*ContainerNetworkInterface) ProtoMessage()
- func (x *ContainerNetworkInterface) ProtoReflect() protoreflect.Message
- func (x *ContainerNetworkInterface) Reset()
- func (x *ContainerNetworkInterface) String() string
- type NodeNetworkServiceClient
- type NodeNetworkServiceServer
- type PingNodeNetworkServiceRequest
- func (*PingNodeNetworkServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PingNodeNetworkServiceRequest) GetPingRequestMessage() string
- func (*PingNodeNetworkServiceRequest) ProtoMessage()
- func (x *PingNodeNetworkServiceRequest) ProtoReflect() protoreflect.Message
- func (x *PingNodeNetworkServiceRequest) Reset()
- func (x *PingNodeNetworkServiceRequest) String() string
- type PingNodeNetworkServiceResponse
- func (*PingNodeNetworkServiceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PingNodeNetworkServiceResponse) GetPingResponseMessage() string
- func (*PingNodeNetworkServiceResponse) ProtoMessage()
- func (x *PingNodeNetworkServiceResponse) ProtoReflect() protoreflect.Message
- func (x *PingNodeNetworkServiceResponse) Reset()
- func (x *PingNodeNetworkServiceResponse) String() string
- type RequestType
- func (RequestType) Descriptor() protoreflect.EnumDescriptor
- func (x RequestType) Enum() *RequestType
- func (RequestType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RequestType) Number() protoreflect.EnumNumber
- func (x RequestType) String() string
- func (RequestType) Type() protoreflect.EnumType
- type UnimplementedNodeNetworkServiceServer
- func (*UnimplementedNodeNetworkServiceServer) ConfigureContainerNetworking(context.Context, *ConfigureContainerNetworkingRequest) (*ConfigureContainerNetworkingResponse, error)
- func (*UnimplementedNodeNetworkServiceServer) ConfigureNetworking(context.Context, *ConfigureNetworkingRequest) (*ConfigureNetworkingResponse, error)
- func (*UnimplementedNodeNetworkServiceServer) PingNodeNetworkService(context.Context, *PingNodeNetworkServiceRequest) (*PingNodeNetworkServiceResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ( RequestType_name = map[int32]string{ 0: "Setup", 1: "Teardown", } RequestType_value = map[string]int32{ "Setup": 0, "Teardown": 1, } )
Enum value maps for RequestType.
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 (x *ConfigureContainerNetworkingRequest) GetRequestType() RequestType
func (*ConfigureContainerNetworkingRequest) ProtoMessage ¶
func (*ConfigureContainerNetworkingRequest) ProtoMessage()
func (*ConfigureContainerNetworkingRequest) ProtoReflect ¶
func (x *ConfigureContainerNetworkingRequest) ProtoReflect() protoreflect.Message
func (*ConfigureContainerNetworkingRequest) Reset ¶
func (x *ConfigureContainerNetworkingRequest) Reset()
func (*ConfigureContainerNetworkingRequest) String ¶
func (x *ConfigureContainerNetworkingRequest) String() 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 (x *ConfigureContainerNetworkingResponse) GetInterfaces() []*ContainerNetworkInterface
func (*ConfigureContainerNetworkingResponse) ProtoMessage ¶
func (*ConfigureContainerNetworkingResponse) ProtoMessage()
func (*ConfigureContainerNetworkingResponse) ProtoReflect ¶
func (x *ConfigureContainerNetworkingResponse) ProtoReflect() protoreflect.Message
func (*ConfigureContainerNetworkingResponse) Reset ¶
func (x *ConfigureContainerNetworkingResponse) Reset()
func (*ConfigureContainerNetworkingResponse) String ¶
func (x *ConfigureContainerNetworkingResponse) String() 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 (x *ConfigureNetworkingRequest) ProtoReflect() protoreflect.Message
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 (x *ConfigureNetworkingResponse) ProtoReflect() protoreflect.Message
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 (x *ContainerNetworkInterface) ProtoReflect() protoreflect.Message
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.
func NewNodeNetworkServiceClient ¶
func NewNodeNetworkServiceClient(cc grpc.ClientConnInterface) NodeNetworkServiceClient
type NodeNetworkServiceServer ¶
type NodeNetworkServiceServer interface { ConfigureNetworking(context.Context, *ConfigureNetworkingRequest) (*ConfigureNetworkingResponse, error) ConfigureContainerNetworking(context.Context, *ConfigureContainerNetworkingRequest) (*ConfigureContainerNetworkingResponse, error) PingNodeNetworkService(context.Context, *PingNodeNetworkServiceRequest) (*PingNodeNetworkServiceResponse, error) }
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 (x *PingNodeNetworkServiceRequest) ProtoReflect() protoreflect.Message
func (*PingNodeNetworkServiceRequest) Reset ¶
func (x *PingNodeNetworkServiceRequest) Reset()
func (*PingNodeNetworkServiceRequest) String ¶
func (x *PingNodeNetworkServiceRequest) String() 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 (x *PingNodeNetworkServiceResponse) ProtoReflect() protoreflect.Message
func (*PingNodeNetworkServiceResponse) Reset ¶
func (x *PingNodeNetworkServiceResponse) Reset()
func (*PingNodeNetworkServiceResponse) String ¶
func (x *PingNodeNetworkServiceResponse) String() string
type RequestType ¶
type RequestType int32
const ( RequestType_Setup RequestType = 0 RequestType_Teardown RequestType = 1 )
func (RequestType) Descriptor ¶
func (RequestType) Descriptor() protoreflect.EnumDescriptor
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 ¶
func (RequestType) Type() protoreflect.EnumType
type UnimplementedNodeNetworkServiceServer ¶
type UnimplementedNodeNetworkServiceServer struct { }
UnimplementedNodeNetworkServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedNodeNetworkServiceServer) ConfigureContainerNetworking ¶
func (*UnimplementedNodeNetworkServiceServer) ConfigureContainerNetworking(context.Context, *ConfigureContainerNetworkingRequest) (*ConfigureContainerNetworkingResponse, error)
func (*UnimplementedNodeNetworkServiceServer) ConfigureNetworking ¶
func (*UnimplementedNodeNetworkServiceServer) ConfigureNetworking(context.Context, *ConfigureNetworkingRequest) (*ConfigureNetworkingResponse, error)
func (*UnimplementedNodeNetworkServiceServer) PingNodeNetworkService ¶
func (*UnimplementedNodeNetworkServiceServer) PingNodeNetworkService(context.Context, *PingNodeNetworkServiceRequest) (*PingNodeNetworkServiceResponse, error)