zcrypt

package
v0.0.0-...-7032fa4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZCRYPTPath = "/dev/z90crypt"
	ZCRYPTName = "zcrypt"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ZCRYPTDevicePlugin

type ZCRYPTDevicePlugin struct {
	// contains filtered or unexported fields
}

ZCRYPTDevicePlugin is an implementation of DevicePlugin that is capable of exposing /dev/z90crypt to containers.

func (*ZCRYPTDevicePlugin) Allocate

Allocate allocates a set of devices to be used by container runtime environment.

func (ZCRYPTDevicePlugin) GetDevicePluginOptions

GetDevicePluginOptions returns options to be communicated with Device Manager

func (*ZCRYPTDevicePlugin) ListAndWatch

ListAndWatch sends gRPC stream of devices.

func (ZCRYPTDevicePlugin) PreStartContainer

PreStartContainer is called, if indicated by Device Plugin during registeration phase, before each container start. Device plugin can run device specific operations such as reseting the device before making devices available to the container

type ZCRYPTLister

type ZCRYPTLister struct{}

ZCRYPTLister is the object responsible for discovering initial pool of devices and their allocation.

func (ZCRYPTLister) Discover

func (ZCRYPTLister) Discover(pluginListCh chan dpm.PluginNameList)

Discovery discovers all ZCRYPT devices within the system.

func (ZCRYPTLister) GetResourceNamespace

func (ZCRYPTLister) GetResourceNamespace() string

func (ZCRYPTLister) NewPlugin

func (ZCRYPTLister) NewPlugin(deviceID string) dpm.PluginInterface

NewPlugin initializes new device plugin with ZCRYPT specific attributes.

Jump to

Keyboard shortcuts

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