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
}
Click to show internal directories.
Click to hide internal directories.