package docker

import (
	"context"
	"fmt"

	"github.com/flowline-io/flowbot/internal/types"
)

type TmpfsMounter struct {
}

func NewTmpfsMounter() *TmpfsMounter {
	return &TmpfsMounter{}
}

func (m *TmpfsMounter) Mount(ctx context.Context, mnt *types.Mount) error {
	if mnt.Target == "" {
		return fmt.Errorf("tmpfs target is required")
	}
	if mnt.Source != "" {
		return fmt.Errorf("tmpfs source should be empty")
	}
	return nil
}

func (m *TmpfsMounter) Unmount(ctx context.Context, mnt *types.Mount) error {
	return nil
}
