etc

package
v0.1.78 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoogleHTTPClient added in v0.1.77

func NewGoogleHTTPClient(ctx context.Context, config ClientConfig, token *Token) (*http.Client, error)

NewGoogleHTTPClient returns an authenticated *http.Client based on the credential type. Service account JSON uses JWT with optional subject impersonation. OAuth2 JSON uses the provided token.

Types

type ClientConfig

type ClientConfig struct {
	Credentials string   `` /* 153-byte string literal not displayed */
	Scopes      []string `json:"scopes,omitempty" title:"Scopes"`
	Subject     string   `` /* 126-byte string literal not displayed */
}

type Token

type Token struct {
	AccessToken  string    `json:"access_token" required:"true" minLength:"1" title:"AccessToken" description:"Token that authorizes and authenticates"`
	TokenType    string    `` /* 142-byte string literal not displayed */
	RefreshToken string    `` /* 170-byte string literal not displayed */
	Expiry       time.Time `` /* 294-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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