container_notlinux.go 525 B

1234567891011121314151617181920212223
  1. // +build solaris freebsd
  2. package container
  3. import (
  4. "golang.org/x/sys/unix"
  5. )
  6. func detachMounted(path string) error {
  7. //Solaris and FreeBSD do not support the lazy unmount or MNT_DETACH feature.
  8. // Therefore there are separate definitions for this.
  9. return unix.Unmount(path, 0)
  10. }
  11. // SecretMounts returns the mounts for the secret path
  12. func (container *Container) SecretMounts() []Mount {
  13. return nil
  14. }
  15. // UnmountSecrets unmounts the fs for secrets
  16. func (container *Container) UnmountSecrets() error {
  17. return nil
  18. }