Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterStartupServiceServer(s grpc.ServiceRegistrar, srv StartupServiceServer)
- type ApplyRequest
- type ConfigureRequest
- func (*ConfigureRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigureRequest) GetEnabled() bool
- func (x *ConfigureRequest) GetPrivateKeyPem() string
- func (*ConfigureRequest) ProtoMessage()
- func (x *ConfigureRequest) ProtoReflect() protoreflect.Message
- func (x *ConfigureRequest) Reset()
- func (x *ConfigureRequest) String() string
- type GetStatusRequest
- type StartupServiceClient
- type StartupServiceServer
- type Status
- func (*Status) Descriptor() ([]byte, []int)deprecated
- func (x *Status) GetAttempts() uint32
- func (x *Status) GetConfigured() bool
- func (x *Status) GetEnabled() bool
- func (x *Status) GetGeneration() uint64
- func (x *Status) GetLastError() string
- func (x *Status) GetLastExitCode() int32
- func (x *Status) GetLastRunUnixMilli() int64
- func (x *Status) GetLocalAdbPort() uint32
- func (x *Status) GetState() string
- func (*Status) ProtoMessage()
- func (x *Status) ProtoReflect() protoreflect.Message
- func (x *Status) Reset()
- func (x *Status) String() string
- type UnimplementedStartupServiceServer
- func (UnimplementedStartupServiceServer) Apply(context.Context, *ApplyRequest) (*Status, error)
- func (UnimplementedStartupServiceServer) Configure(context.Context, *ConfigureRequest) (*Status, error)
- func (UnimplementedStartupServiceServer) GetStatus(context.Context, *GetStatusRequest) (*Status, error)
- type UnsafeStartupServiceServer
Constants ¶
const ( StartupService_Configure_FullMethodName = "/startup.StartupService/Configure" StartupService_Apply_FullMethodName = "/startup.StartupService/Apply" StartupService_GetStatus_FullMethodName = "/startup.StartupService/GetStatus" )
Variables ¶
var File_proto_startup_startup_proto protoreflect.FileDescriptor
var StartupService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "startup.StartupService", HandlerType: (*StartupServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Configure", Handler: _StartupService_Configure_Handler, }, { MethodName: "Apply", Handler: _StartupService_Apply_Handler, }, { MethodName: "GetStatus", Handler: _StartupService_GetStatus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/startup/startup.proto", }
StartupService_ServiceDesc is the grpc.ServiceDesc for StartupService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStartupServiceServer ¶
func RegisterStartupServiceServer(s grpc.ServiceRegistrar, srv StartupServiceServer)
Types ¶
type ApplyRequest ¶
type ApplyRequest struct {
// contains filtered or unexported fields
}
func (*ApplyRequest) Descriptor
deprecated
func (*ApplyRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApplyRequest.ProtoReflect.Descriptor instead.
func (*ApplyRequest) ProtoMessage ¶
func (*ApplyRequest) ProtoMessage()
func (*ApplyRequest) ProtoReflect ¶
func (x *ApplyRequest) ProtoReflect() protoreflect.Message
func (*ApplyRequest) Reset ¶
func (x *ApplyRequest) Reset()
func (*ApplyRequest) String ¶
func (x *ApplyRequest) String() string
type ConfigureRequest ¶
type ConfigureRequest struct {
// Empty retains the existing key. Never returned by any response.
PrivateKeyPem string `protobuf:"bytes,1,opt,name=private_key_pem,json=privateKeyPem,proto3" json:"private_key_pem,omitempty"`
// Controls future startup attempts; false does not turn power mode off.
Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
// contains filtered or unexported fields
}
func (*ConfigureRequest) Descriptor
deprecated
func (*ConfigureRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConfigureRequest.ProtoReflect.Descriptor instead.
func (*ConfigureRequest) GetEnabled ¶
func (x *ConfigureRequest) GetEnabled() bool
func (*ConfigureRequest) GetPrivateKeyPem ¶
func (x *ConfigureRequest) GetPrivateKeyPem() string
func (*ConfigureRequest) ProtoMessage ¶
func (*ConfigureRequest) ProtoMessage()
func (*ConfigureRequest) ProtoReflect ¶
func (x *ConfigureRequest) ProtoReflect() protoreflect.Message
func (*ConfigureRequest) Reset ¶
func (x *ConfigureRequest) Reset()
func (*ConfigureRequest) String ¶
func (x *ConfigureRequest) String() string
type GetStatusRequest ¶
type GetStatusRequest struct {
// contains filtered or unexported fields
}
func (*GetStatusRequest) Descriptor
deprecated
func (*GetStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStatusRequest.ProtoReflect.Descriptor instead.
func (*GetStatusRequest) ProtoMessage ¶
func (*GetStatusRequest) ProtoMessage()
func (*GetStatusRequest) ProtoReflect ¶
func (x *GetStatusRequest) ProtoReflect() protoreflect.Message
func (*GetStatusRequest) Reset ¶
func (x *GetStatusRequest) Reset()
func (*GetStatusRequest) String ¶
func (x *GetStatusRequest) String() string
type StartupServiceClient ¶
type StartupServiceClient interface {
Configure(ctx context.Context, in *ConfigureRequest, opts ...grpc.CallOption) (*Status, error)
Apply(ctx context.Context, in *ApplyRequest, opts ...grpc.CallOption) (*Status, error)
GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*Status, error)
}
StartupServiceClient is the client API for StartupService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Configures one phone-local action after first unlock and trusted Wi-Fi. All methods require the existing mTLS identity and per-method ACL grant.
func NewStartupServiceClient ¶
func NewStartupServiceClient(cc grpc.ClientConnInterface) StartupServiceClient
type StartupServiceServer ¶
type StartupServiceServer interface {
Configure(context.Context, *ConfigureRequest) (*Status, error)
Apply(context.Context, *ApplyRequest) (*Status, error)
GetStatus(context.Context, *GetStatusRequest) (*Status, error)
// contains filtered or unexported methods
}
StartupServiceServer is the server API for StartupService service. All implementations must embed UnimplementedStartupServiceServer for forward compatibility.
Configures one phone-local action after first unlock and trusted Wi-Fi. All methods require the existing mTLS identity and per-method ACL grant.
type Status ¶
type Status struct {
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
Configured bool `protobuf:"varint,2,opt,name=configured,proto3" json:"configured,omitempty"`
State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
Generation uint64 `protobuf:"varint,4,opt,name=generation,proto3" json:"generation,omitempty"`
LocalAdbPort uint32 `protobuf:"varint,5,opt,name=local_adb_port,json=localAdbPort,proto3" json:"local_adb_port,omitempty"`
Attempts uint32 `protobuf:"varint,6,opt,name=attempts,proto3" json:"attempts,omitempty"`
LastExitCode *int32 `protobuf:"varint,7,opt,name=last_exit_code,json=lastExitCode,proto3,oneof" json:"last_exit_code,omitempty"`
LastRunUnixMilli int64 `protobuf:"varint,8,opt,name=last_run_unix_milli,json=lastRunUnixMilli,proto3" json:"last_run_unix_milli,omitempty"`
LastError string `protobuf:"bytes,9,opt,name=last_error,json=lastError,proto3" json:"last_error,omitempty"`
// contains filtered or unexported fields
}
Last execution in this app process, not a measurement of current power mode.
func (*Status) Descriptor
deprecated
func (*Status) GetAttempts ¶
func (*Status) GetConfigured ¶
func (*Status) GetEnabled ¶
func (*Status) GetGeneration ¶
func (*Status) GetLastError ¶
func (*Status) GetLastExitCode ¶
func (*Status) GetLastRunUnixMilli ¶
func (*Status) GetLocalAdbPort ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type UnimplementedStartupServiceServer ¶
type UnimplementedStartupServiceServer struct{}
UnimplementedStartupServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedStartupServiceServer) Apply ¶
func (UnimplementedStartupServiceServer) Apply(context.Context, *ApplyRequest) (*Status, error)
func (UnimplementedStartupServiceServer) Configure ¶
func (UnimplementedStartupServiceServer) Configure(context.Context, *ConfigureRequest) (*Status, error)
func (UnimplementedStartupServiceServer) GetStatus ¶
func (UnimplementedStartupServiceServer) GetStatus(context.Context, *GetStatusRequest) (*Status, error)
type UnsafeStartupServiceServer ¶
type UnsafeStartupServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStartupServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StartupServiceServer will result in compilation errors.