// Get the specified runner from the db
Get the specified runner from the db
// Get the specified runner from the db
func (s RunnerService) Get(ctx context.Context, r api.RunnerGetRequest) (*api.RunnerGetResponse, error) {
	s.logger.Debug("Getting runner", zap.String("runner", r.Name))
	var runner api.Runner
	runner.Name = r.Name
	if err := getPreloadedRunner(s.DB, &runner); err != nil {
		s.logger.Error("Cannot get runner", zap.String("runner", r.Name), zap.String("exception", err.Error()))
		return nil, err
	}
	s.logger.Debug("Returning runner", zap.String("runner", r.Name))
	return &api.RunnerGetResponse{Runner: runner}, nil
}
func ( s RunnerService ) Get ( ctx context . Context , r api . RunnerGetRequest ) ( * api . RunnerGetResponse , error ) { s . logger . Debug ( " " , zap . String ( " " , r . Name ) ) var runner api . Runner runner . Name = r . Name if err := getPreloadedRunner ( s . DB , & runner ) ; err != nil { s . logger . Error ( " " , zap . String ( " " , r . Name ) , zap . String ( " " , err . Error ( ) ) ) return nil , err } s . logger . Debug ( " " , zap . String ( " " , r . Name ) ) return & api . RunnerGetResponse { Runner : runner } , nil }
Get the specified runner from the db
Get the specified runner from the db