mount

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsBindPath

func AbsBindPath(c *config.MountConfig, workingDir string) string

AbsBindPath returns the MountConfig.Bind as an absolute path

func AsBind

func AsBind(c *config.MountConfig, workingDir string) string

AsBind returns a MountConfig formatted as a bind mount string

func GetTaskConfig

func GetTaskConfig(name, action string, conf *config.MountConfig) (types.TaskConfig, error)

GetTaskConfig returns a new task for the action

func NewTask

func NewTask(
	runFunc func(task *Task, ctx *context.ExecuteContext) (bool, error)) types.TaskBuilder

NewTask creates a new Task object

Types

type Task

type Task struct {
	types.NoStop
	// contains filtered or unexported fields
}

Task is a mount task

func (*Task) Name

func (t *Task) Name() task.Name

Name returns the name of the task

func (*Task) Repr

func (t *Task) Repr() string

Repr formats the task for logging

func (*Task) Run

func (t *Task) Run(ctx *context.ExecuteContext, _ bool) (bool, error)

Run performs the task action

Jump to

Keyboard shortcuts

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