Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTunnelServer(s grpc.ServiceRegistrar, srv TunnelServer)
- type Chunk
- type Empty
- type ForwardPortRequest
- func (*ForwardPortRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ForwardPortRequest) GetPort() string
- func (*ForwardPortRequest) ProtoMessage()
- func (x *ForwardPortRequest) ProtoReflect() protoreflect.Message
- func (x *ForwardPortRequest) Reset()
- func (x *ForwardPortRequest) String() string
- type ForwardPortResponse
- type LogLevel
- type LogMessage
- type Message
- type StopForwardPortRequest
- func (*StopForwardPortRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StopForwardPortRequest) GetPort() string
- func (*StopForwardPortRequest) ProtoMessage()
- func (x *StopForwardPortRequest) ProtoReflect() protoreflect.Message
- func (x *StopForwardPortRequest) Reset()
- func (x *StopForwardPortRequest) String() string
- type StopForwardPortResponse
- type TunnelClient
- type TunnelServer
- type Tunnel_GitCloneAndReadClient
- type Tunnel_GitCloneAndReadServer
- type Tunnel_ReadWorkspaceClient
- type Tunnel_ReadWorkspaceServer
- type UnimplementedTunnelServer
- func (UnimplementedTunnelServer) DockerCredentials(context.Context, *Message) (*Message, error)
- func (UnimplementedTunnelServer) ForwardPort(context.Context, *ForwardPortRequest) (*ForwardPortResponse, error)
- func (UnimplementedTunnelServer) GitCloneAndRead(*Empty, Tunnel_GitCloneAndReadServer) error
- func (UnimplementedTunnelServer) GitCredentials(context.Context, *Message) (*Message, error)
- func (UnimplementedTunnelServer) GitUser(context.Context, *Empty) (*Message, error)
- func (UnimplementedTunnelServer) Log(context.Context, *LogMessage) (*Empty, error)
- func (UnimplementedTunnelServer) Ping(context.Context, *Empty) (*Empty, error)
- func (UnimplementedTunnelServer) ReadWorkspace(*Empty, Tunnel_ReadWorkspaceServer) error
- func (UnimplementedTunnelServer) SendResult(context.Context, *Message) (*Empty, error)
- func (UnimplementedTunnelServer) StopForwardPort(context.Context, *StopForwardPortRequest) (*StopForwardPortResponse, error)
- type UnsafeTunnelServer
Constants ¶
const ( Tunnel_Ping_FullMethodName = "/tunnel.Tunnel/Ping" Tunnel_Log_FullMethodName = "/tunnel.Tunnel/Log" Tunnel_GitCloneAndRead_FullMethodName = "/tunnel.Tunnel/GitCloneAndRead" Tunnel_ReadWorkspace_FullMethodName = "/tunnel.Tunnel/ReadWorkspace" Tunnel_SendResult_FullMethodName = "/tunnel.Tunnel/SendResult" Tunnel_DockerCredentials_FullMethodName = "/tunnel.Tunnel/DockerCredentials" Tunnel_GitCredentials_FullMethodName = "/tunnel.Tunnel/GitCredentials" Tunnel_GitUser_FullMethodName = "/tunnel.Tunnel/GitUser" Tunnel_ForwardPort_FullMethodName = "/tunnel.Tunnel/ForwardPort" Tunnel_StopForwardPort_FullMethodName = "/tunnel.Tunnel/StopForwardPort" )
Variables ¶
var ( LogLevel_name = map[int32]string{ 0: "DEBUG", 1: "INFO", 2: "DONE", 3: "WARNING", 4: "ERROR", } LogLevel_value = map[string]int32{ "DEBUG": 0, "INFO": 1, "DONE": 2, "WARNING": 3, "ERROR": 4, } )
Enum value maps for LogLevel.
var File_tunnel_proto protoreflect.FileDescriptor
var Tunnel_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tunnel.Tunnel", HandlerType: (*TunnelServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _Tunnel_Ping_Handler, }, { MethodName: "Log", Handler: _Tunnel_Log_Handler, }, { MethodName: "SendResult", Handler: _Tunnel_SendResult_Handler, }, { MethodName: "DockerCredentials", Handler: _Tunnel_DockerCredentials_Handler, }, { MethodName: "GitCredentials", Handler: _Tunnel_GitCredentials_Handler, }, { MethodName: "GitUser", Handler: _Tunnel_GitUser_Handler, }, { MethodName: "ForwardPort", Handler: _Tunnel_ForwardPort_Handler, }, { MethodName: "StopForwardPort", Handler: _Tunnel_StopForwardPort_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GitCloneAndRead", Handler: _Tunnel_GitCloneAndRead_Handler, ServerStreams: true, }, { StreamName: "ReadWorkspace", Handler: _Tunnel_ReadWorkspace_Handler, ServerStreams: true, }, }, Metadata: "tunnel.proto", }
Tunnel_ServiceDesc is the grpc.ServiceDesc for Tunnel service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTunnelServer ¶
func RegisterTunnelServer(s grpc.ServiceRegistrar, srv TunnelServer)
Types ¶
type Chunk ¶
type Chunk struct { Content []byte `protobuf:"bytes,1,opt,name=Content,proto3" json:"Content,omitempty"` // contains filtered or unexported fields }
func (*Chunk) Descriptor
deprecated
func (*Chunk) GetContent ¶
func (*Chunk) ProtoMessage ¶
func (*Chunk) ProtoMessage()
func (*Chunk) ProtoReflect ¶
func (x *Chunk) ProtoReflect() protoreflect.Message
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type ForwardPortRequest ¶ added in v0.1.0
type ForwardPortRequest struct { Port string `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
func (*ForwardPortRequest) Descriptor
deprecated
added in
v0.1.0
func (*ForwardPortRequest) Descriptor() ([]byte, []int)
Deprecated: Use ForwardPortRequest.ProtoReflect.Descriptor instead.
func (*ForwardPortRequest) GetPort ¶ added in v0.1.0
func (x *ForwardPortRequest) GetPort() string
func (*ForwardPortRequest) ProtoMessage ¶ added in v0.1.0
func (*ForwardPortRequest) ProtoMessage()
func (*ForwardPortRequest) ProtoReflect ¶ added in v0.1.0
func (x *ForwardPortRequest) ProtoReflect() protoreflect.Message
func (*ForwardPortRequest) Reset ¶ added in v0.1.0
func (x *ForwardPortRequest) Reset()
func (*ForwardPortRequest) String ¶ added in v0.1.0
func (x *ForwardPortRequest) String() string
type ForwardPortResponse ¶ added in v0.1.0
type ForwardPortResponse struct {
// contains filtered or unexported fields
}
func (*ForwardPortResponse) Descriptor
deprecated
added in
v0.1.0
func (*ForwardPortResponse) Descriptor() ([]byte, []int)
Deprecated: Use ForwardPortResponse.ProtoReflect.Descriptor instead.
func (*ForwardPortResponse) ProtoMessage ¶ added in v0.1.0
func (*ForwardPortResponse) ProtoMessage()
func (*ForwardPortResponse) ProtoReflect ¶ added in v0.1.0
func (x *ForwardPortResponse) ProtoReflect() protoreflect.Message
func (*ForwardPortResponse) Reset ¶ added in v0.1.0
func (x *ForwardPortResponse) Reset()
func (*ForwardPortResponse) String ¶ added in v0.1.0
func (x *ForwardPortResponse) String() string
type LogLevel ¶
type LogLevel int32
func (LogLevel) Descriptor ¶
func (LogLevel) Descriptor() protoreflect.EnumDescriptor
func (LogLevel) EnumDescriptor
deprecated
func (LogLevel) Number ¶
func (x LogLevel) Number() protoreflect.EnumNumber
func (LogLevel) Type ¶
func (LogLevel) Type() protoreflect.EnumType
type LogMessage ¶
type LogMessage struct { LogLevel LogLevel `protobuf:"varint,1,opt,name=logLevel,proto3,enum=tunnel.LogLevel" json:"logLevel,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*LogMessage) Descriptor
deprecated
func (*LogMessage) Descriptor() ([]byte, []int)
Deprecated: Use LogMessage.ProtoReflect.Descriptor instead.
func (*LogMessage) GetLogLevel ¶
func (x *LogMessage) GetLogLevel() LogLevel
func (*LogMessage) GetMessage ¶
func (x *LogMessage) GetMessage() string
func (*LogMessage) ProtoMessage ¶
func (*LogMessage) ProtoMessage()
func (*LogMessage) ProtoReflect ¶
func (x *LogMessage) ProtoReflect() protoreflect.Message
func (*LogMessage) Reset ¶
func (x *LogMessage) Reset()
func (*LogMessage) String ¶
func (x *LogMessage) String() string
type Message ¶
type Message struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetMessage ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type StopForwardPortRequest ¶ added in v0.1.0
type StopForwardPortRequest struct { Port string `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
func (*StopForwardPortRequest) Descriptor
deprecated
added in
v0.1.0
func (*StopForwardPortRequest) Descriptor() ([]byte, []int)
Deprecated: Use StopForwardPortRequest.ProtoReflect.Descriptor instead.
func (*StopForwardPortRequest) GetPort ¶ added in v0.1.0
func (x *StopForwardPortRequest) GetPort() string
func (*StopForwardPortRequest) ProtoMessage ¶ added in v0.1.0
func (*StopForwardPortRequest) ProtoMessage()
func (*StopForwardPortRequest) ProtoReflect ¶ added in v0.1.0
func (x *StopForwardPortRequest) ProtoReflect() protoreflect.Message
func (*StopForwardPortRequest) Reset ¶ added in v0.1.0
func (x *StopForwardPortRequest) Reset()
func (*StopForwardPortRequest) String ¶ added in v0.1.0
func (x *StopForwardPortRequest) String() string
type StopForwardPortResponse ¶ added in v0.1.0
type StopForwardPortResponse struct {
// contains filtered or unexported fields
}
func (*StopForwardPortResponse) Descriptor
deprecated
added in
v0.1.0
func (*StopForwardPortResponse) Descriptor() ([]byte, []int)
Deprecated: Use StopForwardPortResponse.ProtoReflect.Descriptor instead.
func (*StopForwardPortResponse) ProtoMessage ¶ added in v0.1.0
func (*StopForwardPortResponse) ProtoMessage()
func (*StopForwardPortResponse) ProtoReflect ¶ added in v0.1.0
func (x *StopForwardPortResponse) ProtoReflect() protoreflect.Message
func (*StopForwardPortResponse) Reset ¶ added in v0.1.0
func (x *StopForwardPortResponse) Reset()
func (*StopForwardPortResponse) String ¶ added in v0.1.0
func (x *StopForwardPortResponse) String() string
type TunnelClient ¶
type TunnelClient interface { Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) Log(ctx context.Context, in *LogMessage, opts ...grpc.CallOption) (*Empty, error) GitCloneAndRead(ctx context.Context, in *Empty, opts ...grpc.CallOption) (Tunnel_GitCloneAndReadClient, error) ReadWorkspace(ctx context.Context, in *Empty, opts ...grpc.CallOption) (Tunnel_ReadWorkspaceClient, error) SendResult(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Empty, error) DockerCredentials(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error) GitCredentials(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error) GitUser(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Message, error) ForwardPort(ctx context.Context, in *ForwardPortRequest, opts ...grpc.CallOption) (*ForwardPortResponse, error) StopForwardPort(ctx context.Context, in *StopForwardPortRequest, opts ...grpc.CallOption) (*StopForwardPortResponse, error) }
TunnelClient is the client API for Tunnel 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.
func NewTunnelClient ¶
func NewTunnelClient(cc grpc.ClientConnInterface) TunnelClient
type TunnelServer ¶
type TunnelServer interface { Ping(context.Context, *Empty) (*Empty, error) Log(context.Context, *LogMessage) (*Empty, error) GitCloneAndRead(*Empty, Tunnel_GitCloneAndReadServer) error ReadWorkspace(*Empty, Tunnel_ReadWorkspaceServer) error SendResult(context.Context, *Message) (*Empty, error) DockerCredentials(context.Context, *Message) (*Message, error) GitCredentials(context.Context, *Message) (*Message, error) GitUser(context.Context, *Empty) (*Message, error) ForwardPort(context.Context, *ForwardPortRequest) (*ForwardPortResponse, error) StopForwardPort(context.Context, *StopForwardPortRequest) (*StopForwardPortResponse, error) // contains filtered or unexported methods }
TunnelServer is the server API for Tunnel service. All implementations must embed UnimplementedTunnelServer for forward compatibility
type Tunnel_GitCloneAndReadClient ¶ added in v0.3.0
type Tunnel_GitCloneAndReadClient interface { Recv() (*Chunk, error) grpc.ClientStream }
type Tunnel_GitCloneAndReadServer ¶ added in v0.3.0
type Tunnel_GitCloneAndReadServer interface { Send(*Chunk) error grpc.ServerStream }
type Tunnel_ReadWorkspaceClient ¶
type Tunnel_ReadWorkspaceClient interface { Recv() (*Chunk, error) grpc.ClientStream }
type Tunnel_ReadWorkspaceServer ¶
type Tunnel_ReadWorkspaceServer interface { Send(*Chunk) error grpc.ServerStream }
type UnimplementedTunnelServer ¶
type UnimplementedTunnelServer struct { }
UnimplementedTunnelServer must be embedded to have forward compatible implementations.
func (UnimplementedTunnelServer) DockerCredentials ¶
func (UnimplementedTunnelServer) ForwardPort ¶ added in v0.1.0
func (UnimplementedTunnelServer) ForwardPort(context.Context, *ForwardPortRequest) (*ForwardPortResponse, error)
func (UnimplementedTunnelServer) GitCloneAndRead ¶ added in v0.3.0
func (UnimplementedTunnelServer) GitCloneAndRead(*Empty, Tunnel_GitCloneAndReadServer) error
func (UnimplementedTunnelServer) GitCredentials ¶
func (UnimplementedTunnelServer) Log ¶
func (UnimplementedTunnelServer) Log(context.Context, *LogMessage) (*Empty, error)
func (UnimplementedTunnelServer) ReadWorkspace ¶
func (UnimplementedTunnelServer) ReadWorkspace(*Empty, Tunnel_ReadWorkspaceServer) error
func (UnimplementedTunnelServer) SendResult ¶
func (UnimplementedTunnelServer) StopForwardPort ¶ added in v0.1.0
func (UnimplementedTunnelServer) StopForwardPort(context.Context, *StopForwardPortRequest) (*StopForwardPortResponse, error)
type UnsafeTunnelServer ¶
type UnsafeTunnelServer interface {
// contains filtered or unexported methods
}
UnsafeTunnelServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TunnelServer will result in compilation errors.