Documentation
¶
Index ¶
- Constants
- func Digest(data []byte) string
- func Extract(data []byte, dest string, desc Descriptor, limits Limits) error
- func IsPathWithin(root, candidate string) bool
- func NormalizeRelativePath(relPath string) (string, error)
- func StoreDir(dataDir string) string
- func ValidDigest(digest string) bool
- func Verify(data []byte, digest string) error
- type Client
- type Descriptor
- type Limits
- type PackOptions
- type Store
Constants ¶
View Source
const ( DefaultMaxCompressedSize int64 = 64 << 20 DefaultMaxUncompressedSize int64 = 256 << 20 DefaultMaxFiles = 8192 )
Variables ¶
This section is empty.
Functions ¶
func IsPathWithin ¶
func NormalizeRelativePath ¶
func ValidDigest ¶
Types ¶
type Descriptor ¶
type Descriptor struct {
Digest string
Size int64
DAGPath string
OriginalRef string
ResolvedRef string
}
func PackDirectory ¶
func PackDirectory(root string, opts PackOptions) (*Descriptor, []byte, error)
type Limits ¶
func DefaultLimits ¶
func DefaultLimits() Limits
type PackOptions ¶
Click to show internal directories.
Click to hide internal directories.