layout

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package layout defines deterministic application filesystem layouts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BDMVExtSummaryFilename

func BDMVExtSummaryFilename(playlist string) string

BDMVExtSummaryFilename returns the extended BDInfo summary filename for playlist.

func BDMVExtSummaryPath

func BDMVExtSummaryPath(tmpDir string, playlist string) string

BDMVExtSummaryPath returns the extended BDInfo summary path beneath tmpDir.

func BDMVFullSummaryFilename

func BDMVFullSummaryFilename(playlist string) string

BDMVFullSummaryFilename returns the full BDInfo summary filename for playlist.

func BDMVFullSummaryPath

func BDMVFullSummaryPath(tmpDir string, playlist string) string

BDMVFullSummaryPath returns the full BDInfo summary path beneath tmpDir.

func BDMVPlaylistKey

func BDMVPlaylistKey(playlist string) string

BDMVPlaylistKey returns the normalized playlist identifier used in BDInfo artifact names.

func BDMVSummaryFilename

func BDMVSummaryFilename(playlist string) string

BDMVSummaryFilename returns the standard BDInfo summary filename for playlist.

func BDMVSummaryPath

func BDMVSummaryPath(tmpDir string, playlist string) string

BDMVSummaryPath returns the standard BDInfo summary path beneath tmpDir.

func DiscTempDir added in v0.3.2

func DiscTempDir(releaseTempDir string, discID string) (string, error)

DiscTempDir returns the namespaced artifact directory for one backend-owned lowercase SHA-256 disc ID, rejecting malformed IDs and paths outside releaseTempDir.

func PrimaryBDMVExtSummaryPath

func PrimaryBDMVExtSummaryPath(tmpRoot string, meta preparationstate.State) (string, error)

PrimaryBDMVExtSummaryPath resolves the extended summary path for meta's primary playlist.

func PrimaryBDMVFullSummaryPath

func PrimaryBDMVFullSummaryPath(tmpRoot string, meta preparationstate.State) (string, error)

PrimaryBDMVFullSummaryPath resolves the full summary path for meta's primary playlist.

func PrimaryBDMVPlaylist

func PrimaryBDMVPlaylist(meta preparationstate.State) string

PrimaryBDMVPlaylist returns the primary playlist selected in meta.

func PrimaryBDMVPlaylistFor

func PrimaryBDMVPlaylistFor(playlists []api.PlaylistInfo) string

PrimaryBDMVPlaylistFor returns the normalized primary playlist from a narrow playlist selection.

func PrimaryBDMVSummaryPath

func PrimaryBDMVSummaryPath(tmpRoot string, meta preparationstate.State) (string, error)

PrimaryBDMVSummaryPath resolves the standard summary path for meta's primary playlist.

func PrimaryBDMVSummaryPathFor

func PrimaryBDMVSummaryPathFor(tmpRoot string, source string, release api.ReleaseInfo, playlists []api.PlaylistInfo) (string, error)

PrimaryBDMVSummaryPathFor resolves the standard summary path from narrow source, naming, and playlist facts.

func ReleaseTempBase

func ReleaseTempBase(meta preparationstate.State, source string) string

ReleaseTempBase returns the stable directory name used for release temporary files.

func ReleaseTempBaseFor

func ReleaseTempBaseFor(source string, release api.ReleaseInfo) string

ReleaseTempBaseFor derives a stable temporary-directory name from the source basename, then the release identity, and finally "content". Characters outside letters, digits, dot, dash, and underscore are replaced with '_'.

func ReleaseTempDir

func ReleaseTempDir(tmpRoot string, meta preparationstate.State, source string) (string, string, error)

ReleaseTempDir returns the release-specific temporary directory and its base name.

func ReleaseTempDirFor

func ReleaseTempDirFor(tmpRoot string, source string, release api.ReleaseInfo) (string, string, error)

ReleaseTempDirFor creates missing release-specific directories below tmpRoot with mode 0700 and returns the full path and stable base name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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