mount

package
v0.0.0-...-b918686 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2016 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mount implements mounts that get mapped into the snap

Snappy creates fstab like configuration files that describe what directories from the system or from other snaps should get mapped into the snap.

Each fstab like file looks like a regular fstab entry:

/src/dir /dst/dir none bind 0 0
/src/dir /dst/dir none bind,rw 0 0

but only bind mounts are supported

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct{}

Backend is responsible for maintaining mount files for snap-confine

func (*Backend) Name

func (b *Backend) Name() string

Name returns the name of the backend.

func (*Backend) Remove

func (b *Backend) Remove(snapName string) error

Remove removes mount configuration files of a given snap.

This method should be called after removing a snap.

func (*Backend) Setup

func (b *Backend) Setup(snapInfo *snap.Info, devMode bool, repo *interfaces.Repository) error

Setup creates mount mount profile files specific to a given snap.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL