code: func NewExecutor(client engineapi.APIClient, genericResources []*api.GenericResource) exec.Executor {
  	var executor = &executor{
  		client:           client,
  		secrets:          secrets.NewManager(),
  		genericResources: genericResources,
  	}
  	return executor
  }
docs: // NewExecutor returns an executor from the docker client.