vmms

package
v0.10.1-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostGuardianService

type HostGuardianService struct {
	GuardianCreated bool
	KeyProtectors   []KeyProtector
}

func GetHostGuardianService

func GetHostGuardianService() *HostGuardianService

GetHostGuardianService returns the HGS Singleton. Using a singleton to track Guardian and KeyProtectors.

There should only be one Guardian per Host, created when the first KeyProtector is added, and removed
when the last KeyProtector is removed.

func (*HostGuardianService) Add

func (hgs *HostGuardianService) Add(vmId string) error

func (*HostGuardianService) Contains

func (hgs *HostGuardianService) Contains(vmId string) bool

func (*HostGuardianService) Find

func (hgs *HostGuardianService) Find(vmId string) int

func (*HostGuardianService) Remove

func (hgs *HostGuardianService) Remove(vmId string) error

type KeyProtector

type KeyProtector struct {
	VmId string
}

Jump to

Keyboard shortcuts

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