spcs

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RunningInsideEnv signals that the driver is running inside a Snowpark
	// Container Services (SPCS) workload. Presence activates SPCS-specific
	// behavior; absence disables it.
	RunningInsideEnv = "SNOWFLAKE_RUNNING_INSIDE_SPCS"
)

Variables

This section is empty.

Functions

func GetToken

func GetToken(ctx context.Context) string

GetToken returns the SPCS service token when the driver is running inside an SPCS container, or "" otherwise or on any read failure. We deliberately don't cache it, since it can change at any moment.

Types

This section is empty.

Jump to

Keyboard shortcuts

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