From d1f83f40d6eb3458bb01d39cf6177d5e6285b27f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 19 Feb 2025 00:33:34 +0900 Subject: helper/bwrap: rename Write to WriteFile In case this might want to be an io.Writer. Signed-off-by: Ophestra --- helper/bwrap/builder.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'helper/bwrap/builder.go') diff --git a/helper/bwrap/builder.go b/helper/bwrap/builder.go index e6685aa9..a9481921 100644 --- a/helper/bwrap/builder.go +++ b/helper/bwrap/builder.go @@ -63,10 +63,10 @@ func (c *Config) Bind(src, dest string, opts ...bool) *Config { } } -// Write copy from FD to destination DEST +// WriteFile copy from FD to destination DEST // (--file FD DEST) -func (c *Config) Write(dest string, payload []byte) *Config { - c.Filesystem = append(c.Filesystem, &DataConfig{Dest: dest, Data: payload, Type: DataWrite}) +func (c *Config) WriteFile(name string, data []byte) *Config { + c.Filesystem = append(c.Filesystem, &DataConfig{Dest: name, Data: data, Type: DataWrite}) return c } -- cgit v1.3.1