module documentation

Undocumented

Class Pattern Undocumented
Class PatternMatcher Undocumented
Function build_file_list Undocumented
Function create_archive Undocumented
Function exclude_paths Given a root directory path and a list of .dockerignore patterns, return an iterator of all paths (both regular files and directories) in the root directory that do *not* match any of the patterns.
Function mkbuildcontext Undocumented
Function normalize_slashes Undocumented
Function split_path Undocumented
Function tar Undocumented
Function walk Undocumented
Constant _SEP Undocumented
def build_file_list(root): (source)

Undocumented

def create_archive(root, files=None, fileobj=None, gzip=False, extra_files=None): (source)

Undocumented

def exclude_paths(root, patterns, dockerfile=None): (source)

Given a root directory path and a list of .dockerignore patterns, return an iterator of all paths (both regular files and directories) in the root directory that do *not* match any of the patterns. All paths returned are relative to the root.

def mkbuildcontext(dockerfile): (source)

Undocumented

def normalize_slashes(p): (source)

Undocumented

def split_path(p): (source)

Undocumented

def tar(path, exclude=None, dockerfile=None, fileobj=None, gzip=False): (source)

Undocumented

def walk(root, patterns, default=True): (source)

Undocumented

Undocumented

Value
(re.compile('/|\\\\') if IS_WINDOWS_PLATFORM else re.compile('/'))