diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/instructions.go | 13 | ||||
-rw-r--r-- | build/instructions_test.go | 6 |
2 files changed, 0 insertions, 19 deletions
diff --git a/build/instructions.go b/build/instructions.go index d6cc1c3..4e48e88 100644 --- a/build/instructions.go +++ b/build/instructions.go @@ -173,19 +173,6 @@ func (user User) Compile() []string { return []string{quote(user.Name)} } -// Volume is a concrete build instruction for defining a volume mount point -// within the container. -// -type Volume struct { - Path string // volume/mount path -} - -// Compile returns the quoted volume path. -// -func (vol Volume) Compile() []string { - return []string{quote(vol.Path)} -} - // WorkingDirectory is a build instruction for defining the working directory // for future command and entrypoint instructions. // diff --git a/build/instructions_test.go b/build/instructions_test.go index 7cc2b20..0bf07b9 100644 --- a/build/instructions_test.go +++ b/build/instructions_test.go @@ -104,12 +104,6 @@ func TestUser(t *testing.T) { assert.Equal(t, []string{`"foo"`}, i.Compile()) } -func TestVolume(t *testing.T) { - i := build.Volume{"/foo/dir"} - - assert.Equal(t, []string{`"/foo/dir"`}, i.Compile()) -} - func TestWorkingDirectory(t *testing.T) { i := build.WorkingDirectory{"/foo/path"} |