winservice

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	SvcName = "cloudfuse"
)

Variables

This section is empty.

Functions

func AddMountJSON added in v0.3.0

func AddMountJSON(mountPath string, configFile string, useSystem bool) error

AddMountJSON adds an entry to our json file with the mount path and config file location.

func AddRegistryValue added in v1.9.3

func AddRegistryValue(keyName string, valueName string, value string) error

func CreateWinFspRegistry

func CreateWinFspRegistry() error

CreateWinFspRegistry creates an entry in the registry for WinFsp so the WinFsp launch tool can launch our mounts.

func DeleteMountJSONFiles added in v1.10.0

func DeleteMountJSONFiles() error

DeleteMountJSONFiles deletes all the mount.json files on the system

func IsMounted

func IsMounted(mountPath string) (bool, error)

IsMounted determines if the given path is mounted.

func RemoveMountJSON added in v0.3.0

func RemoveMountJSON(mountPath string, useSystem bool) error

RemoveMountJSON removes an entry to from our json file.

func RemoveRegistryValue added in v1.9.3

func RemoveRegistryValue(keyName string, valueName string) error

func RemoveWinFspRegistry

func RemoveWinFspRegistry() error

RemoveWinFspRegistry removes the entry in the registry for WinFsp.

func StartMount

func StartMount(mountPath string, configFile string, passphrase *memguard.Enclave) error

StartMount starts the mount if the name exists in the WinFsp Windows registry.

func StartMounts added in v0.3.0

func StartMounts(useSystem bool) error

startService starts cloudfuse by instructing WinFsp to launch it.

func StopMount

func StopMount(mountPath string) error

StopMount stops the mount if the name exists in the WinFsp Windows registry.

func StopMounts added in v1.10.0

func StopMounts(useSystem bool) error

StopMounts stops all mounts the mount if the name exists in our Windows registry.

Types

type Mount added in v0.3.0

type Mount struct {
	MountPath  string `json:"mountPath"`
	ConfigFile string `json:"configFile"`
}

type Mounts added in v0.3.0

type Mounts struct {
	Mounts []Mount `json:"mounts"`
}

Jump to

Keyboard shortcuts

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