gateway

package
v1.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveVaultGatewayURL

func ResolveVaultGatewayURL(tenantCtx *tenantctx.EnvironmentContext, envSet *environments.EnvironmentSet) string

ResolveVaultGatewayURL returns the vault gateway URL for secrets operations. Precedence: CRE_VAULT_DON_GATEWAY_URL env var, then context.yaml vault_gateway_url, then the embedded default from EnvironmentSet.

Types

type Client

type Client interface {
	Post(body []byte) (respBody []byte, status int, err error)
	// PostWithBearer sends the JSON-RPC body with Authorization: Bearer for the browser OAuth flow (no allowlist retries).
	PostWithBearer(body []byte, bearerToken string) (respBody []byte, status int, err error)
}

type HTTPClient

type HTTPClient struct {
	URL           string
	Client        *http.Client
	RetryAttempts uint
	RetryDelay    time.Duration
}

func (*HTTPClient) Post

func (g *HTTPClient) Post(body []byte) ([]byte, int, error)

func (*HTTPClient) PostWithBearer

func (g *HTTPClient) PostWithBearer(body []byte, bearerToken string) ([]byte, int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL