local

package
v0.0.0-...-7c4ed6d Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2017 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package local converts blob references into local path names for on-disk storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OldPath deprecated

func OldPath(base, ref string) string

OldPath returns the file path to hold the contents of the blob with the specified reference. The returned path is rooted in the provided base directory.

This is the prior encoding and can no longer be deployed. It is maintained because ../../convert.go uses it to convert old disk trees that still have it.

Deprecated: Use Path.

func Path

func Path(base, ref string) string

Path returns the file path to hold the contents of the blob with the specified reference. The returned path is rooted in the provided base directory.

func Ref

func Ref(path string) (string, error)

Ref returns the reference for the given path name. The path name must have the storage base path stripped from it, and should not begin with a path separator.

Types

This section is empty.

Jump to

Keyboard shortcuts

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