winservice

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 11 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) error

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

func CreateWinFspRegistry

func CreateWinFspRegistry() error

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

func IsMounted

func IsMounted(mountPath string) (bool, error)

IsMounted determines if the given path is mounted.

func RemoveAllRegistryMount

func RemoveAllRegistryMount() error

RemoveRegistryMount removes the entire cloudfuse registry

func RemoveMountJSON added in v0.3.0

func RemoveMountJSON(mountPath string) error

RemoveMountJSON removes an entry to from our json file.

func RemoveWinFspRegistry

func RemoveWinFspRegistry() error

RemoveWinFspRegistry removes the entry in the registry for WinFsp.

func StartMount

func StartMount(mountPath string, configFile string, passphrase string) error

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

func StartMounts added in v0.3.0

func StartMounts() 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 our Windows registry.

Types

type Cloudfuse

type Cloudfuse struct{}

type KeyData

type KeyData struct {
	MountPath  string
	ConfigFile string
}

func ReadRegistryInstanceEntry

func ReadRegistryInstanceEntry(name string) (KeyData, error)

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