Documentation
¶
Overview ¶
Package daemon implements the Nova gRPC daemon server. All VM lifecycle, network chaos, snapshot, and SSH exec operations are exposed over a Unix domain socket.
Index ¶
- type Daemon
- type Server
- func (s *Server) Apply(ctx context.Context, req *pb.ApplyRequest) (*pb.ApplyResponse, error)
- func (s *Server) Destroy(ctx context.Context, req *pb.DestroyRequest) (*emptypb.Empty, error)
- func (s *Server) Exec(ctx context.Context, req *pb.ExecRequest) (*pb.ExecResponse, error)
- func (s *Server) Export(ctx context.Context, req *pb.ExportRequest) (*pb.ExportResponse, error)
- func (s *Server) LinkDegrade(ctx context.Context, req *pb.LinkDegradeRequest) (*emptypb.Empty, error)
- func (s *Server) LinkHeal(ctx context.Context, req *pb.LinkPairRequest) (*emptypb.Empty, error)
- func (s *Server) LinkPartition(ctx context.Context, req *pb.LinkPairRequest) (*emptypb.Empty, error)
- func (s *Server) LinkReset(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Server) LinkStatus(ctx context.Context, _ *emptypb.Empty) (*pb.LinkStatusResponse, error)
- func (s *Server) NodeKill(ctx context.Context, req *pb.NodeRequest) (*emptypb.Empty, error)
- func (s *Server) NodeStart(ctx context.Context, req *pb.NodeRequest) (*emptypb.Empty, error)
- func (s *Server) NodeStatus(ctx context.Context, req *pb.NodeRequest) (*pb.NodeStatusResponse, error)
- func (s *Server) NodeStop(ctx context.Context, req *pb.NodeRequest) (*emptypb.Empty, error)
- func (s *Server) Shutdown(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Server) SnapshotDelete(ctx context.Context, req *pb.SnapshotRequest) (*emptypb.Empty, error)
- func (s *Server) SnapshotList(ctx context.Context, _ *emptypb.Empty) (*pb.SnapshotListResponse, error)
- func (s *Server) SnapshotRestore(ctx context.Context, req *pb.SnapshotRequest) (*emptypb.Empty, error)
- func (s *Server) SnapshotSave(ctx context.Context, req *pb.SnapshotRequest) (*emptypb.Empty, error)
- func (s *Server) Status(ctx context.Context, _ *emptypb.Empty) (*pb.StatusResponse, error)
- func (s *Server) StreamEvents(_ *emptypb.Empty, stream pb.Nova_StreamEventsServer) error
- func (s *Server) StreamLogs(req *pb.NodeRequest, stream pb.Nova_StreamLogsServer) error
- func (s *Server) WaitReady(ctx context.Context, req *pb.WaitReadyRequest) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
Daemon manages the gRPC server lifecycle.
func (*Daemon) SocketPath ¶
SocketPath returns the Unix domain socket path.
type Server ¶
type Server struct {
pb.UnimplementedNovaServer
// contains filtered or unexported fields
}
Server implements the nova.v1.NovaServer gRPC service.
func (*Server) Apply ¶
func (s *Server) Apply(ctx context.Context, req *pb.ApplyRequest) (*pb.ApplyResponse, error)
func (*Server) Exec ¶
func (s *Server) Exec(ctx context.Context, req *pb.ExecRequest) (*pb.ExecResponse, error)
func (*Server) Export ¶
func (s *Server) Export(ctx context.Context, req *pb.ExportRequest) (*pb.ExportResponse, error)
func (*Server) LinkDegrade ¶
func (*Server) LinkPartition ¶
func (*Server) LinkStatus ¶
func (*Server) NodeStatus ¶
func (s *Server) NodeStatus(ctx context.Context, req *pb.NodeRequest) (*pb.NodeStatusResponse, error)
func (*Server) SnapshotDelete ¶
func (*Server) SnapshotList ¶
func (*Server) SnapshotRestore ¶
func (*Server) SnapshotSave ¶
func (*Server) StreamEvents ¶
func (*Server) StreamLogs ¶
func (s *Server) StreamLogs(req *pb.NodeRequest, stream pb.Nova_StreamLogsServer) error
Click to show internal directories.
Click to hide internal directories.