mirror of
https://github.com/restic/restic.git
synced 2026-08-28 16:27:31 +00:00
Update dependencies
This commit is contained in:
+13
-14
@@ -88,10 +88,10 @@ type Controller2Client struct {
|
||||
//
|
||||
// The debugger agents register with the Controller to identify the application
|
||||
// being debugged, the Debuggee. All agents that register with the same data,
|
||||
// represent the same Debuggee, and are assigned the same `debuggee_id`.
|
||||
// represent the same Debuggee, and are assigned the same debuggee_id.
|
||||
//
|
||||
// The debugger agents call the Controller to retrieve the list of active
|
||||
// Breakpoints. Agents with the same `debuggee_id` get the same breakpoints
|
||||
// Breakpoints. Agents with the same debuggee_id get the same breakpoints
|
||||
// list. An agent that can fulfill the breakpoint request updates the
|
||||
// Controller with the breakpoint result. The controller selects the first
|
||||
// result received and discards the rest of the results.
|
||||
@@ -139,14 +139,14 @@ func (c *Controller2Client) SetGoogleClientInfo(keyval ...string) {
|
||||
|
||||
// RegisterDebuggee registers the debuggee with the controller service.
|
||||
//
|
||||
// All agents attached to the same application should call this method with
|
||||
// the same request content to get back the same stable `debuggee_id`. Agents
|
||||
// should call this method again whenever `google.rpc.Code.NOT_FOUND` is
|
||||
// returned from any controller method.
|
||||
// All agents attached to the same application must call this method with
|
||||
// exactly the same request content to get back the same stable debuggee_id.
|
||||
// Agents should call this method again whenever google.rpc.Code.NOT_FOUND
|
||||
// is returned from any controller method.
|
||||
//
|
||||
// This allows the controller service to disable the agent or recover from any
|
||||
// data loss. If the debuggee is disabled by the server, the response will
|
||||
// have `is_disabled` set to `true`.
|
||||
// This protocol allows the controller service to disable debuggees, recover
|
||||
// from data loss, or change the debuggee_id format. Agents must handle
|
||||
// debuggee_id value changing upon re-registration.
|
||||
func (c *Controller2Client) RegisterDebuggee(ctx context.Context, req *clouddebuggerpb.RegisterDebuggeeRequest, opts ...gax.CallOption) (*clouddebuggerpb.RegisterDebuggeeResponse, error) {
|
||||
ctx = insertXGoog(ctx, c.xGoogHeader)
|
||||
opts = append(c.CallOptions.RegisterDebuggee[0:len(c.CallOptions.RegisterDebuggee):len(c.CallOptions.RegisterDebuggee)], opts...)
|
||||
@@ -164,7 +164,7 @@ func (c *Controller2Client) RegisterDebuggee(ctx context.Context, req *clouddebu
|
||||
|
||||
// ListActiveBreakpoints returns the list of all active breakpoints for the debuggee.
|
||||
//
|
||||
// The breakpoint specification (location, condition, and expression
|
||||
// The breakpoint specification (location, condition, and expressions
|
||||
// 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 where the breakpoint was set, but this
|
||||
@@ -191,12 +191,11 @@ func (c *Controller2Client) ListActiveBreakpoints(ctx context.Context, req *clou
|
||||
}
|
||||
|
||||
// UpdateActiveBreakpoint updates the breakpoint state or mutable fields.
|
||||
// The entire Breakpoint message must be sent back to the controller
|
||||
// service.
|
||||
// The entire Breakpoint message must be sent back to the controller service.
|
||||
//
|
||||
// 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
|
||||
// does not change the breakpoint specification. Updates to the location,
|
||||
// condition and expressions fields should not alter the breakpoint
|
||||
// semantics. These may only make changes such as canonicalizing a value
|
||||
// or snapping the location to the correct line of code.
|
||||
func (c *Controller2Client) UpdateActiveBreakpoint(ctx context.Context, req *clouddebuggerpb.UpdateActiveBreakpointRequest, opts ...gax.CallOption) (*clouddebuggerpb.UpdateActiveBreakpointResponse, error) {
|
||||
|
||||
+4
-4
@@ -91,9 +91,9 @@ type Debugger2Client struct {
|
||||
// and without modifying its state. An application may include one or
|
||||
// more replicated processes performing the same work.
|
||||
//
|
||||
// The application is represented using the Debuggee concept. The Debugger
|
||||
// service provides a way to query for available Debuggees, but does not
|
||||
// provide a way to create one. A debuggee is created using the Controller
|
||||
// A debugged application is represented using the Debuggee concept. The
|
||||
// Debugger service provides a way to query for available debuggees, but does
|
||||
// not provide a way to create one. A debuggee is created using the Controller
|
||||
// service, usually by running a debugger agent with the application.
|
||||
//
|
||||
// The Debugger service enables the client to set one or more Breakpoints on a
|
||||
@@ -193,7 +193,7 @@ func (c *Debugger2Client) ListBreakpoints(ctx context.Context, req *clouddebugge
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
// ListDebuggees lists all the debuggees that the user can set breakpoints to.
|
||||
// ListDebuggees lists all the debuggees that the user has access to.
|
||||
func (c *Debugger2Client) ListDebuggees(ctx context.Context, req *clouddebuggerpb.ListDebuggeesRequest, opts ...gax.CallOption) (*clouddebuggerpb.ListDebuggeesResponse, error) {
|
||||
ctx = insertXGoog(ctx, c.xGoogHeader)
|
||||
opts = append(c.CallOptions.ListDebuggees[0:len(c.CallOptions.ListDebuggees):len(c.CallOptions.ListDebuggees)], opts...)
|
||||
|
||||
+1
-2
@@ -35,8 +35,7 @@ func insertXGoog(ctx context.Context, val []string) context.Context {
|
||||
return metadata.NewOutgoingContext(ctx, md)
|
||||
}
|
||||
|
||||
// DefaultAuthScopes reports the authentication scopes required
|
||||
// by this package.
|
||||
// DefaultAuthScopes reports the default set of authentication scopes to use with this package.
|
||||
func DefaultAuthScopes() []string {
|
||||
return []string{
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
|
||||
Reference in New Issue
Block a user