Documentation ¶
Index ¶
- type E
- type FakeMacOSDevice
- func (f *FakeMacOSDevice) CollectDeviceData() (*devicepb.DeviceCollectedData, error)
- func (f *FakeMacOSDevice) DeviceCredential() *devicepb.DeviceCredential
- func (f *FakeMacOSDevice) EnrollDeviceInit() (*devicepb.EnrollDeviceInit, error)
- func (f *FakeMacOSDevice) GetOSType() devicepb.OSType
- func (f *FakeMacOSDevice) SignChallenge(chal []byte) (sig []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type E ¶
type E struct { DevicesClient devicepb.DeviceTrustServiceClient // contains filtered or unexported fields }
E is an integrated test environment for device trust.
func MustNew ¶
func MustNew() *E
MustNew creates a new E or panics. Callers are required to defer e.Close() to release test resources.
type FakeMacOSDevice ¶
type FakeMacOSDevice struct { ID string SerialNumber string PubKeyDER []byte // contains filtered or unexported fields }
FakeMacOSDevice fakes the native methods of a macOS device, as expected by the devicetrust packages.
func NewFakeMacOSDevice ¶
func NewFakeMacOSDevice() (*FakeMacOSDevice, error)
func (*FakeMacOSDevice) CollectDeviceData ¶
func (f *FakeMacOSDevice) CollectDeviceData() (*devicepb.DeviceCollectedData, error)
func (*FakeMacOSDevice) DeviceCredential ¶
func (f *FakeMacOSDevice) DeviceCredential() *devicepb.DeviceCredential
func (*FakeMacOSDevice) EnrollDeviceInit ¶
func (f *FakeMacOSDevice) EnrollDeviceInit() (*devicepb.EnrollDeviceInit, error)
func (*FakeMacOSDevice) GetOSType ¶
func (f *FakeMacOSDevice) GetOSType() devicepb.OSType
func (*FakeMacOSDevice) SignChallenge ¶
func (f *FakeMacOSDevice) SignChallenge(chal []byte) (sig []byte, err error)
Click to show internal directories.
Click to hide internal directories.