Reference documentation and code samples for the Stackdriver Debugger Client class GerritSourceContext.
A SourceContext referring to a Gerrit project.
Example:
use Google\Cloud\Debugger\AliasContext;
use Google\Cloud\Debugger\GerritSourceContext;
$sourceContext = new GerritSourceContext(
'host-uri',
'gerrit-project',
'revision-id',
new AliasContext(AliasContext::KIND_FIXED, 'branch-alias')
);
Namespace
Google \ Cloud \ Debugger
Methods
__construct
Instantiate a new GerritSourceContext.
Parameters
Name
Description
hostUri
string
The URI of a running Gerrit instance.
gerritProject
string
The full project name within the host.
Projects may be nested, so "project/subproject" is a valid project
name. The "repo name" is hostURI/project.