github.com/hashicorp/vault/sdk@v0.13.0/helper/consts/agent.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: MPL-2.0
     3  
     4  package consts
     5  
     6  import "time"
     7  
     8  // AgentPathCacheClear is the path that the agent will use as its cache-clear
     9  // endpoint.
    10  const AgentPathCacheClear = "/agent/v1/cache-clear"
    11  
    12  // AgentPathMetrics is the path the agent will use to expose its internal
    13  // metrics.
    14  const AgentPathMetrics = "/agent/v1/metrics"
    15  
    16  // AgentPathQuit is the path that the agent will use to trigger stopping it.
    17  const AgentPathQuit = "/agent/v1/quit"
    18  
    19  // DefaultMinBackoff is the default minimum backoff time for agent and proxy
    20  const DefaultMinBackoff = 1 * time.Second
    21  
    22  // DefaultMaxBackoff is the default max backoff time for agent and proxy
    23  const DefaultMaxBackoff = 5 * time.Minute