clients

package
v0.0.0-...-6243be3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ListRequestTimeout   = 30 * time.Second
	SingleRequestTimeout = 10 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationEditor

type AuthorizationEditor struct {
	Source oauth2.TokenSource
}

AuthorizationEditor implements a function type defined by the oapi-codegen tooling which intercepts an HTTP request and inserts a bearer token into the Authorization header. This enables us to get a fresh token periodically to ensure that we handle our service account tokens being refreshed.

func (*AuthorizationEditor) Editor

func (s *AuthorizationEditor) Editor(_ context.Context, req *http.Request) error

Editor inserts a bearer token into the Authorization header.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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