filesystem

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesystemService

type FilesystemService struct {
	// contains filtered or unexported fields
}

FilesystemService implements artifact.Service using the local filesystem.

Artifacts are stored as JSON files under:

{BasePath}/{appName}/{userID}/{sessionID}/{fileName}/{version}.json

User-scoped artifacts (filenames prefixed with "user:") are stored under the "user" session key, making them accessible across all sessions for a given (appName, userID) pair.

func NewFilesystemService

func NewFilesystemService(cfg FilesystemServiceConfig) (*FilesystemService, error)

NewFilesystemService creates a new filesystem-backed artifact service. The base directory is created if it does not exist.

func (*FilesystemService) Delete

Delete implements artifact.Service.

func (*FilesystemService) List

List implements artifact.Service.

func (*FilesystemService) Load

Load implements artifact.Service.

func (*FilesystemService) Save

Save implements artifact.Service.

func (*FilesystemService) Versions

Versions implements artifact.Service.

type FilesystemServiceConfig

type FilesystemServiceConfig struct {
	// BasePath is the root directory for artifact storage.
	BasePath string
}

FilesystemServiceConfig holds configuration for FilesystemService.

Jump to

Keyboard shortcuts

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