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

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