Documentation ¶
Index ¶
- type Server
- func (srv *Server) Create(ctx context.Context, in *jobs.Job) (*jobs.Id, error)
- func (srv *Server) Delete(ctx context.Context, in *jobs.Id) (*pb.Empty, error)
- func (srv *Server) GetJobResultByNodeId(ctx context.Context, in *jobs.GetJobResultByNodeIdRequest) (*jobs.ResultsRow, error)
- func (srv *Server) List(ctx context.Context, in *jobs.Query) (*jobs.Jobs, error)
- func (srv *Server) ListInitiatedScans(ctx context.Context, in *jobs.TimeQuery) (*jobs.Ids, error)
- func (srv *Server) Read(ctx context.Context, in *jobs.Id) (*jobs.Job, error)
- func (srv *Server) Rerun(ctx context.Context, in *jobs.Id) (*jobs.RerunResponse, error)
- func (srv *Server) Update(ctx context.Context, in *jobs.Job) (*pb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implementation for jobs
func New ¶
func New(db *pgdb.DB, connFactory *secureconn.Factory, eventsClient automate_event.EventServiceClient, managerEndpoint string, cerealManager *cereal.Manager, fireJailExecProfilePath string) *Server
New creates a new jobs server
func (*Server) GetJobResultByNodeId ¶
func (srv *Server) GetJobResultByNodeId(ctx context.Context, in *jobs.GetJobResultByNodeIdRequest) (*jobs.ResultsRow, error)
GetJobResultByNodeId returns the results row for a given job id and node id
func (*Server) ListInitiatedScans ¶
ListInitiatedScans returns a list of ids for all scans with an end_time after or equal to the time provided or status 'running'. This is used for scan jobs auditing purposes.
Click to show internal directories.
Click to hide internal directories.