factory_reset

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FactoryReset_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gnoi.factory_reset.FactoryReset",
	HandlerType: (*FactoryResetServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Start",
			Handler:    _FactoryReset_Start_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "factory_reset/factory_reset.proto",
}

FactoryReset_ServiceDesc is the grpc.ServiceDesc for FactoryReset service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_factory_reset_factory_reset_proto protoreflect.FileDescriptor

Functions

func RegisterFactoryResetServer

func RegisterFactoryResetServer(s grpc.ServiceRegistrar, srv FactoryResetServer)

Types

type FactoryResetClient

type FactoryResetClient interface {
	Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error)
}

FactoryResetClient is the client API for FactoryReset 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.

type FactoryResetServer

type FactoryResetServer interface {
	Start(context.Context, *StartRequest) (*StartResponse, error)
	// contains filtered or unexported methods
}

FactoryResetServer is the server API for FactoryReset service. All implementations must embed UnimplementedFactoryResetServer for forward compatibility

type ResetError

type ResetError struct {
	FactoryOsUnsupported bool   `protobuf:"varint,1,opt,name=factory_os_unsupported,json=factoryOsUnsupported,proto3" json:"factory_os_unsupported,omitempty"`
	ZeroFillUnsupported  bool   `protobuf:"varint,2,opt,name=zero_fill_unsupported,json=zeroFillUnsupported,proto3" json:"zero_fill_unsupported,omitempty"`
	Other                bool   `protobuf:"varint,3,opt,name=other,proto3" json:"other,omitempty"`
	Detail               string `protobuf:"bytes,4,opt,name=detail,proto3" json:"detail,omitempty"`
	// contains filtered or unexported fields
}

func (*ResetError) Descriptor deprecated

func (*ResetError) Descriptor() ([]byte, []int)

Deprecated: Use ResetError.ProtoReflect.Descriptor instead.

func (*ResetError) GetDetail

func (x *ResetError) GetDetail() string

func (*ResetError) GetFactoryOsUnsupported

func (x *ResetError) GetFactoryOsUnsupported() bool

func (*ResetError) GetOther

func (x *ResetError) GetOther() bool

func (*ResetError) GetZeroFillUnsupported

func (x *ResetError) GetZeroFillUnsupported() bool

func (*ResetError) ProtoMessage

func (*ResetError) ProtoMessage()

func (*ResetError) ProtoReflect

func (x *ResetError) ProtoReflect() protoreflect.Message

func (*ResetError) Reset

func (x *ResetError) Reset()

func (*ResetError) String

func (x *ResetError) String() string

type ResetSuccess

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

func (*ResetSuccess) Descriptor deprecated

func (*ResetSuccess) Descriptor() ([]byte, []int)

Deprecated: Use ResetSuccess.ProtoReflect.Descriptor instead.

func (*ResetSuccess) ProtoMessage

func (*ResetSuccess) ProtoMessage()

func (*ResetSuccess) ProtoReflect

func (x *ResetSuccess) ProtoReflect() protoreflect.Message

func (*ResetSuccess) Reset

func (x *ResetSuccess) Reset()

func (*ResetSuccess) String

func (x *ResetSuccess) String() string

type StartRequest

type StartRequest struct {
	FactoryOs   bool `protobuf:"varint,1,opt,name=factory_os,json=factoryOs,proto3" json:"factory_os,omitempty"`
	ZeroFill    bool `protobuf:"varint,2,opt,name=zero_fill,json=zeroFill,proto3" json:"zero_fill,omitempty"`
	RetainCerts bool `protobuf:"varint,3,opt,name=retain_certs,json=retainCerts,proto3" json:"retain_certs,omitempty"`
	// contains filtered or unexported fields
}

func (*StartRequest) Descriptor deprecated

func (*StartRequest) Descriptor() ([]byte, []int)

Deprecated: Use StartRequest.ProtoReflect.Descriptor instead.

func (*StartRequest) GetFactoryOs

func (x *StartRequest) GetFactoryOs() bool

func (*StartRequest) GetRetainCerts added in v0.2.0

func (x *StartRequest) GetRetainCerts() bool

func (*StartRequest) GetZeroFill

func (x *StartRequest) GetZeroFill() bool

func (*StartRequest) ProtoMessage

func (*StartRequest) ProtoMessage()

func (*StartRequest) ProtoReflect

func (x *StartRequest) ProtoReflect() protoreflect.Message

func (*StartRequest) Reset

func (x *StartRequest) Reset()

func (*StartRequest) String

func (x *StartRequest) String() string

type StartResponse

type StartResponse struct {

	// Types that are assignable to Response:
	//
	//	*StartResponse_ResetSuccess
	//	*StartResponse_ResetError
	Response isStartResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*StartResponse) Descriptor deprecated

func (*StartResponse) Descriptor() ([]byte, []int)

Deprecated: Use StartResponse.ProtoReflect.Descriptor instead.

func (*StartResponse) GetResetError

func (x *StartResponse) GetResetError() *ResetError

func (*StartResponse) GetResetSuccess

func (x *StartResponse) GetResetSuccess() *ResetSuccess

func (*StartResponse) GetResponse

func (m *StartResponse) GetResponse() isStartResponse_Response

func (*StartResponse) ProtoMessage

func (*StartResponse) ProtoMessage()

func (*StartResponse) ProtoReflect

func (x *StartResponse) ProtoReflect() protoreflect.Message

func (*StartResponse) Reset

func (x *StartResponse) Reset()

func (*StartResponse) String

func (x *StartResponse) String() string

type StartResponse_ResetError

type StartResponse_ResetError struct {
	ResetError *ResetError `protobuf:"bytes,2,opt,name=reset_error,json=resetError,proto3,oneof"`
}

type StartResponse_ResetSuccess

type StartResponse_ResetSuccess struct {
	ResetSuccess *ResetSuccess `protobuf:"bytes,1,opt,name=reset_success,json=resetSuccess,proto3,oneof"`
}

type UnimplementedFactoryResetServer

type UnimplementedFactoryResetServer struct {
}

UnimplementedFactoryResetServer must be embedded to have forward compatible implementations.

func (UnimplementedFactoryResetServer) Start

type UnsafeFactoryResetServer

type UnsafeFactoryResetServer interface {
	// contains filtered or unexported methods
}

UnsafeFactoryResetServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FactoryResetServer will result in compilation errors.

Jump to

Keyboard shortcuts

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