directory_layout

package
v0.0.0-...-f4532c8 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const FileNameBlobStoreConfig = "dodder-blob_store-config"

Variables

This section is empty.

Functions

func DirBlobStore

func DirBlobStore(
	layout BlobStore,
	targets ...string,
) string

func GetBlobStoreConfigPaths

func GetBlobStoreConfigPaths(
	ctx interfaces.ActiveContext,
	directoryLayout BlobStore,
) []string

func MakeBlobStorePath

func MakeBlobStorePath(id blob_store_id.Id, base, config string) blobStorePath

func PathBlobStore

func PathBlobStore(
	layout BlobStore,
	targets ...string,
) interfaces.DirectoryLayoutPath

Types

type BlobStore

type BlobStore interface {
	Common
	MakePathBlobStore(...string) interfaces.DirectoryLayoutPath
}

func CloneBlobStoreWithXDG

func CloneBlobStoreWithXDG(layout BlobStore, xdg XDG) (BlobStore, error)

func MakeBlobStore

func MakeBlobStore(
	storeVersion store_version.Version,
	xdg XDG,
) (BlobStore, error)

type BlobStorePath

type BlobStorePath interface {
	GetBase() string
	GetConfig() string
	GetId() blob_store_id.Id
}

func GetBlobStorePath

func GetBlobStorePath(
	directoryLayout BlobStore,
	idString string,
) BlobStorePath

func GetBlobStorePathForCustomPath

func GetBlobStorePathForCustomPath(
	idString,
	basePath string,
	configPath string,
) BlobStorePath

func GetDefaultBlobStore

func GetDefaultBlobStore(
	directoryLayout BlobStore,
) BlobStorePath

type Common

type Common interface {
	blob_store_id.LocationTypeGetter
	// contains filtered or unexported methods
}

type Mutable

type Mutable interface {
	Delete(...string) error
}

type Repo

type Repo interface {
	MakeDirData(p ...string) interfaces.DirectoryLayoutPath

	DirDataIndex(p ...string) string
	DirCacheRemoteInventoryListsLog() string
	DirIndexObjectPointers() string
	DirIndexObjects() string

	DirCacheRepo(p ...string) string

	DirLostAndFound() string
	DirObjectId() string

	FileCacheDormant() string
	FileCacheObjectId() string
	FileConfig() string
	FileLock() string
	FileTags() string
	FileInventoryListLog() string

	DirsGenesis() []string
}

func MakeRepo

func MakeRepo(
	storeVersion store_version.Version,
	xdg XDG,
) (Repo, error)

type RepoMutable

type RepoMutable interface {
	Repo
	Mutable
}

type XDG

type XDG = xdg.XDG

Source Files

  • blob_store_path.go
  • main.go
  • util.go
  • util_private.go
  • v3.go

Jump to

Keyboard shortcuts

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