fstree

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(logger *slog.Logger, mountpoint string, mountoptions []string, param *FSParam, debug bool) error

Types

type FSParam

type FSParam struct {
	GitClient GitClient
	GitForge  GitForge
	// contains filtered or unexported fields
}

type GitClient

type GitClient interface {
	FetchLocalRepositoryPath(source RepositorySource) (string, error)
}

type GitForge

type GitForge interface {
	FetchRootGroupContent() (map[string]GroupSource, error)
	FetchGroupContent(gid uint64) (map[string]GroupSource, map[string]RepositorySource, error)
}

type GroupSource

type GroupSource interface {
	GetGroupID() uint64
	InvalidateContentCache()
}

type RepositorySource

type RepositorySource interface {
	// GetName() string
	GetRepositoryID() uint64
	GetCloneURL() string
	GetDefaultBranch() string
}

Jump to

Keyboard shortcuts

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