Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles requesting a Factory Reset.
func NewClient ¶
func NewClient(c *grpc.ClientConn) *Client
NewClient initializes a FactoryReset Client.
func (*Client) ResetTarget ¶
func (c *Client) ResetTarget(ctx context.Context, zeroFill, rollbackOS bool) *ResetError
ResetTarget invokes gRPC start service on the server.
type ResetError ¶
type ResetError struct {
Msgs []string
}
ResetError allows the return of multiple error messages concatenated.
func CheckResponse ¶
func CheckResponse(res *pb.StartResponse) *ResetError
CheckResponse checks for errors.
func (*ResetError) Error ¶
func (re *ResetError) Error() string
Error concatenates a multi-line error message.
type Server ¶
type Server struct { pb.FactoryResetServer *Settings // contains filtered or unexported fields }
Server for factory_reset service.
func (*Server) Start ¶
func (s *Server) Start(ctx context.Context, req *pb.StartRequest) (*pb.StartResponse, error)
Start rpc will start the factory reset process.
Click to show internal directories.
Click to hide internal directories.