winservice

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	SvcName = "cloudfuse"
)

Variables

This section is empty.

Functions

func CreateRegistryMount

func CreateRegistryMount(mountPath string, configFile string) error

CreateRegistryMount adds an entry to our registry 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 RemoveRegistryMount

func RemoveRegistryMount(name string) error

RemoveRegistryMount removes the entry from our registry

func RemoveWinFspRegistry

func RemoveWinFspRegistry() error

RemoveWinFspRegistry removes the entry in the registry for WinFsp.

func StartMount

func StartMount(mountPath string, configFile string) error

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

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{}

func (*Cloudfuse) Execute

func (m *Cloudfuse) Execute(_ []string, r <-chan svc.ChangeRequest, changes chan<- svc.Status) (ssec bool, errno uint32)

type KeyData

type KeyData struct {
	MountPath  string
	ConfigFile string
}

func ReadRegistryInstanceEntry

func ReadRegistryInstanceEntry(name string) (KeyData, error)

Jump to

Keyboard shortcuts

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