Documentation ¶
Overview ¶
Package volume provides the ability for Vela to manage and manipulate a volume provided for a container.
Usage:
import "github.com/go-vela/worker/internal/volume"
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Volume ¶
type Volume struct { Source string `json:"source,omitempty"` Destination string `json:"destination,omitempty"` AccessMode string `json:"access_mode,omitempty"` }
Volume represents the volume definition used to create volumes for a container.
func Parse ¶
Parse digests the provided volume into a fully qualified volume reference. If an error occurs, it will return a nil volume.
func ParseWithError ¶
ParseWithError digests the provided volume into a fully qualified volume reference. If an error occurs, it will return a nil volume and the produced error.
Click to show internal directories.
Click to hide internal directories.