sandboxv1

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package sandboxv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package sandboxv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	CodebaseService_CreateCodebase_FullMethodName = "/sandbox.v1.CodebaseService/CreateCodebase"
	CodebaseService_GetCodebase_FullMethodName    = "/sandbox.v1.CodebaseService/GetCodebase"
	CodebaseService_ListCodebases_FullMethodName  = "/sandbox.v1.CodebaseService/ListCodebases"
	CodebaseService_DeleteCodebase_FullMethodName = "/sandbox.v1.CodebaseService/DeleteCodebase"
	CodebaseService_UploadFiles_FullMethodName    = "/sandbox.v1.CodebaseService/UploadFiles"
	CodebaseService_DownloadFile_FullMethodName   = "/sandbox.v1.CodebaseService/DownloadFile"
	CodebaseService_ListFiles_FullMethodName      = "/sandbox.v1.CodebaseService/ListFiles"
)
View Source
const (
	SandboxService_CreateSandbox_FullMethodName     = "/sandbox.v1.SandboxService/CreateSandbox"
	SandboxService_GetSandbox_FullMethodName        = "/sandbox.v1.SandboxService/GetSandbox"
	SandboxService_ListSandboxes_FullMethodName     = "/sandbox.v1.SandboxService/ListSandboxes"
	SandboxService_StartSandbox_FullMethodName      = "/sandbox.v1.SandboxService/StartSandbox"
	SandboxService_StopSandbox_FullMethodName       = "/sandbox.v1.SandboxService/StopSandbox"
	SandboxService_DestroySandbox_FullMethodName    = "/sandbox.v1.SandboxService/DestroySandbox"
	SandboxService_Exec_FullMethodName              = "/sandbox.v1.SandboxService/Exec"
	SandboxService_ExecStream_FullMethodName        = "/sandbox.v1.SandboxService/ExecStream"
	SandboxService_CreateSession_FullMethodName     = "/sandbox.v1.SandboxService/CreateSession"
	SandboxService_GetSession_FullMethodName        = "/sandbox.v1.SandboxService/GetSession"
	SandboxService_ListSessions_FullMethodName      = "/sandbox.v1.SandboxService/ListSessions"
	SandboxService_DestroySession_FullMethodName    = "/sandbox.v1.SandboxService/DestroySession"
	SandboxService_SessionExec_FullMethodName       = "/sandbox.v1.SandboxService/SessionExec"
	SandboxService_SessionExecStream_FullMethodName = "/sandbox.v1.SandboxService/SessionExecStream"
)

Variables

View Source
var (
	Permission_name = map[int32]string{
		0: "PERMISSION_UNSPECIFIED",
		1: "PERMISSION_NONE",
		2: "PERMISSION_VIEW",
		3: "PERMISSION_READ",
		4: "PERMISSION_WRITE",
	}
	Permission_value = map[string]int32{
		"PERMISSION_UNSPECIFIED": 0,
		"PERMISSION_NONE":        1,
		"PERMISSION_VIEW":        2,
		"PERMISSION_READ":        3,
		"PERMISSION_WRITE":       4,
	}
)

Enum value maps for Permission.

View Source
var (
	PatternType_name = map[int32]string{
		0: "PATTERN_TYPE_UNSPECIFIED",
		1: "PATTERN_TYPE_GLOB",
		2: "PATTERN_TYPE_DIRECTORY",
		3: "PATTERN_TYPE_FILE",
	}
	PatternType_value = map[string]int32{
		"PATTERN_TYPE_UNSPECIFIED": 0,
		"PATTERN_TYPE_GLOB":        1,
		"PATTERN_TYPE_DIRECTORY":   2,
		"PATTERN_TYPE_FILE":        3,
	}
)

Enum value maps for PatternType.

View Source
var (
	SandboxStatus_name = map[int32]string{
		0: "SANDBOX_STATUS_UNSPECIFIED",
		1: "SANDBOX_STATUS_PENDING",
		2: "SANDBOX_STATUS_RUNNING",
		3: "SANDBOX_STATUS_STOPPED",
		4: "SANDBOX_STATUS_ERROR",
	}
	SandboxStatus_value = map[string]int32{
		"SANDBOX_STATUS_UNSPECIFIED": 0,
		"SANDBOX_STATUS_PENDING":     1,
		"SANDBOX_STATUS_RUNNING":     2,
		"SANDBOX_STATUS_STOPPED":     3,
		"SANDBOX_STATUS_ERROR":       4,
	}
)

Enum value maps for SandboxStatus.

View Source
var (
	SessionStatus_name = map[int32]string{
		0: "SESSION_STATUS_UNSPECIFIED",
		1: "SESSION_STATUS_ACTIVE",
		2: "SESSION_STATUS_CLOSED",
	}
	SessionStatus_value = map[string]int32{
		"SESSION_STATUS_UNSPECIFIED": 0,
		"SESSION_STATUS_ACTIVE":      1,
		"SESSION_STATUS_CLOSED":      2,
	}
)

Enum value maps for SessionStatus.

View Source
var (
	RuntimeType_name = map[int32]string{
		0: "RUNTIME_TYPE_UNSPECIFIED",
		1: "RUNTIME_TYPE_BWRAP",
		2: "RUNTIME_TYPE_DOCKER",
	}
	RuntimeType_value = map[string]int32{
		"RUNTIME_TYPE_UNSPECIFIED": 0,
		"RUNTIME_TYPE_BWRAP":       1,
		"RUNTIME_TYPE_DOCKER":      2,
	}
)

Enum value maps for RuntimeType.

View Source
var (
	ExecOutput_OutputType_name = map[int32]string{
		0: "OUTPUT_TYPE_UNSPECIFIED",
		1: "OUTPUT_TYPE_STDOUT",
		2: "OUTPUT_TYPE_STDERR",
	}
	ExecOutput_OutputType_value = map[string]int32{
		"OUTPUT_TYPE_UNSPECIFIED": 0,
		"OUTPUT_TYPE_STDOUT":      1,
		"OUTPUT_TYPE_STDERR":      2,
	}
)

Enum value maps for ExecOutput_OutputType.

View Source
var CodebaseService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sandbox.v1.CodebaseService",
	HandlerType: (*CodebaseServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateCodebase",
			Handler:    _CodebaseService_CreateCodebase_Handler,
		},
		{
			MethodName: "GetCodebase",
			Handler:    _CodebaseService_GetCodebase_Handler,
		},
		{
			MethodName: "ListCodebases",
			Handler:    _CodebaseService_ListCodebases_Handler,
		},
		{
			MethodName: "DeleteCodebase",
			Handler:    _CodebaseService_DeleteCodebase_Handler,
		},
		{
			MethodName: "ListFiles",
			Handler:    _CodebaseService_ListFiles_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "UploadFiles",
			Handler:       _CodebaseService_UploadFiles_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "DownloadFile",
			Handler:       _CodebaseService_DownloadFile_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "codebase.proto",
}

CodebaseService_ServiceDesc is the grpc.ServiceDesc for CodebaseService 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_codebase_proto protoreflect.FileDescriptor
View Source
var File_common_proto protoreflect.FileDescriptor
View Source
var File_sandbox_proto protoreflect.FileDescriptor
View Source
var SandboxService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sandbox.v1.SandboxService",
	HandlerType: (*SandboxServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateSandbox",
			Handler:    _SandboxService_CreateSandbox_Handler,
		},
		{
			MethodName: "GetSandbox",
			Handler:    _SandboxService_GetSandbox_Handler,
		},
		{
			MethodName: "ListSandboxes",
			Handler:    _SandboxService_ListSandboxes_Handler,
		},
		{
			MethodName: "StartSandbox",
			Handler:    _SandboxService_StartSandbox_Handler,
		},
		{
			MethodName: "StopSandbox",
			Handler:    _SandboxService_StopSandbox_Handler,
		},
		{
			MethodName: "DestroySandbox",
			Handler:    _SandboxService_DestroySandbox_Handler,
		},
		{
			MethodName: "Exec",
			Handler:    _SandboxService_Exec_Handler,
		},
		{
			MethodName: "CreateSession",
			Handler:    _SandboxService_CreateSession_Handler,
		},
		{
			MethodName: "GetSession",
			Handler:    _SandboxService_GetSession_Handler,
		},
		{
			MethodName: "ListSessions",
			Handler:    _SandboxService_ListSessions_Handler,
		},
		{
			MethodName: "DestroySession",
			Handler:    _SandboxService_DestroySession_Handler,
		},
		{
			MethodName: "SessionExec",
			Handler:    _SandboxService_SessionExec_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ExecStream",
			Handler:       _SandboxService_ExecStream_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SessionExecStream",
			Handler:       _SandboxService_SessionExecStream_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "sandbox.proto",
}

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

Functions

func RegisterCodebaseServiceHandler

func RegisterCodebaseServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCodebaseServiceHandler registers the http handlers for service CodebaseService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCodebaseServiceHandlerClient

func RegisterCodebaseServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CodebaseServiceClient) error

RegisterCodebaseServiceHandlerClient registers the http handlers for service CodebaseService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CodebaseServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CodebaseServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CodebaseServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterCodebaseServiceHandlerFromEndpoint

func RegisterCodebaseServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCodebaseServiceHandlerFromEndpoint is same as RegisterCodebaseServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCodebaseServiceHandlerServer

func RegisterCodebaseServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CodebaseServiceServer) error

RegisterCodebaseServiceHandlerServer registers the http handlers for service CodebaseService to "mux". UnaryRPC :call CodebaseServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCodebaseServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterCodebaseServiceServer

func RegisterCodebaseServiceServer(s grpc.ServiceRegistrar, srv CodebaseServiceServer)

func RegisterSandboxServiceHandler

func RegisterSandboxServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSandboxServiceHandler registers the http handlers for service SandboxService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSandboxServiceHandlerClient

func RegisterSandboxServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SandboxServiceClient) error

RegisterSandboxServiceHandlerClient registers the http handlers for service SandboxService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SandboxServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SandboxServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SandboxServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterSandboxServiceHandlerFromEndpoint

func RegisterSandboxServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSandboxServiceHandlerFromEndpoint is same as RegisterSandboxServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSandboxServiceHandlerServer

func RegisterSandboxServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SandboxServiceServer) error

RegisterSandboxServiceHandlerServer registers the http handlers for service SandboxService to "mux". UnaryRPC :call SandboxServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSandboxServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterSandboxServiceServer

func RegisterSandboxServiceServer(s grpc.ServiceRegistrar, srv SandboxServiceServer)

Types

type Codebase

type Codebase struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	OwnerId   string                 `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	Size      int64                  `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` // Total size in bytes
	FileCount int32                  `protobuf:"varint,5,opt,name=file_count,json=fileCount,proto3" json:"file_count,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Codebase represents a user's file folder

func (*Codebase) Descriptor deprecated

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

Deprecated: Use Codebase.ProtoReflect.Descriptor instead.

func (*Codebase) GetCreatedAt

func (x *Codebase) GetCreatedAt() *timestamppb.Timestamp

func (*Codebase) GetFileCount

func (x *Codebase) GetFileCount() int32

func (*Codebase) GetId

func (x *Codebase) GetId() string

func (*Codebase) GetName

func (x *Codebase) GetName() string

func (*Codebase) GetOwnerId

func (x *Codebase) GetOwnerId() string

func (*Codebase) GetSize

func (x *Codebase) GetSize() int64

func (*Codebase) GetUpdatedAt

func (x *Codebase) GetUpdatedAt() *timestamppb.Timestamp

func (*Codebase) ProtoMessage

func (*Codebase) ProtoMessage()

func (*Codebase) ProtoReflect

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

func (*Codebase) Reset

func (x *Codebase) Reset()

func (*Codebase) String

func (x *Codebase) String() string

type CodebaseServiceClient

type CodebaseServiceClient interface {
	// CreateCodebase creates a new codebase
	CreateCodebase(ctx context.Context, in *CreateCodebaseRequest, opts ...grpc.CallOption) (*Codebase, error)
	// GetCodebase retrieves information about a codebase
	GetCodebase(ctx context.Context, in *GetCodebaseRequest, opts ...grpc.CallOption) (*Codebase, error)
	// ListCodebases lists all codebases for an owner
	ListCodebases(ctx context.Context, in *ListCodebasesRequest, opts ...grpc.CallOption) (*ListCodebasesResponse, error)
	// DeleteCodebase deletes a codebase
	DeleteCodebase(ctx context.Context, in *DeleteCodebaseRequest, opts ...grpc.CallOption) (*Empty, error)
	// UploadFiles uploads files to a codebase
	UploadFiles(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[UploadChunk, UploadResult], error)
	// DownloadFile downloads a file from a codebase
	DownloadFile(ctx context.Context, in *DownloadFileRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[FileChunk], error)
	// ListFiles lists files in a codebase directory
	ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error)
}

CodebaseServiceClient is the client API for CodebaseService 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.

CodebaseService manages user codebases (file folders)

type CodebaseServiceServer

type CodebaseServiceServer interface {
	// CreateCodebase creates a new codebase
	CreateCodebase(context.Context, *CreateCodebaseRequest) (*Codebase, error)
	// GetCodebase retrieves information about a codebase
	GetCodebase(context.Context, *GetCodebaseRequest) (*Codebase, error)
	// ListCodebases lists all codebases for an owner
	ListCodebases(context.Context, *ListCodebasesRequest) (*ListCodebasesResponse, error)
	// DeleteCodebase deletes a codebase
	DeleteCodebase(context.Context, *DeleteCodebaseRequest) (*Empty, error)
	// UploadFiles uploads files to a codebase
	UploadFiles(grpc.ClientStreamingServer[UploadChunk, UploadResult]) error
	// DownloadFile downloads a file from a codebase
	DownloadFile(*DownloadFileRequest, grpc.ServerStreamingServer[FileChunk]) error
	// ListFiles lists files in a codebase directory
	ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error)
	// contains filtered or unexported methods
}

CodebaseServiceServer is the server API for CodebaseService service. All implementations must embed UnimplementedCodebaseServiceServer for forward compatibility.

CodebaseService manages user codebases (file folders)

type CodebaseService_DownloadFileClient

type CodebaseService_DownloadFileClient = grpc.ServerStreamingClient[FileChunk]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type CodebaseService_DownloadFileServer

type CodebaseService_DownloadFileServer = grpc.ServerStreamingServer[FileChunk]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type CodebaseService_UploadFilesClient

type CodebaseService_UploadFilesClient = grpc.ClientStreamingClient[UploadChunk, UploadResult]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type CodebaseService_UploadFilesServer

type CodebaseService_UploadFilesServer = grpc.ClientStreamingServer[UploadChunk, UploadResult]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type CreateCodebaseRequest

type CreateCodebaseRequest struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	// contains filtered or unexported fields
}

CreateCodebaseRequest

func (*CreateCodebaseRequest) Descriptor deprecated

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

Deprecated: Use CreateCodebaseRequest.ProtoReflect.Descriptor instead.

func (*CreateCodebaseRequest) GetName

func (x *CreateCodebaseRequest) GetName() string

func (*CreateCodebaseRequest) GetOwnerId

func (x *CreateCodebaseRequest) GetOwnerId() string

func (*CreateCodebaseRequest) ProtoMessage

func (*CreateCodebaseRequest) ProtoMessage()

func (*CreateCodebaseRequest) ProtoReflect

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

func (*CreateCodebaseRequest) Reset

func (x *CreateCodebaseRequest) Reset()

func (*CreateCodebaseRequest) String

func (x *CreateCodebaseRequest) String() string

type CreateSandboxRequest

type CreateSandboxRequest struct {
	CodebaseId  string               `protobuf:"bytes,1,opt,name=codebase_id,json=codebaseId,proto3" json:"codebase_id,omitempty"`
	Permissions []*PermissionRule    `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"`
	ExpiresIn   *durationpb.Duration `protobuf:"bytes,3,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"`
	Labels      map[string]string    `` /* 139-byte string literal not displayed */
	// Runtime configuration
	Runtime   RuntimeType     `protobuf:"varint,5,opt,name=runtime,proto3,enum=sandbox.v1.RuntimeType" json:"runtime,omitempty"` // Runtime type: bwrap, docker
	Image     string          `protobuf:"bytes,6,opt,name=image,proto3" json:"image,omitempty"`                                  // Docker image (for docker runtime)
	Resources *ResourceLimits `protobuf:"bytes,7,opt,name=resources,proto3" json:"resources,omitempty"`                          // Resource limits
	// contains filtered or unexported fields
}

CreateSandboxRequest

func (*CreateSandboxRequest) Descriptor deprecated

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

Deprecated: Use CreateSandboxRequest.ProtoReflect.Descriptor instead.

func (*CreateSandboxRequest) GetCodebaseId

func (x *CreateSandboxRequest) GetCodebaseId() string

func (*CreateSandboxRequest) GetExpiresIn

func (x *CreateSandboxRequest) GetExpiresIn() *durationpb.Duration

func (*CreateSandboxRequest) GetImage

func (x *CreateSandboxRequest) GetImage() string

func (*CreateSandboxRequest) GetLabels

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

func (*CreateSandboxRequest) GetPermissions

func (x *CreateSandboxRequest) GetPermissions() []*PermissionRule

func (*CreateSandboxRequest) GetResources

func (x *CreateSandboxRequest) GetResources() *ResourceLimits

func (*CreateSandboxRequest) GetRuntime

func (x *CreateSandboxRequest) GetRuntime() RuntimeType

func (*CreateSandboxRequest) ProtoMessage

func (*CreateSandboxRequest) ProtoMessage()

func (*CreateSandboxRequest) ProtoReflect

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

func (*CreateSandboxRequest) Reset

func (x *CreateSandboxRequest) Reset()

func (*CreateSandboxRequest) String

func (x *CreateSandboxRequest) String() string

type CreateSessionRequest

type CreateSessionRequest struct {
	SandboxId string            `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
	Shell     string            `protobuf:"bytes,2,opt,name=shell,proto3" json:"shell,omitempty"` // Optional: shell binary (default: /bin/bash)
	Env       map[string]string ``                                                                // Optional: initial environment variables
	/* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

CreateSessionRequest

func (*CreateSessionRequest) Descriptor deprecated

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

Deprecated: Use CreateSessionRequest.ProtoReflect.Descriptor instead.

func (*CreateSessionRequest) GetEnv

func (x *CreateSessionRequest) GetEnv() map[string]string

func (*CreateSessionRequest) GetSandboxId

func (x *CreateSessionRequest) GetSandboxId() string

func (*CreateSessionRequest) GetShell

func (x *CreateSessionRequest) GetShell() string

func (*CreateSessionRequest) ProtoMessage

func (*CreateSessionRequest) ProtoMessage()

func (*CreateSessionRequest) ProtoReflect

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

func (*CreateSessionRequest) Reset

func (x *CreateSessionRequest) Reset()

func (*CreateSessionRequest) String

func (x *CreateSessionRequest) String() string

type DeleteCodebaseRequest

type DeleteCodebaseRequest struct {
	CodebaseId string `protobuf:"bytes,1,opt,name=codebase_id,json=codebaseId,proto3" json:"codebase_id,omitempty"`
	// contains filtered or unexported fields
}

DeleteCodebaseRequest

func (*DeleteCodebaseRequest) Descriptor deprecated

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

Deprecated: Use DeleteCodebaseRequest.ProtoReflect.Descriptor instead.

func (*DeleteCodebaseRequest) GetCodebaseId

func (x *DeleteCodebaseRequest) GetCodebaseId() string

func (*DeleteCodebaseRequest) ProtoMessage

func (*DeleteCodebaseRequest) ProtoMessage()

func (*DeleteCodebaseRequest) ProtoReflect

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

func (*DeleteCodebaseRequest) Reset

func (x *DeleteCodebaseRequest) Reset()

func (*DeleteCodebaseRequest) String

func (x *DeleteCodebaseRequest) String() string

type DestroySandboxRequest

type DestroySandboxRequest struct {
	SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
	// contains filtered or unexported fields
}

DestroySandboxRequest

func (*DestroySandboxRequest) Descriptor deprecated

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

Deprecated: Use DestroySandboxRequest.ProtoReflect.Descriptor instead.

func (*DestroySandboxRequest) GetSandboxId

func (x *DestroySandboxRequest) GetSandboxId() string

func (*DestroySandboxRequest) ProtoMessage

func (*DestroySandboxRequest) ProtoMessage()

func (*DestroySandboxRequest) ProtoReflect

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

func (*DestroySandboxRequest) Reset

func (x *DestroySandboxRequest) Reset()

func (*DestroySandboxRequest) String

func (x *DestroySandboxRequest) String() string

type DestroySessionRequest

type DestroySessionRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

DestroySessionRequest

func (*DestroySessionRequest) Descriptor deprecated

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

Deprecated: Use DestroySessionRequest.ProtoReflect.Descriptor instead.

func (*DestroySessionRequest) GetSessionId

func (x *DestroySessionRequest) GetSessionId() string

func (*DestroySessionRequest) ProtoMessage

func (*DestroySessionRequest) ProtoMessage()

func (*DestroySessionRequest) ProtoReflect

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

func (*DestroySessionRequest) Reset

func (x *DestroySessionRequest) Reset()

func (*DestroySessionRequest) String

func (x *DestroySessionRequest) String() string

type DownloadFileRequest

type DownloadFileRequest struct {
	CodebaseId string `protobuf:"bytes,1,opt,name=codebase_id,json=codebaseId,proto3" json:"codebase_id,omitempty"`
	FilePath   string `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
	// contains filtered or unexported fields
}

DownloadFileRequest

func (*DownloadFileRequest) Descriptor deprecated

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

Deprecated: Use DownloadFileRequest.ProtoReflect.Descriptor instead.

func (*DownloadFileRequest) GetCodebaseId

func (x *DownloadFileRequest) GetCodebaseId() string

func (*DownloadFileRequest) GetFilePath

func (x *DownloadFileRequest) GetFilePath() string

func (*DownloadFileRequest) ProtoMessage

func (*DownloadFileRequest) ProtoMessage()

func (*DownloadFileRequest) ProtoReflect

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

func (*DownloadFileRequest) Reset

func (x *DownloadFileRequest) Reset()

func (*DownloadFileRequest) String

func (x *DownloadFileRequest) String() string

type Empty

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

Empty message for void returns

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type ExecOutput

type ExecOutput struct {
	Type ExecOutput_OutputType `protobuf:"varint,1,opt,name=type,proto3,enum=sandbox.v1.ExecOutput_OutputType" json:"type,omitempty"`
	Data []byte                `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

ExecOutput represents a chunk of streaming output

func (*ExecOutput) Descriptor deprecated

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

Deprecated: Use ExecOutput.ProtoReflect.Descriptor instead.

func (*ExecOutput) GetData

func (x *ExecOutput) GetData() []byte

func (*ExecOutput) GetType

func (x *ExecOutput) GetType() ExecOutput_OutputType

func (*ExecOutput) ProtoMessage

func (*ExecOutput) ProtoMessage()

func (*ExecOutput) ProtoReflect

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

func (*ExecOutput) Reset

func (x *ExecOutput) Reset()

func (*ExecOutput) String

func (x *ExecOutput) String() string

type ExecOutput_OutputType

type ExecOutput_OutputType int32
const (
	ExecOutput_OUTPUT_TYPE_UNSPECIFIED ExecOutput_OutputType = 0
	ExecOutput_OUTPUT_TYPE_STDOUT      ExecOutput_OutputType = 1
	ExecOutput_OUTPUT_TYPE_STDERR      ExecOutput_OutputType = 2
)

func (ExecOutput_OutputType) Descriptor

func (ExecOutput_OutputType) Enum

func (ExecOutput_OutputType) EnumDescriptor deprecated

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

Deprecated: Use ExecOutput_OutputType.Descriptor instead.

func (ExecOutput_OutputType) Number

func (ExecOutput_OutputType) String

func (x ExecOutput_OutputType) String() string

func (ExecOutput_OutputType) Type

type ExecRequest

type ExecRequest struct {
	SandboxId string               `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
	Command   string               `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
	Stdin     string               `protobuf:"bytes,3,opt,name=stdin,proto3" json:"stdin,omitempty"`
	Env       map[string]string    `` /* 133-byte string literal not displayed */
	Workdir   string               `protobuf:"bytes,5,opt,name=workdir,proto3" json:"workdir,omitempty"`
	Timeout   *durationpb.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

ExecRequest represents a command execution request

func (*ExecRequest) Descriptor deprecated

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

Deprecated: Use ExecRequest.ProtoReflect.Descriptor instead.

func (*ExecRequest) GetCommand

func (x *ExecRequest) GetCommand() string

func (*ExecRequest) GetEnv

func (x *ExecRequest) GetEnv() map[string]string

func (*ExecRequest) GetSandboxId

func (x *ExecRequest) GetSandboxId() string

func (*ExecRequest) GetStdin

func (x *ExecRequest) GetStdin() string

func (*ExecRequest) GetTimeout

func (x *ExecRequest) GetTimeout() *durationpb.Duration

func (*ExecRequest) GetWorkdir

func (x *ExecRequest) GetWorkdir() string

func (*ExecRequest) ProtoMessage

func (*ExecRequest) ProtoMessage()

func (*ExecRequest) ProtoReflect

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

func (*ExecRequest) Reset

func (x *ExecRequest) Reset()

func (*ExecRequest) String

func (x *ExecRequest) String() string

type ExecResult

type ExecResult struct {
	Stdout   string               `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"`
	Stderr   string               `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"`
	ExitCode int32                `protobuf:"varint,3,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	Duration *durationpb.Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

ExecResult represents the result of command execution

func (*ExecResult) Descriptor deprecated

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

Deprecated: Use ExecResult.ProtoReflect.Descriptor instead.

func (*ExecResult) GetDuration

func (x *ExecResult) GetDuration() *durationpb.Duration

func (*ExecResult) GetExitCode

func (x *ExecResult) GetExitCode() int32

func (*ExecResult) GetStderr

func (x *ExecResult) GetStderr() string

func (*ExecResult) GetStdout

func (x *ExecResult) GetStdout() string

func (*ExecResult) ProtoMessage

func (*ExecResult) ProtoMessage()

func (*ExecResult) ProtoReflect

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

func (*ExecResult) Reset

func (x *ExecResult) Reset()

func (*ExecResult) String

func (x *ExecResult) String() string

type FileChunk

type FileChunk struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

FileChunk represents a chunk of file being downloaded

func (*FileChunk) Descriptor deprecated

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

Deprecated: Use FileChunk.ProtoReflect.Descriptor instead.

func (*FileChunk) GetData

func (x *FileChunk) GetData() []byte

func (*FileChunk) ProtoMessage

func (*FileChunk) ProtoMessage()

func (*FileChunk) ProtoReflect

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

func (*FileChunk) Reset

func (x *FileChunk) Reset()

func (*FileChunk) String

func (x *FileChunk) String() string

type FileInfo

type FileInfo struct {
	Path       string                 `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Name       string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	IsDir      bool                   `protobuf:"varint,3,opt,name=is_dir,json=isDir,proto3" json:"is_dir,omitempty"`
	Size       int64                  `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
	ModifiedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=modified_at,json=modifiedAt,proto3" json:"modified_at,omitempty"`
	// contains filtered or unexported fields
}

FileInfo represents information about a file

func (*FileInfo) Descriptor deprecated

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

Deprecated: Use FileInfo.ProtoReflect.Descriptor instead.

func (*FileInfo) GetIsDir

func (x *FileInfo) GetIsDir() bool

func (*FileInfo) GetModifiedAt

func (x *FileInfo) GetModifiedAt() *timestamppb.Timestamp

func (*FileInfo) GetName

func (x *FileInfo) GetName() string

func (*FileInfo) GetPath

func (x *FileInfo) GetPath() string

func (*FileInfo) GetSize

func (x *FileInfo) GetSize() int64

func (*FileInfo) ProtoMessage

func (*FileInfo) ProtoMessage()

func (*FileInfo) ProtoReflect

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

func (*FileInfo) Reset

func (x *FileInfo) Reset()

func (*FileInfo) String

func (x *FileInfo) String() string

type GetCodebaseRequest

type GetCodebaseRequest struct {
	CodebaseId string `protobuf:"bytes,1,opt,name=codebase_id,json=codebaseId,proto3" json:"codebase_id,omitempty"`
	// contains filtered or unexported fields
}

GetCodebaseRequest

func (*GetCodebaseRequest) Descriptor deprecated

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

Deprecated: Use GetCodebaseRequest.ProtoReflect.Descriptor instead.

func (*GetCodebaseRequest) GetCodebaseId

func (x *GetCodebaseRequest) GetCodebaseId() string

func (*GetCodebaseRequest) ProtoMessage

func (*GetCodebaseRequest) ProtoMessage()

func (*GetCodebaseRequest) ProtoReflect

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

func (*GetCodebaseRequest) Reset

func (x *GetCodebaseRequest) Reset()

func (*GetCodebaseRequest) String

func (x *GetCodebaseRequest) String() string

type GetSandboxRequest

type GetSandboxRequest struct {
	SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
	// contains filtered or unexported fields
}

GetSandboxRequest

func (*GetSandboxRequest) Descriptor deprecated

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

Deprecated: Use GetSandboxRequest.ProtoReflect.Descriptor instead.

func (*GetSandboxRequest) GetSandboxId

func (x *GetSandboxRequest) GetSandboxId() string

func (*GetSandboxRequest) ProtoMessage

func (*GetSandboxRequest) ProtoMessage()

func (*GetSandboxRequest) ProtoReflect

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

func (*GetSandboxRequest) Reset

func (x *GetSandboxRequest) Reset()

func (*GetSandboxRequest) String

func (x *GetSandboxRequest) String() string

type GetSessionRequest

type GetSessionRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

GetSessionRequest

func (*GetSessionRequest) Descriptor deprecated

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

Deprecated: Use GetSessionRequest.ProtoReflect.Descriptor instead.

func (*GetSessionRequest) GetSessionId

func (x *GetSessionRequest) GetSessionId() string

func (*GetSessionRequest) ProtoMessage

func (*GetSessionRequest) ProtoMessage()

func (*GetSessionRequest) ProtoReflect

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

func (*GetSessionRequest) Reset

func (x *GetSessionRequest) Reset()

func (*GetSessionRequest) String

func (x *GetSessionRequest) String() string

type ListCodebasesRequest

type ListCodebasesRequest struct {
	OwnerId   string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
	PageSize  int32  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

ListCodebasesRequest

func (*ListCodebasesRequest) Descriptor deprecated

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

Deprecated: Use ListCodebasesRequest.ProtoReflect.Descriptor instead.

func (*ListCodebasesRequest) GetOwnerId

func (x *ListCodebasesRequest) GetOwnerId() string

func (*ListCodebasesRequest) GetPageSize

func (x *ListCodebasesRequest) GetPageSize() int32

func (*ListCodebasesRequest) GetPageToken

func (x *ListCodebasesRequest) GetPageToken() string

func (*ListCodebasesRequest) ProtoMessage

func (*ListCodebasesRequest) ProtoMessage()

func (*ListCodebasesRequest) ProtoReflect

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

func (*ListCodebasesRequest) Reset

func (x *ListCodebasesRequest) Reset()

func (*ListCodebasesRequest) String

func (x *ListCodebasesRequest) String() string

type ListCodebasesResponse

type ListCodebasesResponse struct {
	Codebases     []*Codebase `protobuf:"bytes,1,rep,name=codebases,proto3" json:"codebases,omitempty"`
	NextPageToken string      `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

ListCodebasesResponse

func (*ListCodebasesResponse) Descriptor deprecated

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

Deprecated: Use ListCodebasesResponse.ProtoReflect.Descriptor instead.

func (*ListCodebasesResponse) GetCodebases

func (x *ListCodebasesResponse) GetCodebases() []*Codebase

func (*ListCodebasesResponse) GetNextPageToken

func (x *ListCodebasesResponse) GetNextPageToken() string

func (*ListCodebasesResponse) ProtoMessage

func (*ListCodebasesResponse) ProtoMessage()

func (*ListCodebasesResponse) ProtoReflect

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

func (*ListCodebasesResponse) Reset

func (x *ListCodebasesResponse) Reset()

func (*ListCodebasesResponse) String

func (x *ListCodebasesResponse) String() string

type ListFilesRequest

type ListFilesRequest struct {
	CodebaseId string `protobuf:"bytes,1,opt,name=codebase_id,json=codebaseId,proto3" json:"codebase_id,omitempty"`
	Path       string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`            // Directory path (empty for root)
	Recursive  bool   `protobuf:"varint,3,opt,name=recursive,proto3" json:"recursive,omitempty"` // List recursively
	// contains filtered or unexported fields
}

ListFilesRequest

func (*ListFilesRequest) Descriptor deprecated

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

Deprecated: Use ListFilesRequest.ProtoReflect.Descriptor instead.

func (*ListFilesRequest) GetCodebaseId

func (x *ListFilesRequest) GetCodebaseId() string

func (*ListFilesRequest) GetPath

func (x *ListFilesRequest) GetPath() string

func (*ListFilesRequest) GetRecursive

func (x *ListFilesRequest) GetRecursive() bool

func (*ListFilesRequest) ProtoMessage

func (*ListFilesRequest) ProtoMessage()

func (*ListFilesRequest) ProtoReflect

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

func (*ListFilesRequest) Reset

func (x *ListFilesRequest) Reset()

func (*ListFilesRequest) String

func (x *ListFilesRequest) String() string

type ListFilesResponse

type ListFilesResponse struct {
	Files []*FileInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
	// contains filtered or unexported fields
}

ListFilesResponse

func (*ListFilesResponse) Descriptor deprecated

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

Deprecated: Use ListFilesResponse.ProtoReflect.Descriptor instead.

func (*ListFilesResponse) GetFiles

func (x *ListFilesResponse) GetFiles() []*FileInfo

func (*ListFilesResponse) ProtoMessage

func (*ListFilesResponse) ProtoMessage()

func (*ListFilesResponse) ProtoReflect

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

func (*ListFilesResponse) Reset

func (x *ListFilesResponse) Reset()

func (*ListFilesResponse) String

func (x *ListFilesResponse) String() string

type ListSandboxesRequest

type ListSandboxesRequest struct {
	CodebaseId string `protobuf:"bytes,1,opt,name=codebase_id,json=codebaseId,proto3" json:"codebase_id,omitempty"` // Optional filter by codebase
	PageSize   int32  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken  string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

ListSandboxesRequest

func (*ListSandboxesRequest) Descriptor deprecated

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

Deprecated: Use ListSandboxesRequest.ProtoReflect.Descriptor instead.

func (*ListSandboxesRequest) GetCodebaseId

func (x *ListSandboxesRequest) GetCodebaseId() string

func (*ListSandboxesRequest) GetPageSize

func (x *ListSandboxesRequest) GetPageSize() int32

func (*ListSandboxesRequest) GetPageToken

func (x *ListSandboxesRequest) GetPageToken() string

func (*ListSandboxesRequest) ProtoMessage

func (*ListSandboxesRequest) ProtoMessage()

func (*ListSandboxesRequest) ProtoReflect

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

func (*ListSandboxesRequest) Reset

func (x *ListSandboxesRequest) Reset()

func (*ListSandboxesRequest) String

func (x *ListSandboxesRequest) String() string

type ListSandboxesResponse

type ListSandboxesResponse struct {
	Sandboxes     []*Sandbox `protobuf:"bytes,1,rep,name=sandboxes,proto3" json:"sandboxes,omitempty"`
	NextPageToken string     `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

ListSandboxesResponse

func (*ListSandboxesResponse) Descriptor deprecated

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

Deprecated: Use ListSandboxesResponse.ProtoReflect.Descriptor instead.

func (*ListSandboxesResponse) GetNextPageToken

func (x *ListSandboxesResponse) GetNextPageToken() string

func (*ListSandboxesResponse) GetSandboxes

func (x *ListSandboxesResponse) GetSandboxes() []*Sandbox

func (*ListSandboxesResponse) ProtoMessage

func (*ListSandboxesResponse) ProtoMessage()

func (*ListSandboxesResponse) ProtoReflect

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

func (*ListSandboxesResponse) Reset

func (x *ListSandboxesResponse) Reset()

func (*ListSandboxesResponse) String

func (x *ListSandboxesResponse) String() string

type ListSessionsRequest

type ListSessionsRequest struct {
	SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
	// contains filtered or unexported fields
}

ListSessionsRequest

func (*ListSessionsRequest) Descriptor deprecated

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

Deprecated: Use ListSessionsRequest.ProtoReflect.Descriptor instead.

func (*ListSessionsRequest) GetSandboxId

func (x *ListSessionsRequest) GetSandboxId() string

func (*ListSessionsRequest) ProtoMessage

func (*ListSessionsRequest) ProtoMessage()

func (*ListSessionsRequest) ProtoReflect

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

func (*ListSessionsRequest) Reset

func (x *ListSessionsRequest) Reset()

func (*ListSessionsRequest) String

func (x *ListSessionsRequest) String() string

type ListSessionsResponse

type ListSessionsResponse struct {
	Sessions []*Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"`
	// contains filtered or unexported fields
}

ListSessionsResponse

func (*ListSessionsResponse) Descriptor deprecated

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

Deprecated: Use ListSessionsResponse.ProtoReflect.Descriptor instead.

func (*ListSessionsResponse) GetSessions

func (x *ListSessionsResponse) GetSessions() []*Session

func (*ListSessionsResponse) ProtoMessage

func (*ListSessionsResponse) ProtoMessage()

func (*ListSessionsResponse) ProtoReflect

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

func (*ListSessionsResponse) Reset

func (x *ListSessionsResponse) Reset()

func (*ListSessionsResponse) String

func (x *ListSessionsResponse) String() string

type PatternType

type PatternType int32

Pattern types for permission rules

const (
	PatternType_PATTERN_TYPE_UNSPECIFIED PatternType = 0
	PatternType_PATTERN_TYPE_GLOB        PatternType = 1 // e.g., *.md, **/*.json
	PatternType_PATTERN_TYPE_DIRECTORY   PatternType = 2 // e.g., /docs/
	PatternType_PATTERN_TYPE_FILE        PatternType = 3 // e.g., /config.yaml
)

func (PatternType) Descriptor

func (PatternType) Enum

func (x PatternType) Enum() *PatternType

func (PatternType) EnumDescriptor deprecated

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

Deprecated: Use PatternType.Descriptor instead.

func (PatternType) Number

func (x PatternType) Number() protoreflect.EnumNumber

func (PatternType) String

func (x PatternType) String() string

func (PatternType) Type

type Permission

type Permission int32

Permission levels for file access

const (
	Permission_PERMISSION_UNSPECIFIED Permission = 0
	Permission_PERMISSION_NONE        Permission = 1 // Completely invisible
	Permission_PERMISSION_VIEW        Permission = 2 // Can see in ls, cannot read
	Permission_PERMISSION_READ        Permission = 3 // Can read content
	Permission_PERMISSION_WRITE       Permission = 4 // Can modify
)

func (Permission) Descriptor

func (Permission) Descriptor() protoreflect.EnumDescriptor

func (Permission) Enum

func (x Permission) Enum() *Permission

func (Permission) EnumDescriptor deprecated

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

Deprecated: Use Permission.Descriptor instead.

func (Permission) Number

func (x Permission) Number() protoreflect.EnumNumber

func (Permission) String

func (x Permission) String() string

func (Permission) Type

type PermissionRule

type PermissionRule struct {
	Pattern    string      `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"`                                   // Path pattern
	Type       PatternType `protobuf:"varint,2,opt,name=type,proto3,enum=sandbox.v1.PatternType" json:"type,omitempty"`            // Pattern type
	Permission Permission  `protobuf:"varint,3,opt,name=permission,proto3,enum=sandbox.v1.Permission" json:"permission,omitempty"` // Access level
	Priority   int32       `protobuf:"varint,4,opt,name=priority,proto3" json:"priority,omitempty"`                                // Higher priority wins
	// contains filtered or unexported fields
}

PermissionRule defines access control for files

func (*PermissionRule) Descriptor deprecated

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

Deprecated: Use PermissionRule.ProtoReflect.Descriptor instead.

func (*PermissionRule) GetPattern

func (x *PermissionRule) GetPattern() string

func (*PermissionRule) GetPermission

func (x *PermissionRule) GetPermission() Permission

func (*PermissionRule) GetPriority

func (x *PermissionRule) GetPriority() int32

func (*PermissionRule) GetType

func (x *PermissionRule) GetType() PatternType

func (*PermissionRule) ProtoMessage

func (*PermissionRule) ProtoMessage()

func (*PermissionRule) ProtoReflect

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

func (*PermissionRule) Reset

func (x *PermissionRule) Reset()

func (*PermissionRule) String

func (x *PermissionRule) String() string

type ResourceLimits

type ResourceLimits struct {
	MemoryBytes int64 `protobuf:"varint,1,opt,name=memory_bytes,json=memoryBytes,proto3" json:"memory_bytes,omitempty"` // Memory limit in bytes (e.g., 512*1024*1024 for 512MB)
	CpuQuota    int64 `protobuf:"varint,2,opt,name=cpu_quota,json=cpuQuota,proto3" json:"cpu_quota,omitempty"`          // CPU quota in microseconds per 100ms period
	CpuShares   int64 `protobuf:"varint,3,opt,name=cpu_shares,json=cpuShares,proto3" json:"cpu_shares,omitempty"`       // CPU shares (relative weight)
	PidsLimit   int64 `protobuf:"varint,4,opt,name=pids_limit,json=pidsLimit,proto3" json:"pids_limit,omitempty"`       // Maximum number of processes
	// contains filtered or unexported fields
}

ResourceLimits defines resource constraints for a sandbox

func (*ResourceLimits) Descriptor deprecated

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

Deprecated: Use ResourceLimits.ProtoReflect.Descriptor instead.

func (*ResourceLimits) GetCpuQuota

func (x *ResourceLimits) GetCpuQuota() int64

func (*ResourceLimits) GetCpuShares

func (x *ResourceLimits) GetCpuShares() int64

func (*ResourceLimits) GetMemoryBytes

func (x *ResourceLimits) GetMemoryBytes() int64

func (*ResourceLimits) GetPidsLimit

func (x *ResourceLimits) GetPidsLimit() int64

func (*ResourceLimits) ProtoMessage

func (*ResourceLimits) ProtoMessage()

func (*ResourceLimits) ProtoReflect

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

func (*ResourceLimits) Reset

func (x *ResourceLimits) Reset()

func (*ResourceLimits) String

func (x *ResourceLimits) String() string

type RuntimeType

type RuntimeType int32

RuntimeType specifies the sandbox runtime implementation

const (
	RuntimeType_RUNTIME_TYPE_UNSPECIFIED RuntimeType = 0
	RuntimeType_RUNTIME_TYPE_BWRAP       RuntimeType = 1
	RuntimeType_RUNTIME_TYPE_DOCKER      RuntimeType = 2
)

func (RuntimeType) Descriptor

func (RuntimeType) Enum

func (x RuntimeType) Enum() *RuntimeType

func (RuntimeType) EnumDescriptor deprecated

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

Deprecated: Use RuntimeType.Descriptor instead.

func (RuntimeType) Number

func (x RuntimeType) Number() protoreflect.EnumNumber

func (RuntimeType) String

func (x RuntimeType) String() string

func (RuntimeType) Type

type Sandbox

type Sandbox struct {
	Id          string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CodebaseId  string                 `protobuf:"bytes,2,opt,name=codebase_id,json=codebaseId,proto3" json:"codebase_id,omitempty"`
	Permissions []*PermissionRule      `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"`
	Status      SandboxStatus          `protobuf:"varint,4,opt,name=status,proto3,enum=sandbox.v1.SandboxStatus" json:"status,omitempty"`
	Labels      map[string]string      `` /* 139-byte string literal not displayed */
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	StartedAt   *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	StoppedAt   *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=stopped_at,json=stoppedAt,proto3" json:"stopped_at,omitempty"`
	ExpiresAt   *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// Runtime configuration
	Runtime   RuntimeType     `protobuf:"varint,10,opt,name=runtime,proto3,enum=sandbox.v1.RuntimeType" json:"runtime,omitempty"` // Runtime type used
	Image     string          `protobuf:"bytes,11,opt,name=image,proto3" json:"image,omitempty"`                                  // Docker image (for docker runtime)
	Resources *ResourceLimits `protobuf:"bytes,12,opt,name=resources,proto3" json:"resources,omitempty"`                          // Resource limits
	// contains filtered or unexported fields
}

Sandbox represents an isolated execution environment

func (*Sandbox) Descriptor deprecated

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

Deprecated: Use Sandbox.ProtoReflect.Descriptor instead.

func (*Sandbox) GetCodebaseId

func (x *Sandbox) GetCodebaseId() string

func (*Sandbox) GetCreatedAt

func (x *Sandbox) GetCreatedAt() *timestamppb.Timestamp

func (*Sandbox) GetExpiresAt

func (x *Sandbox) GetExpiresAt() *timestamppb.Timestamp

func (*Sandbox) GetId

func (x *Sandbox) GetId() string

func (*Sandbox) GetImage

func (x *Sandbox) GetImage() string

func (*Sandbox) GetLabels

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

func (*Sandbox) GetPermissions

func (x *Sandbox) GetPermissions() []*PermissionRule

func (*Sandbox) GetResources

func (x *Sandbox) GetResources() *ResourceLimits

func (*Sandbox) GetRuntime

func (x *Sandbox) GetRuntime() RuntimeType

func (*Sandbox) GetStartedAt

func (x *Sandbox) GetStartedAt() *timestamppb.Timestamp

func (*Sandbox) GetStatus

func (x *Sandbox) GetStatus() SandboxStatus

func (*Sandbox) GetStoppedAt

func (x *Sandbox) GetStoppedAt() *timestamppb.Timestamp

func (*Sandbox) ProtoMessage

func (*Sandbox) ProtoMessage()

func (*Sandbox) ProtoReflect

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

func (*Sandbox) Reset

func (x *Sandbox) Reset()

func (*Sandbox) String

func (x *Sandbox) String() string

type SandboxServiceClient

type SandboxServiceClient interface {
	// CreateSandbox creates a new sandbox with specified configuration
	CreateSandbox(ctx context.Context, in *CreateSandboxRequest, opts ...grpc.CallOption) (*Sandbox, error)
	// GetSandbox retrieves information about a sandbox
	GetSandbox(ctx context.Context, in *GetSandboxRequest, opts ...grpc.CallOption) (*Sandbox, error)
	// ListSandboxes lists all sandboxes
	ListSandboxes(ctx context.Context, in *ListSandboxesRequest, opts ...grpc.CallOption) (*ListSandboxesResponse, error)
	// StartSandbox starts a pending sandbox
	StartSandbox(ctx context.Context, in *StartSandboxRequest, opts ...grpc.CallOption) (*Sandbox, error)
	// StopSandbox stops a running sandbox
	StopSandbox(ctx context.Context, in *StopSandboxRequest, opts ...grpc.CallOption) (*Sandbox, error)
	// DestroySandbox destroys a sandbox and releases resources
	DestroySandbox(ctx context.Context, in *DestroySandboxRequest, opts ...grpc.CallOption) (*Empty, error)
	// Exec executes a command in a sandbox
	Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResult, error)
	// ExecStream executes a command and streams output
	ExecStream(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ExecOutput], error)
	// CreateSession creates a new shell session within a sandbox
	CreateSession(ctx context.Context, in *CreateSessionRequest, opts ...grpc.CallOption) (*Session, error)
	// GetSession retrieves information about a session
	GetSession(ctx context.Context, in *GetSessionRequest, opts ...grpc.CallOption) (*Session, error)
	// ListSessions lists all sessions for a sandbox
	ListSessions(ctx context.Context, in *ListSessionsRequest, opts ...grpc.CallOption) (*ListSessionsResponse, error)
	// DestroySession destroys a session and kills all its child processes
	DestroySession(ctx context.Context, in *DestroySessionRequest, opts ...grpc.CallOption) (*Empty, error)
	// SessionExec executes a command within a session (stateful)
	SessionExec(ctx context.Context, in *SessionExecRequest, opts ...grpc.CallOption) (*ExecResult, error)
	// SessionExecStream executes a command within a session and streams output
	SessionExecStream(ctx context.Context, in *SessionExecRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ExecOutput], error)
}

SandboxServiceClient is the client API for SandboxService 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.

SandboxService manages sandbox lifecycle and execution

type SandboxServiceServer

type SandboxServiceServer interface {
	// CreateSandbox creates a new sandbox with specified configuration
	CreateSandbox(context.Context, *CreateSandboxRequest) (*Sandbox, error)
	// GetSandbox retrieves information about a sandbox
	GetSandbox(context.Context, *GetSandboxRequest) (*Sandbox, error)
	// ListSandboxes lists all sandboxes
	ListSandboxes(context.Context, *ListSandboxesRequest) (*ListSandboxesResponse, error)
	// StartSandbox starts a pending sandbox
	StartSandbox(context.Context, *StartSandboxRequest) (*Sandbox, error)
	// StopSandbox stops a running sandbox
	StopSandbox(context.Context, *StopSandboxRequest) (*Sandbox, error)
	// DestroySandbox destroys a sandbox and releases resources
	DestroySandbox(context.Context, *DestroySandboxRequest) (*Empty, error)
	// Exec executes a command in a sandbox
	Exec(context.Context, *ExecRequest) (*ExecResult, error)
	// ExecStream executes a command and streams output
	ExecStream(*ExecRequest, grpc.ServerStreamingServer[ExecOutput]) error
	// CreateSession creates a new shell session within a sandbox
	CreateSession(context.Context, *CreateSessionRequest) (*Session, error)
	// GetSession retrieves information about a session
	GetSession(context.Context, *GetSessionRequest) (*Session, error)
	// ListSessions lists all sessions for a sandbox
	ListSessions(context.Context, *ListSessionsRequest) (*ListSessionsResponse, error)
	// DestroySession destroys a session and kills all its child processes
	DestroySession(context.Context, *DestroySessionRequest) (*Empty, error)
	// SessionExec executes a command within a session (stateful)
	SessionExec(context.Context, *SessionExecRequest) (*ExecResult, error)
	// SessionExecStream executes a command within a session and streams output
	SessionExecStream(*SessionExecRequest, grpc.ServerStreamingServer[ExecOutput]) error
	// contains filtered or unexported methods
}

SandboxServiceServer is the server API for SandboxService service. All implementations must embed UnimplementedSandboxServiceServer for forward compatibility.

SandboxService manages sandbox lifecycle and execution

type SandboxService_ExecStreamClient

type SandboxService_ExecStreamClient = grpc.ServerStreamingClient[ExecOutput]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type SandboxService_ExecStreamServer

type SandboxService_ExecStreamServer = grpc.ServerStreamingServer[ExecOutput]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type SandboxService_SessionExecStreamClient

type SandboxService_SessionExecStreamClient = grpc.ServerStreamingClient[ExecOutput]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type SandboxService_SessionExecStreamServer

type SandboxService_SessionExecStreamServer = grpc.ServerStreamingServer[ExecOutput]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type SandboxStatus

type SandboxStatus int32

SandboxStatus represents the state of a sandbox

const (
	SandboxStatus_SANDBOX_STATUS_UNSPECIFIED SandboxStatus = 0
	SandboxStatus_SANDBOX_STATUS_PENDING     SandboxStatus = 1
	SandboxStatus_SANDBOX_STATUS_RUNNING     SandboxStatus = 2
	SandboxStatus_SANDBOX_STATUS_STOPPED     SandboxStatus = 3
	SandboxStatus_SANDBOX_STATUS_ERROR       SandboxStatus = 4
)

func (SandboxStatus) Descriptor

func (SandboxStatus) Enum

func (x SandboxStatus) Enum() *SandboxStatus

func (SandboxStatus) EnumDescriptor deprecated

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

Deprecated: Use SandboxStatus.Descriptor instead.

func (SandboxStatus) Number

func (SandboxStatus) String

func (x SandboxStatus) String() string

func (SandboxStatus) Type

type Session

type Session struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	SandboxId string                 `protobuf:"bytes,2,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
	Status    SessionStatus          `protobuf:"varint,3,opt,name=status,proto3,enum=sandbox.v1.SessionStatus" json:"status,omitempty"`
	Shell     string                 `protobuf:"bytes,4,opt,name=shell,proto3" json:"shell,omitempty"` // Shell binary, e.g., "/bin/bash"
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	ClosedAt  *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=closed_at,json=closedAt,proto3" json:"closed_at,omitempty"`
	// contains filtered or unexported fields
}

Session represents a stateful shell session within a sandbox

func (*Session) Descriptor deprecated

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

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetClosedAt

func (x *Session) GetClosedAt() *timestamppb.Timestamp

func (*Session) GetCreatedAt

func (x *Session) GetCreatedAt() *timestamppb.Timestamp

func (*Session) GetId

func (x *Session) GetId() string

func (*Session) GetSandboxId

func (x *Session) GetSandboxId() string

func (*Session) GetShell

func (x *Session) GetShell() string

func (*Session) GetStatus

func (x *Session) GetStatus() SessionStatus

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

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

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

type SessionExecRequest

type SessionExecRequest struct {
	SessionId string               `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Command   string               `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
	Timeout   *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

SessionExecRequest represents a command execution within a session

func (*SessionExecRequest) Descriptor deprecated

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

Deprecated: Use SessionExecRequest.ProtoReflect.Descriptor instead.

func (*SessionExecRequest) GetCommand

func (x *SessionExecRequest) GetCommand() string

func (*SessionExecRequest) GetSessionId

func (x *SessionExecRequest) GetSessionId() string

func (*SessionExecRequest) GetTimeout

func (x *SessionExecRequest) GetTimeout() *durationpb.Duration

func (*SessionExecRequest) ProtoMessage

func (*SessionExecRequest) ProtoMessage()

func (*SessionExecRequest) ProtoReflect

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

func (*SessionExecRequest) Reset

func (x *SessionExecRequest) Reset()

func (*SessionExecRequest) String

func (x *SessionExecRequest) String() string

type SessionStatus

type SessionStatus int32

SessionStatus represents the state of a shell session

const (
	SessionStatus_SESSION_STATUS_UNSPECIFIED SessionStatus = 0
	SessionStatus_SESSION_STATUS_ACTIVE      SessionStatus = 1
	SessionStatus_SESSION_STATUS_CLOSED      SessionStatus = 2
)

func (SessionStatus) Descriptor

func (SessionStatus) Enum

func (x SessionStatus) Enum() *SessionStatus

func (SessionStatus) EnumDescriptor deprecated

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

Deprecated: Use SessionStatus.Descriptor instead.

func (SessionStatus) Number

func (SessionStatus) String

func (x SessionStatus) String() string

func (SessionStatus) Type

type StartSandboxRequest

type StartSandboxRequest struct {
	SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
	// contains filtered or unexported fields
}

StartSandboxRequest

func (*StartSandboxRequest) Descriptor deprecated

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

Deprecated: Use StartSandboxRequest.ProtoReflect.Descriptor instead.

func (*StartSandboxRequest) GetSandboxId

func (x *StartSandboxRequest) GetSandboxId() string

func (*StartSandboxRequest) ProtoMessage

func (*StartSandboxRequest) ProtoMessage()

func (*StartSandboxRequest) ProtoReflect

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

func (*StartSandboxRequest) Reset

func (x *StartSandboxRequest) Reset()

func (*StartSandboxRequest) String

func (x *StartSandboxRequest) String() string

type StopSandboxRequest

type StopSandboxRequest struct {
	SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
	// contains filtered or unexported fields
}

StopSandboxRequest

func (*StopSandboxRequest) Descriptor deprecated

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

Deprecated: Use StopSandboxRequest.ProtoReflect.Descriptor instead.

func (*StopSandboxRequest) GetSandboxId

func (x *StopSandboxRequest) GetSandboxId() string

func (*StopSandboxRequest) ProtoMessage

func (*StopSandboxRequest) ProtoMessage()

func (*StopSandboxRequest) ProtoReflect

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

func (*StopSandboxRequest) Reset

func (x *StopSandboxRequest) Reset()

func (*StopSandboxRequest) String

func (x *StopSandboxRequest) String() string

type UnimplementedCodebaseServiceServer

type UnimplementedCodebaseServiceServer struct{}

UnimplementedCodebaseServiceServer 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 (UnimplementedCodebaseServiceServer) CreateCodebase

func (UnimplementedCodebaseServiceServer) DeleteCodebase

func (UnimplementedCodebaseServiceServer) DownloadFile

func (UnimplementedCodebaseServiceServer) GetCodebase

func (UnimplementedCodebaseServiceServer) ListCodebases

func (UnimplementedCodebaseServiceServer) ListFiles

func (UnimplementedCodebaseServiceServer) UploadFiles

type UnimplementedSandboxServiceServer

type UnimplementedSandboxServiceServer struct{}

UnimplementedSandboxServiceServer 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 (UnimplementedSandboxServiceServer) CreateSandbox

func (UnimplementedSandboxServiceServer) CreateSession

func (UnimplementedSandboxServiceServer) DestroySandbox

func (UnimplementedSandboxServiceServer) DestroySession

func (UnimplementedSandboxServiceServer) Exec

func (UnimplementedSandboxServiceServer) ExecStream

func (UnimplementedSandboxServiceServer) GetSandbox

func (UnimplementedSandboxServiceServer) GetSession

func (UnimplementedSandboxServiceServer) ListSandboxes

func (UnimplementedSandboxServiceServer) ListSessions

func (UnimplementedSandboxServiceServer) SessionExec

func (UnimplementedSandboxServiceServer) SessionExecStream

func (UnimplementedSandboxServiceServer) StartSandbox

func (UnimplementedSandboxServiceServer) StopSandbox

type UnsafeCodebaseServiceServer

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

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

type UnsafeSandboxServiceServer

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

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

type UploadChunk

type UploadChunk struct {

	// Types that are valid to be assigned to Content:
	//
	//	*UploadChunk_Metadata_
	//	*UploadChunk_Data
	Content isUploadChunk_Content `protobuf_oneof:"content"`
	// contains filtered or unexported fields
}

UploadChunk represents a chunk of file being uploaded

func (*UploadChunk) Descriptor deprecated

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

Deprecated: Use UploadChunk.ProtoReflect.Descriptor instead.

func (*UploadChunk) GetContent

func (x *UploadChunk) GetContent() isUploadChunk_Content

func (*UploadChunk) GetData

func (x *UploadChunk) GetData() []byte

func (*UploadChunk) GetMetadata

func (x *UploadChunk) GetMetadata() *UploadChunk_Metadata

func (*UploadChunk) ProtoMessage

func (*UploadChunk) ProtoMessage()

func (*UploadChunk) ProtoReflect

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

func (*UploadChunk) Reset

func (x *UploadChunk) Reset()

func (*UploadChunk) String

func (x *UploadChunk) String() string

type UploadChunk_Data

type UploadChunk_Data struct {
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof"`
}

type UploadChunk_Metadata

type UploadChunk_Metadata struct {
	CodebaseId string `protobuf:"bytes,1,opt,name=codebase_id,json=codebaseId,proto3" json:"codebase_id,omitempty"`
	FilePath   string `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"` // Relative path in codebase
	TotalSize  int64  `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

First chunk must include metadata

func (*UploadChunk_Metadata) Descriptor deprecated

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

Deprecated: Use UploadChunk_Metadata.ProtoReflect.Descriptor instead.

func (*UploadChunk_Metadata) GetCodebaseId

func (x *UploadChunk_Metadata) GetCodebaseId() string

func (*UploadChunk_Metadata) GetFilePath

func (x *UploadChunk_Metadata) GetFilePath() string

func (*UploadChunk_Metadata) GetTotalSize

func (x *UploadChunk_Metadata) GetTotalSize() int64

func (*UploadChunk_Metadata) ProtoMessage

func (*UploadChunk_Metadata) ProtoMessage()

func (*UploadChunk_Metadata) ProtoReflect

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

func (*UploadChunk_Metadata) Reset

func (x *UploadChunk_Metadata) Reset()

func (*UploadChunk_Metadata) String

func (x *UploadChunk_Metadata) String() string

type UploadChunk_Metadata_

type UploadChunk_Metadata_ struct {
	Metadata *UploadChunk_Metadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"`
}

type UploadResult

type UploadResult struct {
	CodebaseId string `protobuf:"bytes,1,opt,name=codebase_id,json=codebaseId,proto3" json:"codebase_id,omitempty"`
	FilePath   string `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
	Size       int64  `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	Checksum   string `protobuf:"bytes,4,opt,name=checksum,proto3" json:"checksum,omitempty"` // MD5 or SHA256
	// contains filtered or unexported fields
}

UploadResult represents the result of file upload

func (*UploadResult) Descriptor deprecated

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

Deprecated: Use UploadResult.ProtoReflect.Descriptor instead.

func (*UploadResult) GetChecksum

func (x *UploadResult) GetChecksum() string

func (*UploadResult) GetCodebaseId

func (x *UploadResult) GetCodebaseId() string

func (*UploadResult) GetFilePath

func (x *UploadResult) GetFilePath() string

func (*UploadResult) GetSize

func (x *UploadResult) GetSize() int64

func (*UploadResult) ProtoMessage

func (*UploadResult) ProtoMessage()

func (*UploadResult) ProtoReflect

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

func (*UploadResult) Reset

func (x *UploadResult) Reset()

func (*UploadResult) String

func (x *UploadResult) String() string

Jump to

Keyboard shortcuts

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