github.com/system-transparency/u-root@v6.0.1-0.20190919065413-ed07a650de4c+incompatible/pkg/mount/mount.go (about)

     1  // Copyright 2012-2018 the u-root Authors. All rights reserved
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Package mount implements mounting, moving, and unmounting file systems.
     6  package mount
     7  
     8  // Mounter is an object that can be mounted.
     9  type Mounter interface {
    10  	// Mount mounts the file system at path.
    11  	Mount(path string, flags uintptr) error
    12  
    13  	// Unmount unmounts a file system that was previously mounted.
    14  	//
    15  	// Mount must have been previously called on this same object.
    16  	Unmount(flags int) error
    17  }