Help us shape the future of Go! Take the 2026 Go Developer Survey

rebootescrow

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionIRebootEscrowStoreKey    = binder.FirstCallTransaction + 0
	TransactionIRebootEscrowRetrieveKey = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIRebootEscrowStoreKey    = "storeKey"
	MethodIRebootEscrowRetrieveKey = "retrieveKey"
)
View Source
const DescriptorIRebootEscrow = "android.hardware.rebootescrow.IRebootEscrow"

Variables

This section is empty.

Functions

This section is empty.

Types

type IRebootEscrow

type IRebootEscrow interface {
	AsBinder() binder.IBinder
	StoreKey(ctx context.Context, kek []byte) error
	RetrieveKey(ctx context.Context) ([]byte, error)
}

func NewRebootEscrowStub

func NewRebootEscrowStub(
	impl IRebootEscrowServer,
) IRebootEscrow

NewRebootEscrowStub creates a server-side IRebootEscrow wrapping the given server implementation. The returned value satisfies IRebootEscrow and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IRebootEscrowServer

type IRebootEscrowServer interface {
	StoreKey(ctx context.Context, kek []byte) error
	RetrieveKey(ctx context.Context) ([]byte, error)
}

IRebootEscrowServer is the server-side interface that user implementations provide to NewRebootEscrowStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type RebootEscrowProxy

type RebootEscrowProxy struct {
	Remote binder.IBinder
}

func NewRebootEscrowProxy

func NewRebootEscrowProxy(
	remote binder.IBinder,
) *RebootEscrowProxy

func (*RebootEscrowProxy) AsBinder

func (p *RebootEscrowProxy) AsBinder() binder.IBinder

func (*RebootEscrowProxy) RetrieveKey

func (p *RebootEscrowProxy) RetrieveKey(
	ctx context.Context,
) ([]byte, error)

func (*RebootEscrowProxy) StoreKey

func (p *RebootEscrowProxy) StoreKey(
	ctx context.Context,
	kek []byte,
) error

type RebootEscrowStub

type RebootEscrowStub struct {
	Impl      IRebootEscrow
	Transport binder.VersionAwareTransport
}

RebootEscrowStub dispatches incoming binder transactions to a typed IRebootEscrow implementation.

func (*RebootEscrowStub) Descriptor

func (s *RebootEscrowStub) Descriptor() string

func (*RebootEscrowStub) OnTransaction

func (s *RebootEscrowStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

Jump to

Keyboard shortcuts

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