Преглед на файлове

add SecretMount and UnmountSecrets methods for non-Linux

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
Evan Hazlett преди 8 години
родител
ревизия
72c1d7f46b
променени са 2 файла, в които са добавени 20 реда и са изтрити 0 реда
  1. 10 0
      container/container_notlinux.go
  2. 10 0
      container/container_windows.go

+ 10 - 0
container/container_notlinux.go

@@ -11,3 +11,13 @@ func detachMounted(path string) error {
 	// Therefore there are separate definitions for this.
 	// Therefore there are separate definitions for this.
 	return unix.Unmount(path, 0)
 	return unix.Unmount(path, 0)
 }
 }
+
+// SecretMount returns the mount for the secret path
+func (container *Container) SecretMount() *Mount {
+	return nil
+}
+
+// UnmountSecrets unmounts the fs for secrets
+func (container *Container) UnmountSecrets() error {
+	return nil
+}

+ 10 - 0
container/container_windows.go

@@ -44,6 +44,16 @@ func (container *Container) IpcMounts() []Mount {
 	return nil
 	return nil
 }
 }
 
 
+// SecretMount returns the mount for the secret path
+func (container *Container) SecretMount() *Mount {
+	return nil
+}
+
+// UnmountSecrets unmounts the fs for secrets
+func (container *Container) UnmountSecrets() error {
+	return nil
+}
+
 // UnmountVolumes explicitly unmounts volumes from the container.
 // UnmountVolumes explicitly unmounts volumes from the container.
 func (container *Container) UnmountVolumes(forceSyscall bool, volumeEventLog func(name, action string, attributes map[string]string)) error {
 func (container *Container) UnmountVolumes(forceSyscall bool, volumeEventLog func(name, action string, attributes map[string]string)) error {
 	var (
 	var (