mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-30 09:32:45 +01:00
Keep guest publication fixtures on the private file seam
Implement the exclusive temporary-descriptor seam on the monitoring metadata filesystem and assert its interface at compile time. The existing WriteFile barrier still proves metadata is persisted before new guest coordinates are published. This repairs the containing CI compilation failure without changing runtime code or weakening the barrier. Contract-Neutral: Adapt the guest publication test double to the reviewed FileSystem interface; no production behaviour or subsystem contract changes. Change-source: pulse-maintainer
This commit is contained in:
@@ -23,9 +23,14 @@ type guestPublicationMetadataFS struct {
|
||||
once sync.Once
|
||||
}
|
||||
|
||||
var _ config.FileSystem = (*guestPublicationMetadataFS)(nil)
|
||||
|
||||
func (fs *guestPublicationMetadataFS) ReadFile(path string) ([]byte, error) {
|
||||
return os.ReadFile(path)
|
||||
}
|
||||
func (fs *guestPublicationMetadataFS) CreateTemp(dir, pattern string) (config.TemporaryFile, error) {
|
||||
return os.CreateTemp(dir, pattern)
|
||||
}
|
||||
func (fs *guestPublicationMetadataFS) WriteFile(path string, data []byte, mode os.FileMode) error {
|
||||
if fs.blocked.Load() {
|
||||
fs.once.Do(func() { close(fs.entered) })
|
||||
|
||||
Reference in New Issue
Block a user