volume

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name       string     `json:"name,omitempty"`
	Mode       string     `json:"mode,omitempty"`
	Components components `json:"components,omitempty"`
	BasePath   string     `json:"base,omitempty"`
}

Config contains volume details in config file

type Volume

type Volume struct {
	Path string
	// contains filtered or unexported fields
}

Volume contains directory and file info of volume

type VolumeManager

type VolumeManager struct {
	Config []Config `json:"volume,omitempty"`
	// contains filtered or unexported fields
}

VolumeManager manages volumes used by containers running GPU application

func NewVolumeManager

func NewVolumeManager(config string, share bool) (*VolumeManager, error)

NewVolumeManager returns a new VolumeManager

func (*VolumeManager) Run

func (vm *VolumeManager) Run() (err error)

Run starts a VolumeManager

type VolumeMap

type VolumeMap map[string]*Volume

VolumeMap stores Volume for each type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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