artifact

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package artifact defines the shared filesystem layout for snapshot artifacts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveContentRoot

func ResolveContentRoot(basePath, contentUID string) (string, error)

ResolveContentRoot returns the complete filesystem root owned by one immutable content UID.

func ResolveRoot

func ResolveRoot(basePath string) (string, error)

ResolveRoot returns the reserved directory containing all content roots.

func ValidateBasePath

func ValidateBasePath(basePath string) error

ValidateBasePath accepts only a clean absolute path other than the filesystem root.

func ValidateContainment

func ValidateContainment(root, target string) error

ValidateContainment proves that target is root itself or a child of root.

func ValidateDirectory

func ValidateDirectory(path string) error

ValidateDirectory verifies that path is an ordinary directory, not a symlink.

func ValidatePathElement

func ValidatePathElement(label, value string) error

ValidatePathElement rejects traversal and path separators while accepting Kubernetes UIDs and container names.

Types

This section is empty.

Jump to

Keyboard shortcuts

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