Documentation ¶
Index ¶
- func GetNode(ctx context.Context, in *nodes.Id, db *pgdb.DB, ...) (*nodes.Node, error)
- type Server
- func (srv *Server) BulkCreate(ctx context.Context, in *nodes.Nodes) (*nodes.Ids, error)
- func (srv *Server) BulkDelete(ctx context.Context, in *nodes.Query) (*nodes.BulkDeleteResponse, error)
- func (srv *Server) BulkDeleteById(ctx context.Context, in *nodes.Ids) (*nodes.BulkDeleteResponse, error)
- func (srv *Server) Create(ctx context.Context, in *nodes.Node) (*nodes.Id, error)
- func (srv *Server) Delete(ctx context.Context, in *nodes.Id) (*pb.Empty, error)
- func (srv *Server) List(ctx context.Context, in *nodes.Query) (*nodes.Nodes, error)
- func (srv *Server) Read(ctx context.Context, in *nodes.Id) (*nodes.Node, error)
- func (srv *Server) Update(ctx context.Context, in *nodes.Node) (*pb.Empty, error)
- func (srv *Server) UpdateNodeConnectionError(ctx context.Context, in *nodes.NodeError) (*pb.Empty, error)
- func (srv *Server) UpdateNodeDetectInfo(ctx context.Context, in *nodes.NodeDetectJobInfo) (*pb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implementation for nodes
func (*Server) BulkCreate ¶
Create a new node
func (*Server) BulkDelete ¶
func (srv *Server) BulkDelete(ctx context.Context, in *nodes.Query) (*nodes.BulkDeleteResponse, error)
Delete nodes based on a query
func (*Server) BulkDeleteById ¶
func (*Server) UpdateNodeConnectionError ¶
func (srv *Server) UpdateNodeConnectionError(ctx context.Context, in *nodes.NodeError) (*pb.Empty, error)
UpdateNodeDetectInfo updates the connection error for a node. used by the inspec-agent.
func (*Server) UpdateNodeDetectInfo ¶
func (srv *Server) UpdateNodeDetectInfo(ctx context.Context, in *nodes.NodeDetectJobInfo) (*pb.Empty, error)
UpdateNodeDetectInfo updates the detect info for a node. used by the inspec-agent runner
Click to show internal directories.
Click to hide internal directories.