files

package
v0.0.0-...-ed4b4ac Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Glob

func Glob(rootDir string, pattern []string) (files []string, err error)

Returns all files within rootDir that match any provided glob pattern. To treat dest as parent directory it must end with the path separator character.

func ValidateGlob

func ValidateGlob(pattern []string) (err error)

Types

type CopyPair

type CopyPair struct {
	Source string
	Dest   string
}

func Map

func Map(src []string, dest string) []CopyPair

type FSOptions

type FSOptions struct {
	UIDMappings []specs.LinuxIDMapping
	GIDMappings []specs.LinuxIDMapping
	Rootless    bool
}

type FileSystemBuilder

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

func NewFileSystemBuilder

func NewFileSystemBuilder(root string, opts FSOptions, logger Logger) *FileSystemBuilder

func (*FileSystemBuilder) Add

func (s *FileSystemBuilder) Add(src, destFile string, usr *idutils.UserIds) (err error)

func (*FileSystemBuilder) AddAll

func (s *FileSystemBuilder) AddAll(srcfs string, pattern []string, dest string, usr *idutils.UserIds) (err error)

func (*FileSystemBuilder) Files

func (s *FileSystemBuilder) Files() []string

type Logger

type Logger interface {
	Printf(fmt string, o ...interface{})
}

Jump to

Keyboard shortcuts

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