session

package
v0.16.0-llm.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const InstrumentationLibrary = "dagger.io/engine.session"

Variables

View Source
var (
	ErrInvalidLengthGitcredential        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGitcredential          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGitcredential = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthH2C        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowH2C          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupH2C = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTerminal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTerminal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTerminal = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ErrorInfo_ErrorType_name = map[int32]string{
	0: "UNKNOWN",
	1: "INVALID_REQUEST",
	2: "NO_GIT",
	3: "TIMEOUT",
	4: "CREDENTIAL_RETRIEVAL_FAILED",
}
View Source
var ErrorInfo_ErrorType_value = map[string]int32{
	"UNKNOWN":                     0,
	"INVALID_REQUEST":             1,
	"NO_GIT":                      2,
	"TIMEOUT":                     3,
	"CREDENTIAL_RETRIEVAL_FAILED": 4,
}

Functions

func RegisterGitCredentialServer added in v0.14.0

func RegisterGitCredentialServer(s *grpc.Server, srv GitCredentialServer)

func RegisterTerminalServer added in v0.12.0

func RegisterTerminalServer(s *grpc.Server, srv TerminalServer)

func RegisterTunnelListenerServer

func RegisterTunnelListenerServer(s *grpc.Server, srv TunnelListenerServer)

Types

type CredentialInfo added in v0.14.0

type CredentialInfo struct {
	Protocol string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Host     string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
}

func (*CredentialInfo) Descriptor added in v0.14.0

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

func (*CredentialInfo) Equal added in v0.14.0

func (this *CredentialInfo) Equal(that interface{}) bool

func (*CredentialInfo) GetHost added in v0.14.0

func (m *CredentialInfo) GetHost() string

func (*CredentialInfo) GetPassword added in v0.14.0

func (m *CredentialInfo) GetPassword() string

func (*CredentialInfo) GetProtocol added in v0.14.0

func (m *CredentialInfo) GetProtocol() string

func (*CredentialInfo) GetUsername added in v0.14.0

func (m *CredentialInfo) GetUsername() string

func (*CredentialInfo) GoString added in v0.14.0

func (this *CredentialInfo) GoString() string

func (*CredentialInfo) Marshal added in v0.14.0

func (m *CredentialInfo) Marshal() (dAtA []byte, err error)

func (*CredentialInfo) MarshalTo added in v0.14.0

func (m *CredentialInfo) MarshalTo(dAtA []byte) (int, error)

func (*CredentialInfo) MarshalToSizedBuffer added in v0.14.0

func (m *CredentialInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CredentialInfo) ProtoMessage added in v0.14.0

func (*CredentialInfo) ProtoMessage()

func (*CredentialInfo) Reset added in v0.14.0

func (m *CredentialInfo) Reset()

func (*CredentialInfo) Size added in v0.14.0

func (m *CredentialInfo) Size() (n int)

func (*CredentialInfo) String added in v0.14.0

func (this *CredentialInfo) String() string

func (*CredentialInfo) Unmarshal added in v0.14.0

func (m *CredentialInfo) Unmarshal(dAtA []byte) error

func (*CredentialInfo) XXX_DiscardUnknown added in v0.14.0

func (m *CredentialInfo) XXX_DiscardUnknown()

func (*CredentialInfo) XXX_Marshal added in v0.14.0

func (m *CredentialInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CredentialInfo) XXX_Merge added in v0.14.0

func (m *CredentialInfo) XXX_Merge(src proto.Message)

func (*CredentialInfo) XXX_Size added in v0.14.0

func (m *CredentialInfo) XXX_Size() int

func (*CredentialInfo) XXX_Unmarshal added in v0.14.0

func (m *CredentialInfo) XXX_Unmarshal(b []byte) error

type ErrorInfo added in v0.14.0

type ErrorInfo struct {
	Type    ErrorInfo_ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=ErrorInfo_ErrorType" json:"type,omitempty"`
	Message string              `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

func (*ErrorInfo) Descriptor added in v0.14.0

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

func (*ErrorInfo) Equal added in v0.14.0

func (this *ErrorInfo) Equal(that interface{}) bool

func (*ErrorInfo) GetMessage added in v0.14.0

func (m *ErrorInfo) GetMessage() string

func (*ErrorInfo) GetType added in v0.14.0

func (m *ErrorInfo) GetType() ErrorInfo_ErrorType

func (*ErrorInfo) GoString added in v0.14.0

func (this *ErrorInfo) GoString() string

func (*ErrorInfo) Marshal added in v0.14.0

func (m *ErrorInfo) Marshal() (dAtA []byte, err error)

func (*ErrorInfo) MarshalTo added in v0.14.0

func (m *ErrorInfo) MarshalTo(dAtA []byte) (int, error)

func (*ErrorInfo) MarshalToSizedBuffer added in v0.14.0

func (m *ErrorInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ErrorInfo) ProtoMessage added in v0.14.0

func (*ErrorInfo) ProtoMessage()

func (*ErrorInfo) Reset added in v0.14.0

func (m *ErrorInfo) Reset()

func (*ErrorInfo) Size added in v0.14.0

func (m *ErrorInfo) Size() (n int)

func (*ErrorInfo) String added in v0.14.0

func (this *ErrorInfo) String() string

func (*ErrorInfo) Unmarshal added in v0.14.0

func (m *ErrorInfo) Unmarshal(dAtA []byte) error

func (*ErrorInfo) XXX_DiscardUnknown added in v0.14.0

func (m *ErrorInfo) XXX_DiscardUnknown()

func (*ErrorInfo) XXX_Marshal added in v0.14.0

func (m *ErrorInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ErrorInfo) XXX_Merge added in v0.14.0

func (m *ErrorInfo) XXX_Merge(src proto.Message)

func (*ErrorInfo) XXX_Size added in v0.14.0

func (m *ErrorInfo) XXX_Size() int

func (*ErrorInfo) XXX_Unmarshal added in v0.14.0

func (m *ErrorInfo) XXX_Unmarshal(b []byte) error

type ErrorInfo_ErrorType added in v0.14.0

type ErrorInfo_ErrorType int32
const (
	UNKNOWN                     ErrorInfo_ErrorType = 0
	INVALID_REQUEST             ErrorInfo_ErrorType = 1
	NO_GIT                      ErrorInfo_ErrorType = 2
	TIMEOUT                     ErrorInfo_ErrorType = 3
	CREDENTIAL_RETRIEVAL_FAILED ErrorInfo_ErrorType = 4
)

func (ErrorInfo_ErrorType) EnumDescriptor added in v0.14.0

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

func (ErrorInfo_ErrorType) String added in v0.14.0

func (x ErrorInfo_ErrorType) String() string

type GitCredentialAttachable added in v0.14.0

type GitCredentialAttachable struct {
	UnimplementedGitCredentialServer
	// contains filtered or unexported fields
}

func NewGitCredentialAttachable added in v0.14.0

func NewGitCredentialAttachable(rootCtx context.Context) GitCredentialAttachable

func (GitCredentialAttachable) GetCredential added in v0.14.0

GetCredential retrieves Git credentials for the given request using the local Git credential system. The function has a timeout of 30 seconds and ensures thread-safe execution.

It follows Git's credential helper protocol and error handling: - If Git can't find or execute a helper: CREDENTIAL_RETRIEVAL_FAILED - If a helper returns invalid format or no credentials: Git handles it as a failure (CREDENTIAL_RETRIEVAL_FAILED) - If the command times out: TIMEOUT - If Git is not installed: NO_GIT - If the request is invalid: INVALID_REQUEST

func (GitCredentialAttachable) Register added in v0.14.0

func (s GitCredentialAttachable) Register(srv *grpc.Server)

type GitCredentialClient added in v0.14.0

type GitCredentialClient interface {
	GetCredential(ctx context.Context, in *GitCredentialRequest, opts ...grpc.CallOption) (*GitCredentialResponse, error)
}

GitCredentialClient is the client API for GitCredential service.

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

func NewGitCredentialClient added in v0.14.0

func NewGitCredentialClient(cc *grpc.ClientConn) GitCredentialClient

type GitCredentialRequest added in v0.14.0

type GitCredentialRequest struct {
	Protocol string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Host     string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	Path     string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
}

func (*GitCredentialRequest) Descriptor added in v0.14.0

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

func (*GitCredentialRequest) Equal added in v0.14.0

func (this *GitCredentialRequest) Equal(that interface{}) bool

func (*GitCredentialRequest) GetHost added in v0.14.0

func (m *GitCredentialRequest) GetHost() string

func (*GitCredentialRequest) GetPath added in v0.14.0

func (m *GitCredentialRequest) GetPath() string

func (*GitCredentialRequest) GetProtocol added in v0.14.0

func (m *GitCredentialRequest) GetProtocol() string

func (*GitCredentialRequest) GoString added in v0.14.0

func (this *GitCredentialRequest) GoString() string

func (*GitCredentialRequest) Marshal added in v0.14.0

func (m *GitCredentialRequest) Marshal() (dAtA []byte, err error)

func (*GitCredentialRequest) MarshalTo added in v0.14.0

func (m *GitCredentialRequest) MarshalTo(dAtA []byte) (int, error)

func (*GitCredentialRequest) MarshalToSizedBuffer added in v0.14.0

func (m *GitCredentialRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitCredentialRequest) ProtoMessage added in v0.14.0

func (*GitCredentialRequest) ProtoMessage()

func (*GitCredentialRequest) Reset added in v0.14.0

func (m *GitCredentialRequest) Reset()

func (*GitCredentialRequest) Size added in v0.14.0

func (m *GitCredentialRequest) Size() (n int)

func (*GitCredentialRequest) String added in v0.14.0

func (this *GitCredentialRequest) String() string

func (*GitCredentialRequest) Unmarshal added in v0.14.0

func (m *GitCredentialRequest) Unmarshal(dAtA []byte) error

func (*GitCredentialRequest) XXX_DiscardUnknown added in v0.14.0

func (m *GitCredentialRequest) XXX_DiscardUnknown()

func (*GitCredentialRequest) XXX_Marshal added in v0.14.0

func (m *GitCredentialRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GitCredentialRequest) XXX_Merge added in v0.14.0

func (m *GitCredentialRequest) XXX_Merge(src proto.Message)

func (*GitCredentialRequest) XXX_Size added in v0.14.0

func (m *GitCredentialRequest) XXX_Size() int

func (*GitCredentialRequest) XXX_Unmarshal added in v0.14.0

func (m *GitCredentialRequest) XXX_Unmarshal(b []byte) error

type GitCredentialResponse added in v0.14.0

type GitCredentialResponse struct {
	// Types that are valid to be assigned to Result:
	//	*GitCredentialResponse_Credential
	//	*GitCredentialResponse_Error
	Result isGitCredentialResponse_Result `protobuf_oneof:"result"`
}

func (*GitCredentialResponse) Descriptor added in v0.14.0

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

func (*GitCredentialResponse) Equal added in v0.14.0

func (this *GitCredentialResponse) Equal(that interface{}) bool

func (*GitCredentialResponse) GetCredential added in v0.14.0

func (m *GitCredentialResponse) GetCredential() *CredentialInfo

func (*GitCredentialResponse) GetError added in v0.14.0

func (m *GitCredentialResponse) GetError() *ErrorInfo

func (*GitCredentialResponse) GetResult added in v0.14.0

func (m *GitCredentialResponse) GetResult() isGitCredentialResponse_Result

func (*GitCredentialResponse) GoString added in v0.14.0

func (this *GitCredentialResponse) GoString() string

func (*GitCredentialResponse) Marshal added in v0.14.0

func (m *GitCredentialResponse) Marshal() (dAtA []byte, err error)

func (*GitCredentialResponse) MarshalTo added in v0.14.0

func (m *GitCredentialResponse) MarshalTo(dAtA []byte) (int, error)

func (*GitCredentialResponse) MarshalToSizedBuffer added in v0.14.0

func (m *GitCredentialResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitCredentialResponse) ProtoMessage added in v0.14.0

func (*GitCredentialResponse) ProtoMessage()

func (*GitCredentialResponse) Reset added in v0.14.0

func (m *GitCredentialResponse) Reset()

func (*GitCredentialResponse) Size added in v0.14.0

func (m *GitCredentialResponse) Size() (n int)

func (*GitCredentialResponse) String added in v0.14.0

func (this *GitCredentialResponse) String() string

func (*GitCredentialResponse) Unmarshal added in v0.14.0

func (m *GitCredentialResponse) Unmarshal(dAtA []byte) error

func (*GitCredentialResponse) XXX_DiscardUnknown added in v0.14.0

func (m *GitCredentialResponse) XXX_DiscardUnknown()

func (*GitCredentialResponse) XXX_Marshal added in v0.14.0

func (m *GitCredentialResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GitCredentialResponse) XXX_Merge added in v0.14.0

func (m *GitCredentialResponse) XXX_Merge(src proto.Message)

func (*GitCredentialResponse) XXX_OneofWrappers added in v0.14.0

func (*GitCredentialResponse) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*GitCredentialResponse) XXX_Size added in v0.14.0

func (m *GitCredentialResponse) XXX_Size() int

func (*GitCredentialResponse) XXX_Unmarshal added in v0.14.0

func (m *GitCredentialResponse) XXX_Unmarshal(b []byte) error

type GitCredentialResponse_Credential added in v0.14.0

type GitCredentialResponse_Credential struct {
	Credential *CredentialInfo `protobuf:"bytes,1,opt,name=credential,proto3,oneof" json:"credential,omitempty"`
}

func (*GitCredentialResponse_Credential) Equal added in v0.14.0

func (this *GitCredentialResponse_Credential) Equal(that interface{}) bool

func (*GitCredentialResponse_Credential) GoString added in v0.14.0

func (this *GitCredentialResponse_Credential) GoString() string

func (*GitCredentialResponse_Credential) MarshalTo added in v0.14.0

func (m *GitCredentialResponse_Credential) MarshalTo(dAtA []byte) (int, error)

func (*GitCredentialResponse_Credential) MarshalToSizedBuffer added in v0.14.0

func (m *GitCredentialResponse_Credential) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitCredentialResponse_Credential) Size added in v0.14.0

func (m *GitCredentialResponse_Credential) Size() (n int)

func (*GitCredentialResponse_Credential) String added in v0.14.0

type GitCredentialResponse_Error added in v0.14.0

type GitCredentialResponse_Error struct {
	Error *ErrorInfo `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"`
}

func (*GitCredentialResponse_Error) Equal added in v0.14.0

func (this *GitCredentialResponse_Error) Equal(that interface{}) bool

func (*GitCredentialResponse_Error) GoString added in v0.14.0

func (this *GitCredentialResponse_Error) GoString() string

func (*GitCredentialResponse_Error) MarshalTo added in v0.14.0

func (m *GitCredentialResponse_Error) MarshalTo(dAtA []byte) (int, error)

func (*GitCredentialResponse_Error) MarshalToSizedBuffer added in v0.14.0

func (m *GitCredentialResponse_Error) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GitCredentialResponse_Error) Size added in v0.14.0

func (m *GitCredentialResponse_Error) Size() (n int)

func (*GitCredentialResponse_Error) String added in v0.14.0

func (this *GitCredentialResponse_Error) String() string

type GitCredentialServer added in v0.14.0

type GitCredentialServer interface {
	GetCredential(context.Context, *GitCredentialRequest) (*GitCredentialResponse, error)
}

GitCredentialServer is the server API for GitCredential service.

type ListenRequest

type ListenRequest struct {
	Addr     string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"`
	ConnId   string `protobuf:"bytes,3,opt,name=connId,proto3" json:"connId,omitempty"`
	Data     []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	Close    bool   `protobuf:"varint,5,opt,name=close,proto3" json:"close,omitempty"`
}

func (*ListenRequest) Descriptor

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

func (*ListenRequest) Equal

func (this *ListenRequest) Equal(that interface{}) bool

func (*ListenRequest) GetAddr

func (m *ListenRequest) GetAddr() string

func (*ListenRequest) GetClose

func (m *ListenRequest) GetClose() bool

func (*ListenRequest) GetConnId

func (m *ListenRequest) GetConnId() string

func (*ListenRequest) GetData

func (m *ListenRequest) GetData() []byte

func (*ListenRequest) GetProtocol

func (m *ListenRequest) GetProtocol() string

func (*ListenRequest) GoString

func (this *ListenRequest) GoString() string

func (*ListenRequest) Marshal

func (m *ListenRequest) Marshal() (dAtA []byte, err error)

func (*ListenRequest) MarshalTo

func (m *ListenRequest) MarshalTo(dAtA []byte) (int, error)

func (*ListenRequest) MarshalToSizedBuffer

func (m *ListenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListenRequest) ProtoMessage

func (*ListenRequest) ProtoMessage()

func (*ListenRequest) Reset

func (m *ListenRequest) Reset()

func (*ListenRequest) Size

func (m *ListenRequest) Size() (n int)

func (*ListenRequest) String

func (this *ListenRequest) String() string

func (*ListenRequest) Unmarshal

func (m *ListenRequest) Unmarshal(dAtA []byte) error

func (*ListenRequest) XXX_DiscardUnknown

func (m *ListenRequest) XXX_DiscardUnknown()

func (*ListenRequest) XXX_Marshal

func (m *ListenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListenRequest) XXX_Merge

func (m *ListenRequest) XXX_Merge(src proto.Message)

func (*ListenRequest) XXX_Size

func (m *ListenRequest) XXX_Size() int

func (*ListenRequest) XXX_Unmarshal

func (m *ListenRequest) XXX_Unmarshal(b []byte) error

type ListenResponse

type ListenResponse struct {
	Addr   string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	ConnId string `protobuf:"bytes,2,opt,name=connId,proto3" json:"connId,omitempty"`
	Data   []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	Close  bool   `protobuf:"varint,4,opt,name=close,proto3" json:"close,omitempty"`
}

func (*ListenResponse) Descriptor

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

func (*ListenResponse) Equal

func (this *ListenResponse) Equal(that interface{}) bool

func (*ListenResponse) GetAddr

func (m *ListenResponse) GetAddr() string

func (*ListenResponse) GetClose

func (m *ListenResponse) GetClose() bool

func (*ListenResponse) GetConnId

func (m *ListenResponse) GetConnId() string

func (*ListenResponse) GetData

func (m *ListenResponse) GetData() []byte

func (*ListenResponse) GoString

func (this *ListenResponse) GoString() string

func (*ListenResponse) Marshal

func (m *ListenResponse) Marshal() (dAtA []byte, err error)

func (*ListenResponse) MarshalTo

func (m *ListenResponse) MarshalTo(dAtA []byte) (int, error)

func (*ListenResponse) MarshalToSizedBuffer

func (m *ListenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListenResponse) ProtoMessage

func (*ListenResponse) ProtoMessage()

func (*ListenResponse) Reset

func (m *ListenResponse) Reset()

func (*ListenResponse) Size

func (m *ListenResponse) Size() (n int)

func (*ListenResponse) String

func (this *ListenResponse) String() string

func (*ListenResponse) Unmarshal

func (m *ListenResponse) Unmarshal(dAtA []byte) error

func (*ListenResponse) XXX_DiscardUnknown

func (m *ListenResponse) XXX_DiscardUnknown()

func (*ListenResponse) XXX_Marshal

func (m *ListenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListenResponse) XXX_Merge

func (m *ListenResponse) XXX_Merge(src proto.Message)

func (*ListenResponse) XXX_Size

func (m *ListenResponse) XXX_Size() int

func (*ListenResponse) XXX_Unmarshal

func (m *ListenResponse) XXX_Unmarshal(b []byte) error

type Resize added in v0.12.0

type Resize struct {
	Width  int32 `protobuf:"varint,1,opt,name=Width,proto3" json:"Width,omitempty"`
	Height int32 `protobuf:"varint,2,opt,name=Height,proto3" json:"Height,omitempty"`
}

func (*Resize) Descriptor added in v0.12.0

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

func (*Resize) Equal added in v0.12.0

func (this *Resize) Equal(that interface{}) bool

func (*Resize) GetHeight added in v0.12.0

func (m *Resize) GetHeight() int32

func (*Resize) GetWidth added in v0.12.0

func (m *Resize) GetWidth() int32

func (*Resize) GoString added in v0.12.0

func (this *Resize) GoString() string

func (*Resize) Marshal added in v0.12.0

func (m *Resize) Marshal() (dAtA []byte, err error)

func (*Resize) MarshalTo added in v0.12.0

func (m *Resize) MarshalTo(dAtA []byte) (int, error)

func (*Resize) MarshalToSizedBuffer added in v0.12.0

func (m *Resize) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Resize) ProtoMessage added in v0.12.0

func (*Resize) ProtoMessage()

func (*Resize) Reset added in v0.12.0

func (m *Resize) Reset()

func (*Resize) Size added in v0.12.0

func (m *Resize) Size() (n int)

func (*Resize) String added in v0.12.0

func (this *Resize) String() string

func (*Resize) Unmarshal added in v0.12.0

func (m *Resize) Unmarshal(dAtA []byte) error

func (*Resize) XXX_DiscardUnknown added in v0.12.0

func (m *Resize) XXX_DiscardUnknown()

func (*Resize) XXX_Marshal added in v0.12.0

func (m *Resize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Resize) XXX_Merge added in v0.12.0

func (m *Resize) XXX_Merge(src proto.Message)

func (*Resize) XXX_Size added in v0.12.0

func (m *Resize) XXX_Size() int

func (*Resize) XXX_Unmarshal added in v0.12.0

func (m *Resize) XXX_Unmarshal(b []byte) error

type SessionRequest added in v0.12.0

type SessionRequest struct {
	// Types that are valid to be assigned to Msg:
	//	*SessionRequest_Stdout
	//	*SessionRequest_Stderr
	//	*SessionRequest_Exit
	Msg isSessionRequest_Msg `protobuf_oneof:"msg"`
}

func (*SessionRequest) Descriptor added in v0.12.0

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

func (*SessionRequest) Equal added in v0.12.0

func (this *SessionRequest) Equal(that interface{}) bool

func (*SessionRequest) GetExit added in v0.12.0

func (m *SessionRequest) GetExit() int32

func (*SessionRequest) GetMsg added in v0.12.0

func (m *SessionRequest) GetMsg() isSessionRequest_Msg

func (*SessionRequest) GetStderr added in v0.12.0

func (m *SessionRequest) GetStderr() []byte

func (*SessionRequest) GetStdout added in v0.12.0

func (m *SessionRequest) GetStdout() []byte

func (*SessionRequest) GoString added in v0.12.0

func (this *SessionRequest) GoString() string

func (*SessionRequest) Marshal added in v0.12.0

func (m *SessionRequest) Marshal() (dAtA []byte, err error)

func (*SessionRequest) MarshalTo added in v0.12.0

func (m *SessionRequest) MarshalTo(dAtA []byte) (int, error)

func (*SessionRequest) MarshalToSizedBuffer added in v0.12.0

func (m *SessionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SessionRequest) ProtoMessage added in v0.12.0

func (*SessionRequest) ProtoMessage()

func (*SessionRequest) Reset added in v0.12.0

func (m *SessionRequest) Reset()

func (*SessionRequest) Size added in v0.12.0

func (m *SessionRequest) Size() (n int)

func (*SessionRequest) String added in v0.12.0

func (this *SessionRequest) String() string

func (*SessionRequest) Unmarshal added in v0.12.0

func (m *SessionRequest) Unmarshal(dAtA []byte) error

func (*SessionRequest) XXX_DiscardUnknown added in v0.12.0

func (m *SessionRequest) XXX_DiscardUnknown()

func (*SessionRequest) XXX_Marshal added in v0.12.0

func (m *SessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SessionRequest) XXX_Merge added in v0.12.0

func (m *SessionRequest) XXX_Merge(src proto.Message)

func (*SessionRequest) XXX_OneofWrappers added in v0.12.0

func (*SessionRequest) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*SessionRequest) XXX_Size added in v0.12.0

func (m *SessionRequest) XXX_Size() int

func (*SessionRequest) XXX_Unmarshal added in v0.12.0

func (m *SessionRequest) XXX_Unmarshal(b []byte) error

type SessionRequest_Exit added in v0.12.0

type SessionRequest_Exit struct {
	Exit int32 `protobuf:"varint,3,opt,name=exit,proto3,oneof" json:"exit,omitempty"`
}

func (*SessionRequest_Exit) Equal added in v0.12.0

func (this *SessionRequest_Exit) Equal(that interface{}) bool

func (*SessionRequest_Exit) GoString added in v0.12.0

func (this *SessionRequest_Exit) GoString() string

func (*SessionRequest_Exit) MarshalTo added in v0.12.0

func (m *SessionRequest_Exit) MarshalTo(dAtA []byte) (int, error)

func (*SessionRequest_Exit) MarshalToSizedBuffer added in v0.12.0

func (m *SessionRequest_Exit) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SessionRequest_Exit) Size added in v0.12.0

func (m *SessionRequest_Exit) Size() (n int)

func (*SessionRequest_Exit) String added in v0.12.0

func (this *SessionRequest_Exit) String() string

type SessionRequest_Stderr added in v0.12.0

type SessionRequest_Stderr struct {
	Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3,oneof" json:"stderr,omitempty"`
}

func (*SessionRequest_Stderr) Equal added in v0.12.0

func (this *SessionRequest_Stderr) Equal(that interface{}) bool

func (*SessionRequest_Stderr) GoString added in v0.12.0

func (this *SessionRequest_Stderr) GoString() string

func (*SessionRequest_Stderr) MarshalTo added in v0.12.0

func (m *SessionRequest_Stderr) MarshalTo(dAtA []byte) (int, error)

func (*SessionRequest_Stderr) MarshalToSizedBuffer added in v0.12.0

func (m *SessionRequest_Stderr) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SessionRequest_Stderr) Size added in v0.12.0

func (m *SessionRequest_Stderr) Size() (n int)

func (*SessionRequest_Stderr) String added in v0.12.0

func (this *SessionRequest_Stderr) String() string

type SessionRequest_Stdout added in v0.12.0

type SessionRequest_Stdout struct {
	Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3,oneof" json:"stdout,omitempty"`
}

func (*SessionRequest_Stdout) Equal added in v0.12.0

func (this *SessionRequest_Stdout) Equal(that interface{}) bool

func (*SessionRequest_Stdout) GoString added in v0.12.0

func (this *SessionRequest_Stdout) GoString() string

func (*SessionRequest_Stdout) MarshalTo added in v0.12.0

func (m *SessionRequest_Stdout) MarshalTo(dAtA []byte) (int, error)

func (*SessionRequest_Stdout) MarshalToSizedBuffer added in v0.12.0

func (m *SessionRequest_Stdout) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SessionRequest_Stdout) Size added in v0.12.0

func (m *SessionRequest_Stdout) Size() (n int)

func (*SessionRequest_Stdout) String added in v0.12.0

func (this *SessionRequest_Stdout) String() string

type SessionResponse added in v0.12.0

type SessionResponse struct {
	// Types that are valid to be assigned to Msg:
	//	*SessionResponse_Stdin
	//	*SessionResponse_Resize
	Msg isSessionResponse_Msg `protobuf_oneof:"msg"`
}

func (*SessionResponse) Descriptor added in v0.12.0

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

func (*SessionResponse) Equal added in v0.12.0

func (this *SessionResponse) Equal(that interface{}) bool

func (*SessionResponse) GetMsg added in v0.12.0

func (m *SessionResponse) GetMsg() isSessionResponse_Msg

func (*SessionResponse) GetResize added in v0.12.0

func (m *SessionResponse) GetResize() *Resize

func (*SessionResponse) GetStdin added in v0.12.0

func (m *SessionResponse) GetStdin() []byte

func (*SessionResponse) GoString added in v0.12.0

func (this *SessionResponse) GoString() string

func (*SessionResponse) Marshal added in v0.12.0

func (m *SessionResponse) Marshal() (dAtA []byte, err error)

func (*SessionResponse) MarshalTo added in v0.12.0

func (m *SessionResponse) MarshalTo(dAtA []byte) (int, error)

func (*SessionResponse) MarshalToSizedBuffer added in v0.12.0

func (m *SessionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SessionResponse) ProtoMessage added in v0.12.0

func (*SessionResponse) ProtoMessage()

func (*SessionResponse) Reset added in v0.12.0

func (m *SessionResponse) Reset()

func (*SessionResponse) Size added in v0.12.0

func (m *SessionResponse) Size() (n int)

func (*SessionResponse) String added in v0.12.0

func (this *SessionResponse) String() string

func (*SessionResponse) Unmarshal added in v0.12.0

func (m *SessionResponse) Unmarshal(dAtA []byte) error

func (*SessionResponse) XXX_DiscardUnknown added in v0.12.0

func (m *SessionResponse) XXX_DiscardUnknown()

func (*SessionResponse) XXX_Marshal added in v0.12.0

func (m *SessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SessionResponse) XXX_Merge added in v0.12.0

func (m *SessionResponse) XXX_Merge(src proto.Message)

func (*SessionResponse) XXX_OneofWrappers added in v0.12.0

func (*SessionResponse) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*SessionResponse) XXX_Size added in v0.12.0

func (m *SessionResponse) XXX_Size() int

func (*SessionResponse) XXX_Unmarshal added in v0.12.0

func (m *SessionResponse) XXX_Unmarshal(b []byte) error

type SessionResponse_Resize added in v0.12.0

type SessionResponse_Resize struct {
	Resize *Resize `protobuf:"bytes,2,opt,name=resize,proto3,oneof" json:"resize,omitempty"`
}

func (*SessionResponse_Resize) Equal added in v0.12.0

func (this *SessionResponse_Resize) Equal(that interface{}) bool

func (*SessionResponse_Resize) GoString added in v0.12.0

func (this *SessionResponse_Resize) GoString() string

func (*SessionResponse_Resize) MarshalTo added in v0.12.0

func (m *SessionResponse_Resize) MarshalTo(dAtA []byte) (int, error)

func (*SessionResponse_Resize) MarshalToSizedBuffer added in v0.12.0

func (m *SessionResponse_Resize) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SessionResponse_Resize) Size added in v0.12.0

func (m *SessionResponse_Resize) Size() (n int)

func (*SessionResponse_Resize) String added in v0.12.0

func (this *SessionResponse_Resize) String() string

type SessionResponse_Stdin added in v0.12.0

type SessionResponse_Stdin struct {
	Stdin []byte `protobuf:"bytes,1,opt,name=stdin,proto3,oneof" json:"stdin,omitempty"`
}

func (*SessionResponse_Stdin) Equal added in v0.12.0

func (this *SessionResponse_Stdin) Equal(that interface{}) bool

func (*SessionResponse_Stdin) GoString added in v0.12.0

func (this *SessionResponse_Stdin) GoString() string

func (*SessionResponse_Stdin) MarshalTo added in v0.12.0

func (m *SessionResponse_Stdin) MarshalTo(dAtA []byte) (int, error)

func (*SessionResponse_Stdin) MarshalToSizedBuffer added in v0.12.0

func (m *SessionResponse_Stdin) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SessionResponse_Stdin) Size added in v0.12.0

func (m *SessionResponse_Stdin) Size() (n int)

func (*SessionResponse_Stdin) String added in v0.12.0

func (this *SessionResponse_Stdin) String() string

type TerminalAttachable added in v0.12.0

type TerminalAttachable struct {
	UnimplementedTerminalServer
	// contains filtered or unexported fields
}

func NewTerminalAttachable added in v0.12.0

func NewTerminalAttachable(
	rootCtx context.Context,
	withTerminal WithTerminalFunc,
) TerminalAttachable

func (TerminalAttachable) Register added in v0.12.0

func (s TerminalAttachable) Register(srv *grpc.Server)

func (TerminalAttachable) Session added in v0.12.0

type TerminalClient added in v0.12.0

type TerminalClient interface {
	Session(ctx context.Context, opts ...grpc.CallOption) (Terminal_SessionClient, error)
}

TerminalClient is the client API for Terminal service.

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

func NewTerminalClient added in v0.12.0

func NewTerminalClient(cc *grpc.ClientConn) TerminalClient

type TerminalServer added in v0.12.0

type TerminalServer interface {
	Session(Terminal_SessionServer) error
}

TerminalServer is the server API for Terminal service.

type Terminal_SessionClient added in v0.12.0

type Terminal_SessionClient interface {
	Send(*SessionRequest) error
	Recv() (*SessionResponse, error)
	grpc.ClientStream
}

type Terminal_SessionServer added in v0.12.0

type Terminal_SessionServer interface {
	Send(*SessionResponse) error
	Recv() (*SessionRequest, error)
	grpc.ServerStream
}

type TunnelListenerAttachable

type TunnelListenerAttachable struct {
	UnimplementedTunnelListenerServer
	// contains filtered or unexported fields
}

func NewTunnelListenerAttachable

func NewTunnelListenerAttachable(rootCtx context.Context) TunnelListenerAttachable

func (TunnelListenerAttachable) Listen

func (TunnelListenerAttachable) Register

func (s TunnelListenerAttachable) Register(srv *grpc.Server)

type TunnelListenerClient

type TunnelListenerClient interface {
	Listen(ctx context.Context, opts ...grpc.CallOption) (TunnelListener_ListenClient, error)
}

TunnelListenerClient is the client API for TunnelListener service.

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

func NewTunnelListenerClient

func NewTunnelListenerClient(cc *grpc.ClientConn) TunnelListenerClient

type TunnelListenerServer

type TunnelListenerServer interface {
	Listen(TunnelListener_ListenServer) error
}

TunnelListenerServer is the server API for TunnelListener service.

type TunnelListener_ListenClient

type TunnelListener_ListenClient interface {
	Send(*ListenRequest) error
	Recv() (*ListenResponse, error)
	grpc.ClientStream
}

type TunnelListener_ListenServer

type TunnelListener_ListenServer interface {
	Send(*ListenResponse) error
	Recv() (*ListenRequest, error)
	grpc.ServerStream
}

type UnimplementedGitCredentialServer added in v0.14.0

type UnimplementedGitCredentialServer struct {
}

UnimplementedGitCredentialServer can be embedded to have forward compatible implementations.

func (*UnimplementedGitCredentialServer) GetCredential added in v0.14.0

type UnimplementedTerminalServer added in v0.12.0

type UnimplementedTerminalServer struct {
}

UnimplementedTerminalServer can be embedded to have forward compatible implementations.

func (*UnimplementedTerminalServer) Session added in v0.12.0

type UnimplementedTunnelListenerServer

type UnimplementedTunnelListenerServer struct {
}

UnimplementedTunnelListenerServer can be embedded to have forward compatible implementations.

func (*UnimplementedTunnelListenerServer) Listen

type WithTerminalFunc added in v0.12.0

type WithTerminalFunc func(func(stdin io.Reader, stdout, stderr io.Writer) error) error

Jump to

Keyboard shortcuts

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