volume

package
v0.13.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

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

func Parse(_volume string) *Volume

Parse digests the provided volume into a fully qualified volume reference. If an error occurs, it will return a nil volume.

func ParseWithError

func ParseWithError(_volume string) (*Volume, error)

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.

Jump to

Keyboard shortcuts

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