mount

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mount provides functionality for managing creation of container's mount points

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Remove added in v0.6.3

func Remove(controller *controller.Controller, mounts ...Mount) error

Remove takes in an array of mounts and removes all volumes in them. Use this function after you've finished all the work and want to remove all leftover volumes.

Types

type Mount

type Mount struct {
	Volume *types.Volume
	Folder string
}

func NewMount

func NewMount(controller *controller.Controller, volumeName string, folderInContainer string) (Mount, error)

NewMount returns new Mount object that can be later used to specify a mount point when building a config.

Jump to

Keyboard shortcuts

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