github.com/projecteru2/core@v0.0.0-20240321043226-06bcc1c23f58/engine/systemd/virtualization.go (about)

     1  package systemd
     2  
     3  import (
     4  	"context"
     5  	"io"
     6  
     7  	enginetypes "github.com/projecteru2/core/engine/types"
     8  	resourcetypes "github.com/projecteru2/core/resource/types"
     9  	"github.com/projecteru2/core/types"
    10  )
    11  
    12  // VirtualizationLogs fetches service logs
    13  func (e *Engine) VirtualizationLogs(_ context.Context, _ *enginetypes.VirtualizationLogStreamOptions) (stdout io.ReadCloser, stderr io.ReadCloser, err error) {
    14  	err = types.ErrEngineNotImplemented
    15  	return
    16  }
    17  
    18  // VirtualizationAttach attaches a service's stdio
    19  func (e *Engine) VirtualizationAttach(_ context.Context, _ string, _, _ bool) (stdout, stderr io.ReadCloser, writer io.WriteCloser, err error) {
    20  	err = types.ErrEngineNotImplemented
    21  	return
    22  }
    23  
    24  // VirtualizationResize resizes a terminal window
    25  func (e *Engine) VirtualizationResize(_ context.Context, _ string, _, _ uint) (err error) {
    26  	err = types.ErrEngineNotImplemented
    27  	return
    28  }
    29  
    30  // VirtualizationWait waits for service finishing
    31  func (e *Engine) VirtualizationWait(_ context.Context, _, _ string) (res *enginetypes.VirtualizationWaitResult, err error) {
    32  	err = types.ErrEngineNotImplemented
    33  	return
    34  }
    35  
    36  // VirtualizationUpdateResource updates service resource limits
    37  func (e *Engine) VirtualizationUpdateResource(context.Context, string, resourcetypes.Resources) (err error) {
    38  	err = types.ErrEngineNotImplemented
    39  	return
    40  }