parser

package
v11.11.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 24, 2019 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	OSTypeLinux   = "linux"
	OSTypeWindows = "windows"
)

Variables

This section is empty.

Functions

func NewInvalidVolumeSpecErr

func NewInvalidVolumeSpecErr(spec string) error

Types

type InvalidVolumeSpecError

type InvalidVolumeSpecError struct {
	// contains filtered or unexported fields
}

func (*InvalidVolumeSpecError) Error

func (e *InvalidVolumeSpecError) Error() string

type MockParser

type MockParser struct {
	mock.Mock
}

MockParser is an autogenerated mock type for the Parser type

func (*MockParser) ParseVolume

func (_m *MockParser) ParseVolume(spec string) (*Volume, error)

ParseVolume provides a mock function with given fields: spec

type Parser

type Parser interface {
	ParseVolume(spec string) (*Volume, error)
}

func New

func New(info types.Info) (Parser, error)

type Volume

type Volume struct {
	Source      string
	Destination string
	Mode        string
}

func (*Volume) Definition

func (v *Volume) Definition() string

func (*Volume) Len

func (v *Volume) Len() int

Jump to

Keyboard shortcuts

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