Documentation ¶
Overview ¶
Package clouddebugger provides access to the Google Cloud Debugger API.
See https://cloud.google.com/tools/cloud-debugger
Usage example:
import "google.golang.org/api/clouddebugger/v2" ... clouddebuggerService, err := clouddebugger.New(oauthHttpClient)
Index ¶
- Constants
- type Breakpoint
- type CloudRepoSourceContext
- type CloudWorkspaceId
- type CloudWorkspaceSourceContext
- type ControllerDebuggeesBreakpointsListCall
- func (c *ControllerDebuggeesBreakpointsListCall) Do() (*ListActiveBreakpointsResponse, error)
- func (c *ControllerDebuggeesBreakpointsListCall) Fields(s ...googleapi.Field) *ControllerDebuggeesBreakpointsListCall
- func (c *ControllerDebuggeesBreakpointsListCall) WaitToken(waitToken string) *ControllerDebuggeesBreakpointsListCall
- type ControllerDebuggeesBreakpointsService
- type ControllerDebuggeesBreakpointsUpdateCall
- type ControllerDebuggeesRegisterCall
- type ControllerDebuggeesService
- type ControllerService
- type Debuggee
- type DebuggerDebuggeesBreakpointsDeleteCall
- type DebuggerDebuggeesBreakpointsGetCall
- type DebuggerDebuggeesBreakpointsListCall
- func (c *DebuggerDebuggeesBreakpointsListCall) ActionValue(actionValue string) *DebuggerDebuggeesBreakpointsListCall
- func (c *DebuggerDebuggeesBreakpointsListCall) Do() (*ListBreakpointsResponse, error)
- func (c *DebuggerDebuggeesBreakpointsListCall) Fields(s ...googleapi.Field) *DebuggerDebuggeesBreakpointsListCall
- func (c *DebuggerDebuggeesBreakpointsListCall) IncludeAllUsers(includeAllUsers bool) *DebuggerDebuggeesBreakpointsListCall
- func (c *DebuggerDebuggeesBreakpointsListCall) IncludeInactive(includeInactive bool) *DebuggerDebuggeesBreakpointsListCall
- func (c *DebuggerDebuggeesBreakpointsListCall) StripResults(stripResults bool) *DebuggerDebuggeesBreakpointsListCall
- func (c *DebuggerDebuggeesBreakpointsListCall) WaitToken(waitToken string) *DebuggerDebuggeesBreakpointsListCall
- type DebuggerDebuggeesBreakpointsService
- func (r *DebuggerDebuggeesBreakpointsService) Delete(debuggeeId string, breakpointId string) *DebuggerDebuggeesBreakpointsDeleteCall
- func (r *DebuggerDebuggeesBreakpointsService) Get(debuggeeId string, breakpointId string) *DebuggerDebuggeesBreakpointsGetCall
- func (r *DebuggerDebuggeesBreakpointsService) List(debuggeeId string) *DebuggerDebuggeesBreakpointsListCall
- func (r *DebuggerDebuggeesBreakpointsService) Set(debuggeeId string, breakpoint *Breakpoint) *DebuggerDebuggeesBreakpointsSetCall
- type DebuggerDebuggeesBreakpointsSetCall
- type DebuggerDebuggeesListCall
- func (c *DebuggerDebuggeesListCall) Do() (*ListDebuggeesResponse, error)
- func (c *DebuggerDebuggeesListCall) Fields(s ...googleapi.Field) *DebuggerDebuggeesListCall
- func (c *DebuggerDebuggeesListCall) IncludeInactive(includeInactive bool) *DebuggerDebuggeesListCall
- func (c *DebuggerDebuggeesListCall) Project(project string) *DebuggerDebuggeesListCall
- type DebuggerDebuggeesService
- type DebuggerService
- type Empty
- type FormatMessage
- type GerritSourceContext
- type GetBreakpointResponse
- type GitSourceContext
- type ListActiveBreakpointsResponse
- type ListBreakpointsResponse
- type ListDebuggeesResponse
- type ProjectRepoId
- type RegisterDebuggeeRequest
- type RegisterDebuggeeResponse
- type RepoId
- type Service
- type SetBreakpointResponse
- type SourceContext
- type SourceLocation
- type StackFrame
- type StatusMessage
- type UpdateActiveBreakpointRequest
- type UpdateActiveBreakpointResponse
- type Variable
Constants ¶
const ( // View and manage your data across Google Cloud Platform services CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" // Manage cloud debugger CloudDebuggerScope = "https://www.googleapis.com/auth/cloud_debugger" // Manage active breakpoints in cloud debugger CloudDebugletcontrollerScope = "https://www.googleapis.com/auth/cloud_debugletcontroller" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Breakpoint ¶
type Breakpoint struct { // Action: Defines what to do when the breakpoint hits. // // Possible values: // "CAPTURE" // "LOG" Action string `json:"action,omitempty"` // Condition: A condition to trigger the breakpoint. The condition is a // compound boolean expression composed using expressions in a // programming language at the source location. Condition string `json:"condition,omitempty"` // CreateTime: The time this breakpoint was created by the server. The // value is in seconds resolution. CreateTime string `json:"createTime,omitempty"` // EvaluatedExpressions: The evaluated expressions' values at breakpoint // time. The evaluated expressions appear in exactly the same order they // are listed in the 'expressions' field. The 'name' field holds the // original expression text, the 'value'/'members' field holds the // result of the evaluated expression. If the expression can not be // evaluated, an error text is placed in the value field. EvaluatedExpressions []*Variable `json:"evaluatedExpressions,omitempty"` // Expressions: A list of read-only expressions to evaluate at the // breakpoint location. The expressions are composed using expressions // in the programming language at the source location. If the breakpoint // action is "LOG", the evaluated expressions are included in log // statements. Expressions []string `json:"expressions,omitempty"` // FinalTime: The time this breakpoint was finalized as seen by the // server. The value is in seconds resolution. FinalTime string `json:"finalTime,omitempty"` // Id: Breakpoint identifier, unique in the scope of the debuggee. Id string `json:"id,omitempty"` // IsFinalState: When true, indicates that this is a final result and // the breakpoint state will not change from here on. IsFinalState bool `json:"isFinalState,omitempty"` // Location: The breakpoint source location. Location *SourceLocation `json:"location,omitempty"` // LogLevel: Indicates the severity of the log. Only relevant when // action is "LOG". // // Possible values: // "INFO" // "WARNING" // "ERROR" LogLevel string `json:"logLevel,omitempty"` // LogMessageFormat: Only relevant when action is "LOG". Defines the // message to log when the breakpoint hits. The message may include // parameter placeholders "$0", "$1", etc. These placeholders will be // replaced with the evaluated value of the appropriate expression. // Expressions not referenced in "log_message_format" will not be // logged. Example: "Poisonous message received, id = $0, count = $1" // with expressions = [ "message.id", "message.count" ]. LogMessageFormat string `json:"logMessageFormat,omitempty"` // StackFrames: The stack at breakpoint time. StackFrames []*StackFrame `json:"stackFrames,omitempty"` // Status: Breakpoint status. The status includes an error flag and a // human readable message. This field will usually stay unset. The // message can be either informational or error. Nevertheless, clients // should always display the text message back to the user. Error status // of a breakpoint indicates complete failure. Example (non-final // state): 'Still loading symbols...' Examples (final state): 'Failed to // insert breakpoint' referring to breakpoint, 'Field f not found in // class C' referring to condition, ... Status *StatusMessage `json:"status,omitempty"` // UserEmail: The e-mail of the user that created this breakpoint UserEmail string `json:"userEmail,omitempty"` // VariableTable: The variable_table exists to aid with computation, // memory and network traffic optimization. It enables storing a // variable once and reference it from multiple variables, including // variables stored in the variable_table itself. For example, the // object 'this', which may appear at many levels of the stack, can have // all of it's data stored once in this table. The stack frame variables // then would hold only a reference to it. The variable var_index field // is an index into this repeated field. The stored objects are nameless // and get their name from the referencing variable. The effective // variable is a merge of the referencing veariable and the referenced // variable. VariableTable []*Variable `json:"variableTable,omitempty"` }
Breakpoint: Represents the breakpoint specification, status and results.
type CloudRepoSourceContext ¶
type CloudRepoSourceContext struct { // AliasName: The name of an alias (branch, tag, etc.). AliasName string `json:"aliasName,omitempty"` // RepoId: The ID of the repo. RepoId *RepoId `json:"repoId,omitempty"` // RevisionId: A revision ID. RevisionId string `json:"revisionId,omitempty"` }
CloudRepoSourceContext: A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo hosted by the Google Cloud Platform).
type CloudWorkspaceId ¶
type CloudWorkspaceId struct { // Name: The unique name of the workspace within the repo. This is the // name chosen by the client in the Source API's CreateWorkspace method. Name string `json:"name,omitempty"` // RepoId: The ID of the repo containing the workspace. RepoId *RepoId `json:"repoId,omitempty"` }
CloudWorkspaceId: A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud workspace is a place associated with a repo where modified files can be stored before they are committed.
type CloudWorkspaceSourceContext ¶
type CloudWorkspaceSourceContext struct { // SnapshotId: The ID of the snapshot. An empty snapshot_id refers to // the most recent snapshot. SnapshotId string `json:"snapshotId,omitempty"` // WorkspaceId: The ID of the workspace. WorkspaceId *CloudWorkspaceId `json:"workspaceId,omitempty"` }
CloudWorkspaceSourceContext: A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
type ControllerDebuggeesBreakpointsListCall ¶
type ControllerDebuggeesBreakpointsListCall struct {
// contains filtered or unexported fields
}
func (*ControllerDebuggeesBreakpointsListCall) Do ¶
func (c *ControllerDebuggeesBreakpointsListCall) Do() (*ListActiveBreakpointsResponse, error)
func (*ControllerDebuggeesBreakpointsListCall) Fields ¶
func (c *ControllerDebuggeesBreakpointsListCall) Fields(s ...googleapi.Field) *ControllerDebuggeesBreakpointsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ControllerDebuggeesBreakpointsListCall) WaitToken ¶
func (c *ControllerDebuggeesBreakpointsListCall) WaitToken(waitToken string) *ControllerDebuggeesBreakpointsListCall
WaitToken sets the optional parameter "waitToken": A wait token that, if specified, blocks the method call until the list of active breakpoints has changed, or a server selected timeout has expired. The value should be set from the last returned response. The error code google.rpc.Code.ABORTED is returned on wait timeout (which does not require the agent to re-register with the server)
type ControllerDebuggeesBreakpointsService ¶
type ControllerDebuggeesBreakpointsService struct {
// contains filtered or unexported fields
}
func NewControllerDebuggeesBreakpointsService ¶
func NewControllerDebuggeesBreakpointsService(s *Service) *ControllerDebuggeesBreakpointsService
func (*ControllerDebuggeesBreakpointsService) List ¶
func (r *ControllerDebuggeesBreakpointsService) List(debuggeeId string) *ControllerDebuggeesBreakpointsListCall
List: Returns the list of all active breakpoints for the specified debuggee. The breakpoint specification (location, condition, and expression fields) is semantically immutable, although the field values may change. For example, an agent may update the location line number to reflect the actual line the breakpoint was set to, but that doesn't change the breakpoint semantics. Thus, an agent does not need to check if a breakpoint has changed when it encounters the same breakpoint on a successive call. Moreover, an agent should remember breakpoints that are complete until the controller removes them from the active list to avoid setting those breakpoints again.
func (*ControllerDebuggeesBreakpointsService) Update ¶
func (r *ControllerDebuggeesBreakpointsService) Update(debuggeeId string, id string, updateactivebreakpointrequest *UpdateActiveBreakpointRequest) *ControllerDebuggeesBreakpointsUpdateCall
Update: Updates the breakpoint state or mutable fields. The entire Breakpoint protobuf must be sent back to the controller. Updates to active breakpoint fields are only allowed if the new value does not change the breakpoint specification. Updates to the 'location', 'condition' and 'expression' fields should not alter the breakpoint semantics. They are restricted to changes such as canonicalizing a value or snapping the location to the correct line of code.
type ControllerDebuggeesBreakpointsUpdateCall ¶
type ControllerDebuggeesBreakpointsUpdateCall struct {
// contains filtered or unexported fields
}
func (*ControllerDebuggeesBreakpointsUpdateCall) Do ¶
func (c *ControllerDebuggeesBreakpointsUpdateCall) Do() (*UpdateActiveBreakpointResponse, error)
func (*ControllerDebuggeesBreakpointsUpdateCall) Fields ¶
func (c *ControllerDebuggeesBreakpointsUpdateCall) Fields(s ...googleapi.Field) *ControllerDebuggeesBreakpointsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ControllerDebuggeesRegisterCall ¶
type ControllerDebuggeesRegisterCall struct {
// contains filtered or unexported fields
}
func (*ControllerDebuggeesRegisterCall) Do ¶
func (c *ControllerDebuggeesRegisterCall) Do() (*RegisterDebuggeeResponse, error)
func (*ControllerDebuggeesRegisterCall) Fields ¶
func (c *ControllerDebuggeesRegisterCall) Fields(s ...googleapi.Field) *ControllerDebuggeesRegisterCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ControllerDebuggeesService ¶
type ControllerDebuggeesService struct { Breakpoints *ControllerDebuggeesBreakpointsService // contains filtered or unexported fields }
func NewControllerDebuggeesService ¶
func NewControllerDebuggeesService(s *Service) *ControllerDebuggeesService
func (*ControllerDebuggeesService) Register ¶
func (r *ControllerDebuggeesService) Register(registerdebuggeerequest *RegisterDebuggeeRequest) *ControllerDebuggeesRegisterCall
Register: Registers the debuggee with the controller. All agents should call this API with the same request content to get back the same stable 'debuggee_id'. Agents should call this API again whenever ListActiveBreakpoints or UpdateActiveBreakpoint return the error google.rpc.Code.NOT_FOUND. It allows the server to disable the agent or recover from any registration loss. If the debuggee is disabled server, the response will have is_disabled' set to true.
type ControllerService ¶
type ControllerService struct { Debuggees *ControllerDebuggeesService // contains filtered or unexported fields }
func NewControllerService ¶
func NewControllerService(s *Service) *ControllerService
type Debuggee ¶
type Debuggee struct { // AgentVersion: Version ID of the agent release. The version ID is // structured as following: "domain/type/vmajor.minor" (for example // "google.com/gcp-java/v1.1"). AgentVersion string `json:"agentVersion,omitempty"` // Description: A human readable description of the debuggee. // Recommended to include human readable project name, environment name, // and version information . Description string `json:"description,omitempty"` // Id: Debuggee unique identifer generated by the server. Id string `json:"id,omitempty"` // IsDisabled: If set to true, indicates that the agent should disable // itself and detach from the debuggee. IsDisabled bool `json:"isDisabled,omitempty"` // IsInactive: If set to true indicates that the debuggee has not been // seen by the Controller service in the last active time period // (defined by the server). IsInactive bool `json:"isInactive,omitempty"` // Labels: A set of custom debuggee properties, populated by the agent, // to be displayed to the user. Labels map[string]string `json:"labels,omitempty"` // Project: The project the debuggee is associated with. Use the project // number when registering a Google Cloud Platform project. Project string `json:"project,omitempty"` // SourceContexts: Repository snapshots containing the source code of // the project. SourceContexts []*SourceContext `json:"sourceContexts,omitempty"` // Status: Human readable message to be displayed to the user about this // debuggee. Absense of this field indicates no message. The message can // be either informational or error. Status *StatusMessage `json:"status,omitempty"` // Uniquifier: The debuggee uniqifier within the project. Any string // that id the application within the project can be used. Recomended to // include environement and version or build id's. Uniquifier string `json:"uniquifier,omitempty"` }
Debuggee: Represents the application to debug. The application may include one or more replicated processes executing the same code. Each of these processes is attached with a debugger agent, carrying out the debugging commands. The agents attached to the same debuggee are identified by using exactly the same fields' values when registering.
type DebuggerDebuggeesBreakpointsDeleteCall ¶
type DebuggerDebuggeesBreakpointsDeleteCall struct {
// contains filtered or unexported fields
}
func (*DebuggerDebuggeesBreakpointsDeleteCall) Do ¶
func (c *DebuggerDebuggeesBreakpointsDeleteCall) Do() (*Empty, error)
func (*DebuggerDebuggeesBreakpointsDeleteCall) Fields ¶
func (c *DebuggerDebuggeesBreakpointsDeleteCall) Fields(s ...googleapi.Field) *DebuggerDebuggeesBreakpointsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type DebuggerDebuggeesBreakpointsGetCall ¶
type DebuggerDebuggeesBreakpointsGetCall struct {
// contains filtered or unexported fields
}
func (*DebuggerDebuggeesBreakpointsGetCall) Do ¶
func (c *DebuggerDebuggeesBreakpointsGetCall) Do() (*GetBreakpointResponse, error)
func (*DebuggerDebuggeesBreakpointsGetCall) Fields ¶
func (c *DebuggerDebuggeesBreakpointsGetCall) Fields(s ...googleapi.Field) *DebuggerDebuggeesBreakpointsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type DebuggerDebuggeesBreakpointsListCall ¶
type DebuggerDebuggeesBreakpointsListCall struct {
// contains filtered or unexported fields
}
func (*DebuggerDebuggeesBreakpointsListCall) ActionValue ¶
func (c *DebuggerDebuggeesBreakpointsListCall) ActionValue(actionValue string) *DebuggerDebuggeesBreakpointsListCall
ActionValue sets the optional parameter "action.value": Only breakpoints with the specified action will pass the filter.
Possible values:
"CAPTURE" "LOG"
func (*DebuggerDebuggeesBreakpointsListCall) Do ¶
func (c *DebuggerDebuggeesBreakpointsListCall) Do() (*ListBreakpointsResponse, error)
func (*DebuggerDebuggeesBreakpointsListCall) Fields ¶
func (c *DebuggerDebuggeesBreakpointsListCall) Fields(s ...googleapi.Field) *DebuggerDebuggeesBreakpointsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*DebuggerDebuggeesBreakpointsListCall) IncludeAllUsers ¶
func (c *DebuggerDebuggeesBreakpointsListCall) IncludeAllUsers(includeAllUsers bool) *DebuggerDebuggeesBreakpointsListCall
IncludeAllUsers sets the optional parameter "includeAllUsers": When set to true the response includes the list of breakpoints set by any user, otherwise only breakpoints set by the caller.
func (*DebuggerDebuggeesBreakpointsListCall) IncludeInactive ¶
func (c *DebuggerDebuggeesBreakpointsListCall) IncludeInactive(includeInactive bool) *DebuggerDebuggeesBreakpointsListCall
IncludeInactive sets the optional parameter "includeInactive": When set to true the response includes active and inactive breakpoints, otherwise only active breakpoints are returned.
func (*DebuggerDebuggeesBreakpointsListCall) StripResults ¶
func (c *DebuggerDebuggeesBreakpointsListCall) StripResults(stripResults bool) *DebuggerDebuggeesBreakpointsListCall
StripResults sets the optional parameter "stripResults": When set to true the response breakpoints will be stripped of the results fields: stack_frames, evaluated_expressions and variable_table.
func (*DebuggerDebuggeesBreakpointsListCall) WaitToken ¶
func (c *DebuggerDebuggeesBreakpointsListCall) WaitToken(waitToken string) *DebuggerDebuggeesBreakpointsListCall
WaitToken sets the optional parameter "waitToken": A wait token that, if specified, blocks the call until the breakpoints list has changed, or a server selected timeout has expired. The value should be set from the last response to ListBreakpoints. The error code ABORTED is returned on wait timeout, which should be called again with the same wait_token.
type DebuggerDebuggeesBreakpointsService ¶
type DebuggerDebuggeesBreakpointsService struct {
// contains filtered or unexported fields
}
func NewDebuggerDebuggeesBreakpointsService ¶
func NewDebuggerDebuggeesBreakpointsService(s *Service) *DebuggerDebuggeesBreakpointsService
func (*DebuggerDebuggeesBreakpointsService) Delete ¶
func (r *DebuggerDebuggeesBreakpointsService) Delete(debuggeeId string, breakpointId string) *DebuggerDebuggeesBreakpointsDeleteCall
Delete: Deletes the breakpoint from the debuggee.
func (*DebuggerDebuggeesBreakpointsService) Get ¶
func (r *DebuggerDebuggeesBreakpointsService) Get(debuggeeId string, breakpointId string) *DebuggerDebuggeesBreakpointsGetCall
Get: Gets breakpoint information.
func (*DebuggerDebuggeesBreakpointsService) List ¶
func (r *DebuggerDebuggeesBreakpointsService) List(debuggeeId string) *DebuggerDebuggeesBreakpointsListCall
List: Lists all breakpoints of the debuggee that the user has access to.
func (*DebuggerDebuggeesBreakpointsService) Set ¶
func (r *DebuggerDebuggeesBreakpointsService) Set(debuggeeId string, breakpoint *Breakpoint) *DebuggerDebuggeesBreakpointsSetCall
Set: Sets the breakpoint to the debuggee.
type DebuggerDebuggeesBreakpointsSetCall ¶
type DebuggerDebuggeesBreakpointsSetCall struct {
// contains filtered or unexported fields
}
func (*DebuggerDebuggeesBreakpointsSetCall) Do ¶
func (c *DebuggerDebuggeesBreakpointsSetCall) Do() (*SetBreakpointResponse, error)
func (*DebuggerDebuggeesBreakpointsSetCall) Fields ¶
func (c *DebuggerDebuggeesBreakpointsSetCall) Fields(s ...googleapi.Field) *DebuggerDebuggeesBreakpointsSetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type DebuggerDebuggeesListCall ¶
type DebuggerDebuggeesListCall struct {
// contains filtered or unexported fields
}
func (*DebuggerDebuggeesListCall) Do ¶
func (c *DebuggerDebuggeesListCall) Do() (*ListDebuggeesResponse, error)
func (*DebuggerDebuggeesListCall) Fields ¶
func (c *DebuggerDebuggeesListCall) Fields(s ...googleapi.Field) *DebuggerDebuggeesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*DebuggerDebuggeesListCall) IncludeInactive ¶
func (c *DebuggerDebuggeesListCall) IncludeInactive(includeInactive bool) *DebuggerDebuggeesListCall
IncludeInactive sets the optional parameter "includeInactive": When set to true the result includes all debuggees, otherwise only debugees that are active.
func (*DebuggerDebuggeesListCall) Project ¶
func (c *DebuggerDebuggeesListCall) Project(project string) *DebuggerDebuggeesListCall
Project sets the optional parameter "project": Set to the project number of the Google Cloud Platform to list the debuggees that are part of that project.
type DebuggerDebuggeesService ¶
type DebuggerDebuggeesService struct { Breakpoints *DebuggerDebuggeesBreakpointsService // contains filtered or unexported fields }
func NewDebuggerDebuggeesService ¶
func NewDebuggerDebuggeesService(s *Service) *DebuggerDebuggeesService
func (*DebuggerDebuggeesService) List ¶
func (r *DebuggerDebuggeesService) List() *DebuggerDebuggeesListCall
List: Lists all the debuggees that the user can set breakpoints to.
type DebuggerService ¶
type DebuggerService struct { Debuggees *DebuggerDebuggeesService // contains filtered or unexported fields }
func NewDebuggerService ¶
func NewDebuggerService(s *Service) *DebuggerService
type Empty ¶
type Empty struct { }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
type FormatMessage ¶
type FormatMessage struct { // Format: Format template of the message. The "format" uses // placeholders "$0", "$1", etc. to reference parameters. "$$" can be // used to denote the '$' character. Examples: "Failed to load '$0' // which helps debug $1 the first time it is loaded. Again, $0 is very // important." "Please pay $$10 to use $0 instead of $1." Format string `json:"format,omitempty"` // Parameters: Optional parameters to be embedded into the message. Parameters []string `json:"parameters,omitempty"` }
FormatMessage: Represents a message with parameters.
type GerritSourceContext ¶
type GerritSourceContext struct { // AliasName: The name of an alias (branch, tag, etc.). AliasName string `json:"aliasName,omitempty"` // GerritProject: 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. GerritProject string `json:"gerritProject,omitempty"` // HostUri: The URI of a running Gerrit instance. HostUri string `json:"hostUri,omitempty"` // RevisionId: A revision (commit) ID. RevisionId string `json:"revisionId,omitempty"` }
GerritSourceContext: A SourceContext referring to a Gerrit project.
type GetBreakpointResponse ¶
type GetBreakpointResponse struct { // Breakpoint: The complete breakpoint state. The fields 'id' and // 'location' are guranteed to be set. Breakpoint *Breakpoint `json:"breakpoint,omitempty"` }
GetBreakpointResponse: The response of getting breakpoint information.
type GitSourceContext ¶
type GitSourceContext struct { // RevisionId: Git commit hash. required. RevisionId string `json:"revisionId,omitempty"` // Url: Git repository URL. Url string `json:"url,omitempty"` }
GitSourceContext: A GitSourceContext denotes a particular revision in a third party Git repository (e.g. GitHub).
type ListActiveBreakpointsResponse ¶
type ListActiveBreakpointsResponse struct { // Breakpoints: List of all active breakpoints. The fields 'id' and // 'location' are guranteed to be set on each breakpoint. Breakpoints []*Breakpoint `json:"breakpoints,omitempty"` // NextWaitToken: A wait token that can be used in the next method call // to block until the list of breakpoints changes. NextWaitToken string `json:"nextWaitToken,omitempty"` }
ListActiveBreakpointsResponse: The response of listing active breakpoints.
type ListBreakpointsResponse ¶
type ListBreakpointsResponse struct { // Breakpoints: List of all breakpoints with complete state. The fields // 'id' and 'location' are guranteed to be set on each breakpoint. Breakpoints []*Breakpoint `json:"breakpoints,omitempty"` // NextWaitToken: A wait token that can be used in the next call to // ListBreakpoints to block until the list of breakpoints has changes. NextWaitToken string `json:"nextWaitToken,omitempty"` }
ListBreakpointsResponse: The response of listing breakpoints.
type ListDebuggeesResponse ¶
type ListDebuggeesResponse struct { // Debuggees: The list of debuggees accessible to the calling user. Note // that the description field is the only human readable field that // should be displayed to the user. The fields 'debuggee.id' and // 'description' are guranteed to be set on each debuggee. Debuggees []*Debuggee `json:"debuggees,omitempty"` }
ListDebuggeesResponse: The response of listing debuggees.
type ProjectRepoId ¶
type ProjectRepoId struct { // ProjectId: The ID of the project. ProjectId string `json:"projectId,omitempty"` // RepoName: The name of the repo. Leave empty for the default repo. RepoName string `json:"repoName,omitempty"` }
ProjectRepoId: Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31) and a repo name within that project.
type RegisterDebuggeeRequest ¶
type RegisterDebuggeeRequest struct { // Debuggee: The debuggee information to register. The fields 'project', // 'uniquifier', 'description' and 'agent_version' of the debuggee must // be set. Debuggee *Debuggee `json:"debuggee,omitempty"` }
RegisterDebuggeeRequest: The request to register a debuggee.
type RegisterDebuggeeResponse ¶
type RegisterDebuggeeResponse struct { // Debuggee: The debuggee resource. The field 'id' is guranteed to be // set (in addition to the echoed fields). Debuggee *Debuggee `json:"debuggee,omitempty"` }
RegisterDebuggeeResponse: The response of registering a debuggee.
type RepoId ¶
type RepoId struct { // ProjectRepoId: A combination of a project ID and a repo name. ProjectRepoId *ProjectRepoId `json:"projectRepoId,omitempty"` // Uid: A server-assigned, globally unique identifier. Uid string `json:"uid,omitempty"` }
RepoId: A unique identifier for a cloud repo.
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Controller *ControllerService Debugger *DebuggerService // contains filtered or unexported fields }
type SetBreakpointResponse ¶
type SetBreakpointResponse struct { // Breakpoint: The breakpoint resource. The field 'id' is guranteed to // be set (in addition to the echoed fileds). Breakpoint *Breakpoint `json:"breakpoint,omitempty"` }
SetBreakpointResponse: The response of setting a breakpoint.
type SourceContext ¶
type SourceContext struct { // CloudRepo: A SourceContext referring to a revision in a cloud repo. CloudRepo *CloudRepoSourceContext `json:"cloudRepo,omitempty"` // CloudWorkspace: A SourceContext referring to a snapshot in a cloud // workspace. CloudWorkspace *CloudWorkspaceSourceContext `json:"cloudWorkspace,omitempty"` // Gerrit: A SourceContext referring to a Gerrit project. Gerrit *GerritSourceContext `json:"gerrit,omitempty"` // Git: A SourceContext referring to any third party Git repo (e.g. // GitHub). Git *GitSourceContext `json:"git,omitempty"` }
SourceContext: A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
type SourceLocation ¶
type SourceLocation struct { // Line: The line inside the file (first line value is '1'). Line int64 `json:"line,omitempty"` // Path: A path to the source file within the source context of the // target binary. Path string `json:"path,omitempty"` }
SourceLocation: Represents a location in the source code.
type StackFrame ¶
type StackFrame struct { // Arguments: The set of arguments passed to this function Note that // this might not be populated for all stack frames. Arguments []*Variable `json:"arguments,omitempty"` // Function: The unmangled function name at the call site. Function string `json:"function,omitempty"` // Locals: The set of local variables at the stack frame location. Note // that this might not be populated for all stack frames. Locals []*Variable `json:"locals,omitempty"` // Location: The source location of the call site. Location *SourceLocation `json:"location,omitempty"` }
StackFrame: Represents a stack frame context.
type StatusMessage ¶
type StatusMessage struct { // Description: Status message text. Description *FormatMessage `json:"description,omitempty"` // IsError: Distinguishes errors from informational messages. IsError bool `json:"isError,omitempty"` // RefersTo: Reference to which the message applies. // // Possible values: // "UNSPECIFIED" // "BREAKPOINT_SOURCE_LOCATION" // "BREAKPOINT_CONDITION" // "BREAKPOINT_EXPRESSION" // "VARIABLE_NAME" // "VARIABLE_VALUE" RefersTo string `json:"refersTo,omitempty"` }
StatusMessage: Represents a contextual status message. The message can indicate an error or informational status, and refer to specific parts of the containing object. For example, the Breakpoint.status field can indicate an error referring to the BREAKPOINT_SOURCE_LOCATION with the message "Location not found".
type UpdateActiveBreakpointRequest ¶
type UpdateActiveBreakpointRequest struct { // Breakpoint: The updated breakpoint information. The field 'id' must // be set. Breakpoint *Breakpoint `json:"breakpoint,omitempty"` }
UpdateActiveBreakpointRequest: The request to update an active breakpoint.
type UpdateActiveBreakpointResponse ¶
type UpdateActiveBreakpointResponse struct { }
UpdateActiveBreakpointResponse: The response of updating an active breakpoint. The message is defined to allow future extensions.
type Variable ¶
type Variable struct { // Members: The members contained or pointed to by the variable. Members []*Variable `json:"members,omitempty"` // Name: The name of the variable, if any. Name string `json:"name,omitempty"` // Status: Status associated with the variable. This field will usually // stay unset. A status of a single variable only applies to that // variable or expression. The rest of breakpoint data still remains // valid. Variables might be reported in error state even when // breakpoint is not in final state. The message may refer to variable // name with "refers_to" set to "VARIABLE_NAME". Alternatively // "refers_to" will be set to "VARIABLE_VALUE". In either case variable // value and members will be unset. Example of error message applied to // name: "Invalid expression syntax". Example of information message // applied to value: "Not captured". Examples of error message applied // to value: "Malformed string", "Field f not found in class C", "Null // pointer dereference". Status *StatusMessage `json:"status,omitempty"` // Value: The simple value of the variable. Value string `json:"value,omitempty"` // VarTableIndex: This is a reference to a variable in the shared // variable table. More than one variable can reference the same // variable in the table. The var_index field is an index into // variable_table in Breakpoint. VarTableIndex int64 `json:"varTableIndex,omitempty"` }
Variable: Represents a variable or an argument possibly of a compound object type. 1. A simple variable such as, int x = 5 is represented as: { name: "x", value: "5" } 2. A compound object such as, struct T { int m1; int m2; }; T x = { 3, 7 }; is represented as: { name: "x", members { name: "m1", value: "3" }, members { name: "m2", value: "7" } } 3. A pointer where the pointee was captured such as, T x = { 3, 7 }; T* p = &x; is represented as: { name: "p", value: "0x00500500", members { name: "m1", value: "3" }, members { name: "m2", value: "7" } } 4. A pointer where the pointee was not captured or is inaccessible such as, T* p = new T; is represented as: { name: "p", value: "0x00400400", members { value: "" } } the value text should decribe the reason for the missing value. such as , , . note that a null pointer should not have members. 5. An unnamed value such as, int* p = new int(7); is represented as, { name: "p", value: "0x00500500", members { value: "7" } } 6. An unnamed pointer where the pointee was not captured such as, int* p = new int(7); int** pp = &p; is represented as: { name: "pp", value: "0x00500500", members { value: "0x00400400", members { value: "" } } } To optimize computation, memory and network traffic, variables that repeat in the output multiple times can be stored once in a shared variable table and be referenced using the var_index field. The variables stored in the shared table are nameless and are essentially a partition of the complete variable. To reconstruct the complete variable merge the referencing variable with the referenced variable. When using the shared variable table, variables can be represented as: T x = { 3, 7 }; T* p = &x; T& r = x; are represented as, { name: "x", var_index: 3 } { name: "p", value "0x00500500", var_index: 3 } { name: "r", var_index: 3 } with shared variable table entry #3: { members { name: "m1", value: "3" }, members { name: "m2", value: "7" } } Note that the pointer address is stored with the referencing variable and not with the referenced variable, to allow the referenced variable to be shared between pointer and references.