Documentation ¶
Index ¶
- func ReceiveOS(stream pb.OS_InstallServer) (*bytes.Buffer, error)
- type Client
- type Manager
- type Server
- func (s *Server) Activate(ctx context.Context, request *pb.ActivateRequest) (*pb.ActivateResponse, error)
- func (s *Server) Install(stream pb.OS_InstallServer) error
- func (s *Server) Register(g *grpc.Server)
- func (s *Server) Verify(ctx context.Context, _ *pb.VerifyRequest) (*pb.VerifyResponse, error)
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles requesting OS RPCs.
func NewClient ¶
func NewClient(c *grpc.ClientConn) *Client
NewClient returns a new OS service client.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager for storing data on OS's.
func NewManager ¶
NewManager for OS service module. Will manage state of OS module.
func (*Manager) Install ¶
Install installs an OS. It must be fully transferred and verified beforehand.
func (*Manager) IsInstalled ¶
IsInstalled returns true if the OS is installed.
func (*Manager) IsRunning ¶
IsRunning will tell us whether or not the OS version specified is currently running.
func (*Manager) SetRunning ¶
SetRunning sets the running OS to the version specified.
type Server ¶
Server is an OS Management service.
func (*Server) Activate ¶
func (s *Server) Activate(ctx context.Context, request *pb.ActivateRequest) (*pb.ActivateResponse, error)
Activate sets the requested OS version as the version which is used at the next reboot, and reboots the Target.
func (*Server) Install ¶
func (s *Server) Install(stream pb.OS_InstallServer) error
Install receives an OS package, validates the package and then installs the package.
func (*Server) Verify ¶
func (s *Server) Verify(ctx context.Context, _ *pb.VerifyRequest) (*pb.VerifyResponse, error)
Verify returns the OS version currently running.