WindowsSandbox

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 1 Imported by: 0

README

go-wsb - Windows Sandbox Wrapper

WSB is a simple wrapper for Windows Sandbox that allows you to easily create and manage sandbox configurations.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	VGPU                 State         `xml:"vGPU"`
	Networking           State         `xml:"Networking"`
	MappedFolders        MappedFolders `xml:"MappedFolders"`
	LogonCommand         LogonCommand  `xml:"LogonCommand"`
	AudioInput           State         `xml:"AudioInput"`
	VideoInput           State         `xml:"VideoInput"`
	ProtectedClient      State         `xml:"ProtectedClient"`
	PrinterRedirection   State         `xml:"PrinterRedirection"`
	ClipboardRedirection State         `xml:"ClipboardRedirection"`
	MemoryInMB           int           `xml:"MemoryInMB"`
}

type LogonCommand

type LogonCommand struct {
	Command string `xml:"Command"`
}

type MappedFolder

type MappedFolder struct {
	HostFolder    string `xml:"HostFolder"`
	SandboxFolder string `xml:"SandboxFolder"`
	ReadOnly      bool   `xml:"ReadOnly"`
}

type MappedFolders

type MappedFolders struct {
	MappedFolders []MappedFolder `xml:"MappedFolder"`
}

type Sandbox

type Sandbox struct {
	Configuration Configuration
}

func (*Sandbox) FromXML added in v0.0.2

func (s *Sandbox) FromXML(xmlString string) error

func (*Sandbox) ToXML added in v0.0.2

func (s *Sandbox) ToXML() (string, error)

type State

type State string
const (
	ENABLED  State = "Enable"
	DISABLED State = "Disable"
	DEFAULT  State = ""
)

Jump to

Keyboard shortcuts

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