Documentation
¶
Index ¶
- type Server
- func (s *Server) Checkpoint(ctx context.Context, in *orchestrator.SandboxCheckpointRequest) (*orchestrator.SandboxCheckpointResponse, error)
- func (s *Server) Close() error
- func (s *Server) Create(ctx context.Context, req *orchestrator.SandboxCreateRequest) (_ *orchestrator.SandboxCreateResponse, createErr error)
- func (s *Server) Delete(ctxConn context.Context, in *orchestrator.SandboxDeleteRequest) (*emptypb.Empty, error)
- func (s *Server) GetBuildBlob(req *orchestrator.GetBuildBlobRequest, ...) error
- func (s *Server) GetBuildFileExists(ctx context.Context, req *orchestrator.GetBuildFileExistsRequest) (*orchestrator.GetBuildFileExistsResponse, error)
- func (s *Server) GetBuildFileSize(ctx context.Context, req *orchestrator.GetBuildFileSizeRequest) (*orchestrator.GetBuildFileSizeResponse, error)
- func (s *Server) List(ctx context.Context, _ *emptypb.Empty) (*orchestrator.SandboxListResponse, error)
- func (s *Server) ListCachedBuilds(ctx context.Context, _ *emptypb.Empty) (*orchestrator.SandboxListCachedBuildsResponse, error)
- func (s *Server) Pause(ctx context.Context, in *orchestrator.SandboxPauseRequest) (*emptypb.Empty, error)
- func (s *Server) ReadAtBuildSeekable(req *orchestrator.ReadAtBuildSeekableRequest, ...) error
- func (s *Server) Update(ctx context.Context, req *orchestrator.SandboxUpdateRequest) (*emptypb.Empty, error)
- type ServiceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
orchestrator.UnimplementedSandboxServiceServer
orchestrator.UnimplementedChunkServiceServer
// contains filtered or unexported fields
}
func (*Server) Checkpoint ¶
func (s *Server) Checkpoint(ctx context.Context, in *orchestrator.SandboxCheckpointRequest) (*orchestrator.SandboxCheckpointResponse, error)
func (*Server) Create ¶
func (s *Server) Create(ctx context.Context, req *orchestrator.SandboxCreateRequest) (_ *orchestrator.SandboxCreateResponse, createErr error)
func (*Server) Delete ¶
func (s *Server) Delete(ctxConn context.Context, in *orchestrator.SandboxDeleteRequest) (*emptypb.Empty, error)
func (*Server) GetBuildBlob ¶
func (s *Server) GetBuildBlob(req *orchestrator.GetBuildBlobRequest, stream orchestrator.ChunkService_GetBuildBlobServer) error
GetBuildBlob streams an entire blob file (snapfile, metadata, headers).
func (*Server) GetBuildFileExists ¶
func (s *Server) GetBuildFileExists(ctx context.Context, req *orchestrator.GetBuildFileExistsRequest) (*orchestrator.GetBuildFileExistsResponse, error)
func (*Server) GetBuildFileSize ¶
func (s *Server) GetBuildFileSize(ctx context.Context, req *orchestrator.GetBuildFileSizeRequest) (*orchestrator.GetBuildFileSizeResponse, error)
func (*Server) List ¶
func (s *Server) List(ctx context.Context, _ *emptypb.Empty) (*orchestrator.SandboxListResponse, error)
func (*Server) ListCachedBuilds ¶
func (s *Server) ListCachedBuilds(ctx context.Context, _ *emptypb.Empty) (*orchestrator.SandboxListCachedBuildsResponse, error)
func (*Server) Pause ¶
func (s *Server) Pause(ctx context.Context, in *orchestrator.SandboxPauseRequest) (*emptypb.Empty, error)
func (*Server) ReadAtBuildSeekable ¶
func (s *Server) ReadAtBuildSeekable(req *orchestrator.ReadAtBuildSeekableRequest, stream orchestrator.ChunkService_ReadAtBuildSeekableServer) error
ReadAtBuildSeekable streams a range from a seekable diff file (memfile, rootfs.ext4).
func (*Server) Update ¶
func (s *Server) Update(ctx context.Context, req *orchestrator.SandboxUpdateRequest) (*emptypb.Empty, error)
type ServiceConfig ¶
type ServiceConfig struct {
Config cfg.Config
Tel *telemetry.Client
NetworkPool *network.Pool
DevicePool *nbd.DevicePool
TemplateCache *template.Cache
Info *service.ServiceInfo
Proxy *proxy.SandboxProxy
SandboxFactory *sandbox.Factory
Persistence storage.StorageProvider
FeatureFlags *featureflags.Client
SbxEventsService *events.EventsService
PeerRegistry peerclient.Registry
Uploads *sandbox.Uploads
}
Click to show internal directories.
Click to hide internal directories.