drivers

package
v0.0.0-...-aa7ce8b Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UsernameOpt = "username"
	PasswordOpt = "password"
	DomainOpt   = "domain"
)
View Source
const (
	EfsTemplateURI = "%s.%s.efs.%s.amazonaws.com"
)
View Source
const (
	MetaDataURL = "http://169.254.169.254/latest/dynamic/instance-identity/document"
)

Variables

View Source
var (
	ErrorEmpty = fmt.Errorf("Response was empty")
	ErrorParse = fmt.Errorf("Could not parse A record")
)

Functions

func NewCIFSDriver

func NewCIFSDriver(root, user, pass, domain string) cifsDriver

func NewEFSDriver

func NewEFSDriver(root, az, nameserver string, resolve bool) efsDriver

func NewNFSDriver

func NewNFSDriver(root string, version int) nfsDriver

func NewVolumeManager

func NewVolumeManager() *mountManager

Types

type DriverType

type DriverType int
const (
	CIFS DriverType = iota
	NFS
	EFS
)

func (DriverType) String

func (dt DriverType) String() string

type Lookup

type Lookup interface {
	Lookup(name string) (string, error)
}

type Resolver

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

func NewDefaultResolver

func NewDefaultResolver() *Resolver

func NewResolver

func NewResolver(serverString string) *Resolver

func (*Resolver) Lookup

func (l *Resolver) Lookup(name string) (string, error)

Jump to

Keyboard shortcuts

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