Documentation
¶
Index ¶
- Constants
- func NewSPDYExecutor(urlStr string) (remotecommand.Executor, error)
- type Config
- type RemoteCMDExecutorFactory
- type Server
- func (s *Server) CheckpointStatus(ctx context.Context, req *checkpointv1alpha1.CheckpointStatusRequest) (*checkpointv1alpha1.CheckpointStatusResponse, error)
- func (s *Server) CreateCheckpoint(ctx context.Context, req *checkpointv1alpha1.CreateCheckpointRequest) (*checkpointv1alpha1.CreateCheckpointResponse, error)
- type Service
- type ServiceImpl
Constants ¶
View Source
const Namespace = "checkpoint"
Variables ¶
This section is empty.
Functions ¶
func NewSPDYExecutor ¶
func NewSPDYExecutor(urlStr string) (remotecommand.Executor, error)
Types ¶
type RemoteCMDExecutorFactory ¶
type RemoteCMDExecutorFactory func(url string) (remotecommand.Executor, error)
type Server ¶
type Server struct {
checkpointv1alpha1.UnimplementedCheckpointServiceServer
// contains filtered or unexported fields
}
func (*Server) CheckpointStatus ¶
func (s *Server) CheckpointStatus( ctx context.Context, req *checkpointv1alpha1.CheckpointStatusRequest, ) (*checkpointv1alpha1.CheckpointStatusResponse, error)
func (*Server) CreateCheckpoint ¶
func (s *Server) CreateCheckpoint( ctx context.Context, req *checkpointv1alpha1.CreateCheckpointRequest, ) (*checkpointv1alpha1.CreateCheckpointResponse, error)
type ServiceImpl ¶
type ServiceImpl struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService( logger *slog.Logger, cfg Config, criService cri.Service, imgService image.Service, statusStore status.Store, newRemoteCMDExecutor RemoteCMDExecutorFactory, portAlloc *workload.PortAllocator, ) *ServiceImpl
func (*ServiceImpl) CheckpointStatus ¶
func (s *ServiceImpl) CheckpointStatus(checkpointID string) *status.Status
func (*ServiceImpl) CollectGarbage ¶
func (s *ServiceImpl) CollectGarbage(ctx context.Context) error
CollectGarbage removes all checkpoint tarballs and pods of checkpoint jobs that have failed or completed successfully.
func (*ServiceImpl) CreateCheckpoint ¶
Click to show internal directories.
Click to hide internal directories.